/* JCH - Jermis Control Hub */
/* Clean, modern, business UI - White/Light Theme */

:root {
    --jch-primary: #2563eb;
    --jch-primary-hover: #1d4ed8;
    --jch-secondary: #64748b;
    --jch-success: #16a34a;
    --jch-warning: #d97706;
    --jch-danger: #dc2626;
    --jch-background: #f8fafc;
    --jch-surface: #ffffff;
    --jch-border: #e2e8f0;
    --jch-text: #1e293b;
    --jch-text-muted: #64748b;
    --jch-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --jch-shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.1);
    --jch-radius: 8px;
    --jch-radius-lg: 12px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    color: var(--jch-text);
    background-color: var(--jch-background);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: var(--jch-text);
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

a {
    color: var(--jch-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Layout */
.jch-app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.jch-header {
    background: var(--jch-surface);
    border-bottom: 1px solid var(--jch-border);
    padding: 0 1.5rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--jch-shadow);
}

.jch-header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--jch-text);
}

.jch-header-brand img.jch-header-logo {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.jch-header-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.jch-user-name {
    color: var(--jch-text);
    font-weight: 500;
}

.jch-main {
    flex: 1;
    padding: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Cards */
.jch-card {
    background: var(--jch-surface);
    border: 1px solid var(--jch-border);
    border-radius: var(--jch-radius-lg);
    box-shadow: var(--jch-shadow);
}

.jch-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--jch-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.jch-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.jch-card-body {
    padding: 1.25rem;
}

/* Buttons */
.jch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--jch-radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.jch-btn:hover {
    text-decoration: none;
}

.jch-btn-primary {
    background: var(--jch-primary);
    color: white;
    border-color: var(--jch-primary);
}

.jch-btn-primary:hover {
    background: var(--jch-primary-hover);
    border-color: var(--jch-primary-hover);
}

.jch-btn-secondary {
    background: var(--jch-surface);
    color: var(--jch-text);
    border-color: var(--jch-border);
}

.jch-btn-secondary:hover {
    background: var(--jch-background);
}

.jch-btn-microsoft {
    background: #2f2f2f;
    color: white;
    border-color: #2f2f2f;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
}

.jch-btn-microsoft:hover {
    background: #1a1a1a;
}

.jch-btn-microsoft svg {
    width: 20px;
    height: 20px;
}

.jch-btn-link {
    background: transparent;
    color: var(--jch-primary);
    border: none;
    padding: 0.5rem;
}

.jch-btn-link:hover {
    background: var(--jch-background);
}

.jch-btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.jch-btn-block {
    width: 100%;
}

/* Form Elements */
.jch-form-group {
    margin-bottom: 1rem;
}

.jch-label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 500;
    color: var(--jch-text);
    font-size: 0.875rem;
}

.jch-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    border: 1px solid var(--jch-border);
    border-radius: var(--jch-radius);
    background: var(--jch-surface);
    color: var(--jch-text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.jch-input:focus {
    outline: none;
    border-color: var(--jch-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.jch-input::placeholder {
    color: var(--jch-text-muted);
}

.jch-checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.jch-checkbox {
    width: 1rem;
    height: 1rem;
    accent-color: var(--jch-primary);
}

/* Alerts */
.jch-alert {
    padding: 0.875rem 1rem;
    border-radius: var(--jch-radius);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.jch-alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.jch-alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.jch-alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Divider */
.jch-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--jch-text-muted);
    font-size: 0.8125rem;
}

.jch-divider::before,
.jch-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--jch-border);
}

.jch-divider::before {
    margin-right: 1rem;
}

.jch-divider::after {
    margin-left: 1rem;
}

/* Login Page */
.jch-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1rem;
}

.jch-login-card {
    background: var(--jch-surface);
    border-radius: var(--jch-radius-lg);
    box-shadow: var(--jch-shadow-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
}

.jch-login-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.jch-login-logo img.jch-login-logo-img {
    max-height: 40px;
    width: auto;
}

.jch-login-logo-placeholder {
    width: 48px;
    height: 48px;
    background: var(--jch-primary);
    border-radius: var(--jch-radius);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.jch-login-title {
    text-align: center;
    margin-bottom: 2rem;
}

.jch-login-title h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.jch-login-title p {
    color: var(--jch-text-muted);
    margin: 0;
}

/* Dashboard */
.jch-dashboard {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .jch-dashboard {
        grid-template-columns: 1fr;
    }
}

/* Posts List */
.jch-posts-search {
    margin-bottom: 1rem;
}

.jch-post-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--jch-border);
    cursor: pointer;
    transition: background 0.15s ease;
}

.jch-post-item:last-child {
    border-bottom: none;
}

.jch-post-item:hover {
    background: var(--jch-background);
}

.jch-post-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.jch-post-pin {
    color: var(--jch-warning);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.jch-post-title {
    font-weight: 600;
    color: var(--jch-text);
    margin: 0;
    font-size: 0.9375rem;
}

.jch-post-summary {
    color: var(--jch-text-muted);
    font-size: 0.875rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.jch-post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--jch-text-muted);
}

.jch-post-category {
    background: var(--jch-background);
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

/* Inbox */
.jch-inbox-item {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--jch-border);
}

.jch-inbox-item:last-child {
    border-bottom: none;
}

.jch-inbox-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.jch-inbox-type {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.jch-inbox-type-approval {
    background: #fef3c7;
    color: #92400e;
}

.jch-inbox-type-task {
    background: #dbeafe;
    color: #1e40af;
}

.jch-inbox-type-reminder {
    background: #e0e7ff;
    color: #3730a3;
}

.jch-inbox-title {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--jch-text);
    margin: 0;
}

.jch-inbox-desc {
    font-size: 0.8125rem;
    color: var(--jch-text-muted);
    margin: 0.25rem 0 0 0;
    line-height: 1.4;
}

.jch-inbox-due {
    font-size: 0.75rem;
    color: var(--jch-text-muted);
    margin-top: 0.5rem;
}

.jch-inbox-due.overdue {
    color: var(--jch-danger);
}

/* Post Detail */
.jch-post-detail {
    max-width: 800px;
}

.jch-post-detail-header {
    margin-bottom: 1.5rem;
}

.jch-post-detail-content {
    line-height: 1.7;
    white-space: pre-wrap;
}

.jch-post-attachments {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--jch-border);
}

/* Empty State */
.jch-empty {
    text-align: center;
    padding: 2rem;
    color: var(--jch-text-muted);
}

/* Loading */
.jch-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--jch-text-muted);
}

/* Back Link */
.jch-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--jch-text-muted);
    font-size: 0.875rem;
}

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

/* Status badges */
.jch-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.jch-status-open {
    background: #dbeafe;
    color: #1e40af;
}

.jch-status-progress {
    background: #fef3c7;
    color: #92400e;
}

.jch-status-completed {
    background: #dcfce7;
    color: #166534;
}

/* ============================================
   MARKETS MODULE STYLES
   ============================================ */

/* Page Header */
.jch-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.jch-page-header h1 {
    margin: 0;
}

.jch-page-header p {
    margin: 0.25rem 0 0 0;
    color: var(--jch-text-muted);
}

.jch-page-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.jch-page-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.jch-page-flag {
    font-size: 2.5rem;
    line-height: 1;
}

/* Tables */
.jch-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.jch-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: var(--jch-text-muted);
    border-bottom: 1px solid var(--jch-border);
    background: var(--jch-background);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.jch-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--jch-border);
    vertical-align: middle;
}

.jch-table tbody tr {
    cursor: pointer;
    transition: background 0.15s ease;
}

.jch-table tbody tr:hover {
    background: var(--jch-background);
}

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

.jch-table-sm th,
.jch-table-sm td {
    padding: 0.5rem 0.75rem;
}

.jch-row-inactive {
    opacity: 0.6;
}

.jch-flag-cell {
    font-size: 1.5rem;
    line-height: 1;
    width: 50px;
    text-align: center;
}

/* Badges */
.jch-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 4px;
}

.jch-badge-success {
    background: #dcfce7;
    color: #166534;
}

.jch-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.jch-badge-muted {
    background: var(--jch-background);
    color: var(--jch-text-muted);
}

/* Status Badges */
.jch-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 99px;
}

.jch-status-active {
    background: #dcfce7;
    color: #166534;
}

.jch-status-planned {
    background: #dbeafe;
    color: #1e40af;
}

.jch-status-paused {
    background: #fef3c7;
    color: #92400e;
}

.jch-status-closed {
    background: #f1f5f9;
    color: #64748b;
}

/* Tabs */
.jch-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--jch-border);
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.jch-tab {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--jch-text-muted);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.jch-tab:hover {
    color: var(--jch-text);
    background: var(--jch-background);
}

.jch-tab.active {
    color: var(--jch-primary);
    border-bottom-color: var(--jch-primary);
}

/* Form Layouts */
.jch-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.jch-form-row-compact {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    margin-bottom: 0.75rem;
}

.jch-form-group-full {
    grid-column: 1 / -1;
}

.jch-form-group-lg {
    max-width: 400px;
}

.jch-help-text {
    display: block;
    font-size: 0.75rem;
    color: var(--jch-text-muted);
    margin-top: 0.25rem;
}

/* Info Box */
.jch-info-box {
    background: var(--jch-background);
    border-radius: var(--jch-radius);
    padding: 1rem;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.jch-info-box p {
    margin: 0 0 0.5rem 0;
}

.jch-info-box p:last-child {
    margin-bottom: 0;
}

/* Divider Line */
.jch-divider-line {
    border: none;
    border-top: 1px solid var(--jch-border);
    margin: 1.5rem 0;
}

/* Search & Filter Bar */
.jch-search-bar {
    flex: 1;
    max-width: 300px;
}

.jch-filter-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Danger Button */
.jch-btn-danger {
    background: var(--jch-danger);
    color: white;
    border-color: var(--jch-danger);
}

.jch-btn-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

/* Modal */
.jch-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.jch-modal {
    background: var(--jch-surface);
    border-radius: var(--jch-radius-lg);
    box-shadow: var(--jch-shadow-lg);
    width: 100%;
    max-width: 480px;
    margin: 1rem;
}

.jch-modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--jch-border);
}

.jch-modal-header h3 {
    margin: 0;
}

.jch-modal-body {
    padding: 1.5rem;
}

.jch-modal-body p {
    margin: 0 0 1rem 0;
}

.jch-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--jch-border);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Text utilities */
.jch-text-muted {
    color: var(--jch-text-muted);
}

/* Header Navigation */
.jch-header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.jch-header-nav {
    display: flex;
    gap: 0.5rem;
}

.jch-nav-link {
    padding: 0.5rem 1rem;
    color: var(--jch-text-muted);
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: var(--jch-radius);
    transition: all 0.15s ease;
}

.jch-nav-link:hover {
    background: var(--jch-background);
    color: var(--jch-text);
    text-decoration: none;
}

.jch-nav-link.active {
    background: var(--jch-background);
    color: var(--jch-primary);
}

/* Settings Grid */
.jch-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.jch-settings-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--jch-surface);
    border: 1px solid var(--jch-border);
    border-radius: var(--jch-radius-lg);
    text-decoration: none;
    color: var(--jch-text);
    transition: all 0.15s ease;
}

.jch-settings-card:hover {
    border-color: var(--jch-primary);
    box-shadow: var(--jch-shadow-lg);
    text-decoration: none;
}

.jch-settings-card-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.jch-settings-card-disabled:hover {
    border-color: var(--jch-border);
    box-shadow: none;
}

.jch-settings-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--jch-background);
    border-radius: var(--jch-radius);
    color: var(--jch-primary);
    flex-shrink: 0;
}

.jch-settings-content {
    flex: 1;
}

.jch-settings-content h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.jch-settings-content p {
    margin: 0;
    color: var(--jch-text-muted);
    font-size: 0.875rem;
}

.jch-settings-arrow {
    color: var(--jch-text-muted);
}

/* Flag Image */
.jch-page-flag-img {
    width: 48px;
    height: 36px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: var(--jch-shadow);
}

/* Actions Cell */
.jch-actions-cell {
    white-space: nowrap;
}

/* Danger Link Button */
.jch-btn-danger-link {
    color: var(--jch-danger);
}

.jch-btn-danger-link:hover {
    background: #fef2f2;
}

/* Warning Button */
.jch-btn-warning {
    background: var(--jch-warning);
    color: white;
    border-color: var(--jch-warning);
}

.jch-btn-warning:hover {
    background: #b45309;
    border-color: #b45309;
}

/* Connector Badge */
.jch-connector-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.7rem;
    font-weight: 500;
    border-radius: 99px;
    margin-left: 0.5rem;
}

.jch-connector-none {
    background: #f1f5f9;
    color: #64748b;
}

.jch-connector-connected {
    background: #dcfce7;
    color: #166534;
}

.jch-connector-error {
    background: #fef2f2;
    color: #991b1b;
}

/* Dropdown */
.jch-dropdown {
    position: relative;
}

.jch-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.25rem;
    background: var(--jch-surface);
    border: 1px solid var(--jch-border);
    border-radius: var(--jch-radius);
    box-shadow: var(--jch-shadow-lg);
    min-width: 140px;
    z-index: 100;
}

.jch-dropdown-item {
    display: block;
    width: 100%;
    padding: 0.625rem 1rem;
    text-align: left;
    font-size: 0.875rem;
    color: var(--jch-text);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

.jch-dropdown-item:hover {
    background: var(--jch-background);
}

.jch-dropdown-item:first-child {
    border-radius: var(--jch-radius) var(--jch-radius) 0 0;
}

.jch-dropdown-item:last-child {
    border-radius: 0 0 var(--jch-radius) var(--jch-radius);
}

/* Large Modal */
.jch-modal-lg {
    max-width: 640px;
}

/* Text utilities */
.jch-text-nowrap {
    white-space: nowrap;
}

.jch-text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Info Alert */
.jch-alert-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Location Icon */
.jch-location-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--jch-radius);
    font-weight: 700;
    font-size: 0.875rem;
    color: white;
    flex-shrink: 0;
}

.jch-location-icon-hq {
    background: var(--jch-primary);
}

.jch-location-icon-store {
    background: #16a34a;
}

.jch-location-icon-warehouse {
    background: #d97706;
}

.jch-location-icon-default {
    background: var(--jch-secondary);
}

/* Location Type Badges */
.jch-badge-hq {
    background: #dbeafe;
    color: #1e40af;
}

.jch-badge-store {
    background: #dcfce7;
    color: #166534;
}

.jch-badge-warehouse {
    background: #fef3c7;
    color: #92400e;
}

/* Danger text */
.jch-text-danger {
    color: var(--jch-danger);
    font-size: 0.75rem;
    display: block;
    margin-top: 0.25rem;
}

/* Organization Layout */
.jch-org-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .jch-org-layout {
        grid-template-columns: 1fr;
    }
}

.jch-org-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jch-org-item {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--jch-border);
    cursor: pointer;
    transition: background 0.15s ease;
}

.jch-org-item:last-child {
    border-bottom: none;
}

.jch-org-item:hover {
    background: var(--jch-bg-secondary);
}

.jch-org-item.active {
    background: #dbeafe;
    border-left: 3px solid var(--jch-primary);
}

.jch-org-item.inactive {
    opacity: 0.6;
}

.jch-org-item-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Holiday Calendar */
.jch-holiday-calendar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 1200px) {
    .jch-holiday-calendar {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .jch-holiday-calendar {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .jch-holiday-calendar {
        grid-template-columns: 1fr;
    }
}

.jch-calendar-month {
    background: var(--jch-bg);
    border: 1px solid var(--jch-border);
    border-radius: 8px;
    padding: 0.75rem;
}

.jch-calendar-month h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    text-align: center;
    color: var(--jch-text);
}

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

.jch-calendar-header {
    font-size: 0.65rem;
    font-weight: 600;
    text-align: center;
    padding: 0.25rem 0;
    color: var(--jch-text-muted);
}

.jch-calendar-header.jch-weekend {
    color: var(--jch-text-muted);
}

.jch-calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    border-radius: 4px;
    position: relative;
    cursor: default;
}

.jch-calendar-day.jch-calendar-empty {
    background: transparent;
}

.jch-calendar-day.jch-weekend {
    background: #f8fafc;
    color: var(--jch-text-muted);
}

.jch-calendar-day.jch-holiday {
    background: #dcfce7;
    font-weight: 600;
}

.jch-calendar-day.jch-today {
    outline: 2px solid var(--jch-primary);
    outline-offset: -2px;
}

.jch-day-number {
    line-height: 1;
}

.jch-holiday-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--jch-success);
    margin-top: 2px;
}

.jch-holiday-dot.jch-half {
    background: var(--jch-warning);
}

/* Stats Row */
.jch-stats-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.jch-stat-card {
    background: var(--jch-bg);
    border: 1px solid var(--jch-border);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    min-width: 120px;
    text-align: center;
}

.jch-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--jch-primary);
    line-height: 1.2;
}

.jch-stat-label {
    font-size: 0.75rem;
    color: var(--jch-text-muted);
    margin-top: 0.25rem;
}

/* Holiday Modal - Date Picker Row */
.jch-date-picker-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.jch-date-day {
    width: 70px;
    flex-shrink: 0;
}

.jch-date-month {
    width: 140px;
    flex-shrink: 0;
}

.jch-date-preview {
    font-size: 0.875rem;
    color: var(--jch-text-muted);
    margin-left: 0.5rem;
}

.jch-easter-offset-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.jch-easter-input {
    width: 100px;
    flex-shrink: 0;
}

.jch-easter-preview {
    font-size: 0.875rem;
    color: var(--jch-primary);
    font-weight: 500;
}

/* Day Type Selector */
.jch-day-type-selector {
    display: flex;
    gap: 0.5rem;
}

.jch-day-type-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--jch-surface);
    border: 2px solid var(--jch-border);
    border-radius: var(--jch-radius);
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.875rem;
    color: var(--jch-text-muted);
}

.jch-day-type-btn:hover {
    border-color: var(--jch-primary);
    color: var(--jch-primary);
}

.jch-day-type-btn.active {
    background: #eff6ff;
    border-color: var(--jch-primary);
    color: var(--jch-primary);
}

.jch-day-type-btn svg {
    flex-shrink: 0;
}

/* Archive/Delete Styles */
.jch-btn-archive {
    background: var(--jch-warning);
    color: white;
    border-color: var(--jch-warning);
}

.jch-btn-archive:hover {
    background: #b45309;
    border-color: #b45309;
}

.jch-delete-confirm-modal .jch-modal-body {
    text-align: center;
}

.jch-delete-warning {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.jch-delete-warning svg {
    color: var(--jch-danger);
}

.jch-delete-warning h4 {
    margin: 0;
    color: var(--jch-danger);
}

.jch-delete-reason {
    margin-top: 1rem;
}

.jch-delete-reason .jch-label {
    text-align: left;
}

/* Workflow Placeholder */
.jch-workflow-placeholder {
    background: #f0f9ff;
    border: 2px dashed #60a5fa;
    border-radius: var(--jch-radius);
    padding: 1.5rem;
    text-align: center;
    color: var(--jch-text-muted);
}

.jch-workflow-placeholder svg {
    color: #60a5fa;
    margin-bottom: 0.5rem;
}

.jch-workflow-placeholder h4 {
    color: #2563eb;
    margin: 0 0 0.25rem 0;
}

.jch-workflow-placeholder p {
    margin: 0;
    font-size: 0.875rem;
}

/* Archived Item Styles */
.jch-item-archived {
    opacity: 0.6;
    background: #f8fafc;
}

.jch-badge-archived {
    background: #fef3c7;
    color: #92400e;
}

/* Success Button */
.jch-btn-success {
    background: var(--jch-success);
    color: white;
    border-color: var(--jch-success);
}

.jch-btn-success:hover {
    background: #15803d;
    border-color: #15803d;
}

/* Danger Badge */
.jch-badge-danger {
    background: #fef2f2;
    color: #991b1b;
}

/* Primary Badge */
.jch-badge-primary {
    background: #dbeafe;
    color: #1e40af;
}

/* Archived Row Style */
.jch-row-archived {
    opacity: 0.6;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0,0,0,0.03) 10px, rgba(0,0,0,0.03) 20px);
}

/* Radio Group */
.jch-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.jch-radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* Filter Bar */
.jch-filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.jch-filter-bar .jch-form-group {
    flex: 1;
    min-width: 150px;
    max-width: 250px;
}

/* Form Row */
.jch-form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.jch-form-row .jch-form-group {
    flex: 1;
}

/* Empty State */
.jch-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--jch-text-muted);
}

.jch-empty p {
    margin-bottom: 1rem;
}

/* Settings Card Highlight */
.jch-settings-card-highlight {
    border: 2px solid var(--jch-primary);
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.02) 0%, rgba(0, 123, 255, 0.08) 100%);
}

.jch-settings-card-highlight:hover {
    border-color: var(--jch-primary);
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05) 0%, rgba(0, 123, 255, 0.12) 100%);
}


/* ================================================
   TIME TRACKING WIDGETS & COMPONENTS
   ================================================ */

/* Widget Grid */
.jch-widget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Widget Card */
.jch-widget-card {
    background: var(--jch-surface);
    border: 1px solid var(--jch-border);
    border-radius: var(--jch-radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--jch-shadow);
}

.jch-widget-card.jch-widget-highlight {
    border-color: var(--jch-warning);
    background: rgba(217, 119, 6, 0.05);
}

.jch-widget-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--jch-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.jch-widget-icon svg {
    width: 24px;
    height: 24px;
}

.jch-widget-icon-blue {
    background: rgba(37, 99, 235, 0.1);
    color: var(--jch-primary);
}

.jch-widget-icon-green {
    background: rgba(22, 163, 74, 0.1);
    color: var(--jch-success);
}

.jch-widget-icon-red {
    background: rgba(220, 38, 38, 0.1);
    color: var(--jch-danger);
}

.jch-widget-icon-orange {
    background: rgba(217, 119, 6, 0.1);
    color: var(--jch-warning);
}

.jch-widget-icon-purple {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.jch-widget-icon-teal {
    background: rgba(20, 184, 166, 0.1);
    color: #14b8a6;
}

.jch-widget-content {
    flex: 1;
    min-width: 0;
}

.jch-widget-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--jch-text);
    line-height: 1.2;
}

.jch-widget-label {
    font-size: 0.8rem;
    color: var(--jch-text-muted);
    margin-top: 0.25rem;
}

/* Grid Layouts */
.jch-grid {
    display: grid;
    gap: 1.5rem;
}

.jch-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.jch-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.jch-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .jch-grid-2, .jch-grid-3, .jch-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* List Styles */
.jch-list {
    display: flex;
    flex-direction: column;
}

.jch-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--jch-border);
}

.jch-list-item:last-child {
    border-bottom: none;
}

.jch-list-item-content {
    flex: 1;
    min-width: 0;
}

.jch-list-item-title {
    font-weight: 500;
    color: var(--jch-text);
}

.jch-list-item-subtitle {
    font-size: 0.8rem;
    color: var(--jch-text-muted);
}

.jch-list-item-badge {
    flex-shrink: 0;
}

.jch-list-item-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--jch-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Primary Light Background */
.jch-primary-light {
    background: rgba(37, 99, 235, 0.08);
}

/* Text Colors */
.text-success { color: var(--jch-success) !important; }
.text-danger { color: var(--jch-danger) !important; }
.text-warning { color: var(--jch-warning) !important; }
.text-muted { color: var(--jch-text-muted) !important; }

/* Margin Utilities */
.jch-mb-4 { margin-bottom: 1.5rem; }
.jch-mt-4 { margin-top: 1.5rem; }

/* Card Body Flush */
.jch-card-body-flush {
    padding: 0;
}

/* Form Row */
.jch-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

/* Filter Row */
.jch-filter-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.jch-filter-row .jch-form-group {
    min-width: 150px;
}

/* Absence Type List */
.jch-absence-type-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.jch-absence-type-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 2px solid var(--jch-border);
    border-radius: var(--jch-radius);
    cursor: pointer;
    transition: all 0.15s ease;
    background: var(--jch-surface);
}

.jch-absence-type-item:hover {
    border-color: var(--jch-primary);
    background: rgba(37, 99, 235, 0.02);
}

.jch-absence-type-item.jch-selected {
    border-color: var(--jch-primary);
    background: rgba(37, 99, 235, 0.08);
}

.jch-absence-type-item .jch-type-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.jch-absence-type-item .jch-type-info {
    flex: 1;
}

.jch-absence-type-item .jch-type-name {
    font-weight: 500;
    color: var(--jch-text);
}

.jch-absence-type-item .jch-type-details {
    font-size: 0.75rem;
    color: var(--jch-text-muted);
    margin-top: 0.1rem;
}

/* Status colors for calculated days */
.jch-calculated-days {
    background: var(--jch-background);
    padding: 0.75rem 1rem;
    border-radius: var(--jch-radius);
    margin-bottom: 1rem;
    text-align: center;
    border: 1px solid var(--jch-border);
}

/* Info Box */
.jch-info-box {
    background: var(--jch-background);
    padding: 0.75rem 1rem;
    border-radius: var(--jch-radius);
    margin-top: 1rem;
    border-left: 3px solid var(--jch-primary);
}

.jch-info-item {
    font-size: 0.85rem;
    color: var(--jch-text-muted);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.jch-info-item:last-child {
    margin-bottom: 0;
}

.jch-info-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Week Grid for Overview */
.jch-week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.jch-day-cell {
    background: var(--jch-background);
    border-radius: var(--jch-radius);
    padding: 0.5rem;
    text-align: center;
    min-height: 70px;
    border: 1px solid transparent;
}

.jch-day-today {
    background: rgba(37, 99, 235, 0.08);
    border-color: var(--jch-primary);
}

.jch-day-weekend {
    background: var(--jch-background);
    opacity: 0.6;
}

.jch-day-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.25rem;
}

.jch-day-name {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--jch-text-muted);
}

.jch-day-date {
    font-size: 0.8rem;
    color: var(--jch-text-muted);
}

.jch-day-hours {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--jch-text);
}

.jch-day-empty {
    color: var(--jch-text-muted);
}

.jch-week-summary {
    text-align: right;
    font-size: 0.85rem;
    color: var(--jch-text-muted);
    padding-top: 0.5rem;
    border-top: 1px solid var(--jch-border);
}

/* Quick Actions */
.jch-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.jch-quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--jch-background);
    border: 1px solid var(--jch-border);
    border-radius: var(--jch-radius);
    cursor: pointer;
    transition: all 0.15s ease;
    color: var(--jch-text);
    font-size: 0.85rem;
}

.jch-quick-action:hover {
    background: var(--jch-surface);
    border-color: var(--jch-primary);
}

.jch-quick-action-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--jch-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.jch-quick-action-icon svg {
    width: 20px;
    height: 20px;
}

.jch-bg-blue { background: var(--jch-primary); }
.jch-bg-green { background: var(--jch-success); }
.jch-bg-purple { background: #8b5cf6; }
.jch-bg-orange { background: var(--jch-warning); }

/* Tabs */
.jch-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--jch-border);
    padding-bottom: 0;
    margin-bottom: 1.5rem;
}

.jch-tab {
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: none;
    color: var(--jch-text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.15s ease;
}

.jch-tab:hover {
    color: var(--jch-text);
}

.jch-tab-active {
    color: var(--jch-primary);
    border-bottom-color: var(--jch-primary);
    font-weight: 600;
}

.jch-tab-badge {
    background: var(--jch-warning);
    color: white;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
}

/* Avatar */
.jch-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--jch-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.jch-avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
}

/* Button Variants */
.jch-btn-success {
    background: var(--jch-success);
    color: white;
    border: none;
}

.jch-btn-success:hover {
    background: #15803d;
}

.jch-btn-danger-outline {
    border: 1px solid var(--jch-danger);
    color: var(--jch-danger);
    background: transparent;
}

.jch-btn-danger-outline:hover {
    background: rgba(220, 38, 38, 0.1);
}

.jch-btn-outline {
    border: 1px solid var(--jch-border);
    background: transparent;
    color: var(--jch-text);
}

.jch-btn-outline:hover {
    background: var(--jch-background);
}

.jch-btn-icon {
    padding: 0.4rem;
    min-width: auto;
}

.jch-btn-success-icon {
    color: var(--jch-success);
    background: transparent;
    border: none;
}

.jch-btn-success-icon:hover {
    background: rgba(22, 163, 74, 0.1);
}

.jch-btn-danger-icon {
    color: var(--jch-danger);
    background: transparent;
    border: none;
}

.jch-btn-danger-icon:hover {
    background: rgba(220, 38, 38, 0.1);
}

/* Employee Cell */
.jch-employee-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Text utilities */
.jch-text-sm {
    font-size: 0.8rem;
}

.jch-text-muted {
    color: var(--jch-text-muted);
}

.jch-text-danger {
    color: var(--jch-danger);
}


/* ================================================
   TIME TRACKING PAGE SPECIFIC STYLES
   ================================================ */

/* TT KPI Grid (Overview Page) */
.tt-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1200px) {
    .tt-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .tt-kpi-grid { grid-template-columns: 1fr; }
}

.tt-kpi-card {
    background: var(--jch-surface);
    border: 1px solid var(--jch-border);
    border-radius: var(--jch-radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--jch-shadow);
}

.tt-kpi-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--jch-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tt-kpi-icon-blue { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.tt-kpi-icon-green { background: rgba(22, 163, 74, 0.1); color: #16a34a; }
.tt-kpi-icon-red { background: rgba(220, 38, 38, 0.1); color: #dc2626; }
.tt-kpi-icon-orange { background: rgba(217, 119, 6, 0.1); color: #d97706; }
.tt-kpi-icon-teal { background: rgba(20, 184, 166, 0.1); color: #14b8a6; }
.tt-kpi-icon-purple { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }

.tt-kpi-content { flex: 1; }
.tt-kpi-value { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.tt-kpi-label { font-size: 0.8rem; color: var(--jch-text-muted); margin-top: 0.25rem; }

.tt-text-success { color: #16a34a; }
.tt-text-danger { color: #dc2626; }

/* Week Overview Grid */
.tt-week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tt-day-cell {
    background: var(--jch-background);
    border-radius: var(--jch-radius);
    padding: 0.75rem 0.5rem;
    text-align: center;
    min-height: 80px;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
}

.tt-day-cell.tt-day-today {
    background: rgba(37, 99, 235, 0.08);
    border-color: var(--jch-primary);
}

.tt-day-cell.tt-day-weekend {
    background: var(--jch-background);
    opacity: 0.5;
}

.tt-day-cell.tt-day-inactive {
    background: repeating-linear-gradient(
        45deg,
        var(--jch-background),
        var(--jch-background) 5px,
        rgba(0,0,0,0.03) 5px,
        rgba(0,0,0,0.03) 10px
    );
    opacity: 0.6;
}

.tt-day-header {
    margin-bottom: 0.5rem;
}

.tt-day-name {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--jch-text-muted);
}

.tt-day-date {
    font-size: 0.8rem;
    color: var(--jch-text-muted);
}

.tt-day-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tt-day-hours {
    font-size: 1rem;
    font-weight: 600;
    color: var(--jch-text);
}

.tt-day-hours.tt-day-empty {
    color: var(--jch-text-muted);
    font-weight: normal;
}

.tt-day-status {
    font-size: 0.7rem;
    margin-top: 0.25rem;
}

.tt-week-summary {
    text-align: right;
    font-size: 0.85rem;
    color: var(--jch-text-muted);
    padding-top: 0.75rem;
    border-top: 1px solid var(--jch-border);
}

/* Quick Actions */
.tt-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.tt-quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--jch-background);
    border: 1px solid var(--jch-border);
    border-radius: var(--jch-radius);
    cursor: pointer;
    transition: all 0.15s ease;
    color: var(--jch-text);
    font-size: 0.85rem;
    text-align: center;
}

.tt-quick-action:hover {
    background: var(--jch-surface);
    border-color: var(--jch-primary);
}

.tt-quick-action-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--jch-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Recent Entries List */
.tt-entry-list {
    display: flex;
    flex-direction: column;
}

.tt-entry-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--jch-border);
}

.tt-entry-item:last-child {
    border-bottom: none;
}

.tt-entry-date {
    min-width: 80px;
}

.tt-entry-date-day {
    font-weight: 600;
    font-size: 0.9rem;
}

.tt-entry-date-weekday {
    font-size: 0.75rem;
    color: var(--jch-text-muted);
}

.tt-entry-time {
    flex: 1;
    font-size: 0.9rem;
}

.tt-entry-hours {
    font-weight: 600;
    min-width: 50px;
    text-align: right;
}

.tt-entry-status {
    min-width: 80px;
}

/* Absence Indicators */
.tt-absence-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
}

.tt-absence-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Section Headers */
.tt-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tt-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--jch-text);
}

/* Calendar Styles */
.tt-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    background: var(--jch-border);
    border: 1px solid var(--jch-border);
    border-radius: var(--jch-radius);
    overflow: hidden;
}

.tt-calendar-header {
    background: var(--jch-background);
    padding: 0.5rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--jch-text-muted);
    text-transform: uppercase;
}

.tt-calendar-cell {
    background: var(--jch-surface);
    min-height: 80px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
}

.tt-calendar-cell.tt-calendar-other-month {
    background: var(--jch-background);
    opacity: 0.5;
}

.tt-calendar-cell.tt-calendar-today {
    background: rgba(37, 99, 235, 0.05);
}

.tt-calendar-cell.tt-calendar-weekend {
    background: var(--jch-background);
}

.tt-calendar-day-number {
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.tt-calendar-today .tt-calendar-day-number {
    color: var(--jch-primary);
    font-weight: 700;
}

.tt-calendar-cell-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Nav Month */
.tt-calendar-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tt-calendar-nav-btn {
    padding: 0.5rem;
    background: var(--jch-background);
    border: 1px solid var(--jch-border);
    border-radius: var(--jch-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tt-calendar-nav-btn:hover {
    background: var(--jch-surface);
    border-color: var(--jch-primary);
}

.tt-calendar-month-label {
    font-size: 1.1rem;
    font-weight: 600;
    min-width: 150px;
    text-align: center;
}

/* Approvals Card */
.tt-approval-card {
    background: var(--jch-surface);
    border: 1px solid var(--jch-border);
    border-radius: var(--jch-radius-lg);
    overflow: hidden;
}

.tt-approval-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--jch-background);
    border-bottom: 1px solid var(--jch-border);
}

.tt-approval-employee {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tt-approval-body {
    padding: 1.25rem;
}

.tt-approval-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--jch-border);
    background: var(--jch-background);
}

/* Info Notice */
.tt-info-notice {
    background: rgba(37, 99, 235, 0.08);
    border-left: 3px solid var(--jch-primary);
    padding: 0.75rem 1rem;
    border-radius: 0 var(--jch-radius) var(--jch-radius) 0;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--jch-text-muted);
}


/* ============================================
   KI-STEUERASSISTENT STYLES
   ============================================ */

.jch-ai-panel {
    border: 1px solid #7c3aed;
    border-radius: 8px;
}

.jch-ai-header {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.jch-ai-header h5 {
    margin: 0;
    color: white;
}

.jch-ai-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.jch-btn-ai {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.jch-btn-ai:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.jch-ai-chat {
    background: #faf5ff;
}

.jch-ai-input-group {
    display: flex;
    gap: 0.5rem;
}

.jch-ai-input-group input {
    flex: 1;
}

.jch-ai-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #7c3aed;
    font-style: italic;
}

.jch-ai-suggestions {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.jch-ai-suggestion {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.75rem;
}

.jch-ai-suggestion.mandatory {
    border-color: #ef4444;
    background: #fef2f2;
}

.jch-suggestion-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.jch-ai-answer {
    background: #f0fdf4;
    border-top: 2px solid #22c55e;
}

.jch-ai-response {
    white-space: pre-wrap;
    font-size: 0.95rem;
    line-height: 1.6;
}

.jch-validation-issues {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.jch-issue {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
}

.jch-issue.error {
    background: #fef2f2;
}

.jch-issue.warning {
    background: #fffbeb;
}

.jch-issue.info {
    background: #eff6ff;
}

/* ============================================
   FINANCE CONTRACTORS STYLES
   ============================================ */

.jch-contractors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.jch-contractor-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.2s ease;
}

.jch-contractor-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.jch-contractor-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.jch-contractor-avatar {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.jch-contractor-info {
    flex: 1;
    min-width: 0;
}

.jch-contractor-name {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jch-contractor-body {
    padding: 1rem;
}

.jch-contractor-category {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.jch-contractor-detail {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #475569;
    margin-bottom: 0.5rem;
}

.jch-contractor-detail i {
    color: #94a3b8;
    width: 20px;
}

.jch-contractor-footer {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

/* ============================================
   FINANCE CHARTS STYLES
   ============================================ */

.jch-chart-container {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.jch-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.jch-chart-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.jch-chart-legend {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
}

.jch-chart-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.jch-chart-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.jch-chart-legend-dot.revenue { background: #3b82f6; }
.jch-chart-legend-dot.gross { background: #22c55e; }
.jch-chart-legend-dot.net { background: #8b5cf6; }

/* Simple Line Chart via CSS */
.jch-sparkline {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 60px;
    padding: 0.5rem 0;
}

.jch-sparkline-bar {
    flex: 1;
    background: linear-gradient(180deg, #3b82f6 0%, #60a5fa 100%);
    border-radius: 2px 2px 0 0;
    min-width: 4px;
    transition: height 0.3s ease;
}

.jch-sparkline-bar:hover {
    opacity: 0.8;
}

/* ============================================
   FIXKOSTEN CALENDAR STYLES
   ============================================ */

.jch-calendar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (max-width: 992px) {
    .jch-calendar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .jch-calendar-grid {
        grid-template-columns: 1fr;
    }
}

.jch-month-card {
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.jch-month-header {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 0.75rem 1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.jch-month-total {
    font-size: 0.9rem;
    opacity: 0.9;
}

.jch-month-items {
    padding: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.jch-month-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

.jch-month-item:hover {
    background: #f8fafc;
}

.jch-month-item-name {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jch-month-item-amount {
    font-weight: 500;
    color: #ef4444;
}

.jch-month-empty {
    text-align: center;
    color: #94a3b8;
    padding: 1rem;
    font-size: 0.85rem;
}

/* ============================================
   CURRENCY INPUT STYLES
   ============================================ */

.jch-currency-input {
    display: flex;
    gap: 0.5rem;
}

.jch-currency-input .form-control {
    flex: 1;
}

.jch-currency-input .currency-select {
    width: 100px;
}

.jch-exchange-rate-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #fef3c7;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #92400e;
    margin-top: 0.5rem;
}

.jch-exchange-rate-info i {
    color: #f59e0b;
}

/* ============================================
   ENHANCED FORM STYLES
   ============================================ */

.jch-form-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
}

.jch-form-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.jch-form-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.jch-form-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.jch-form-section-title i {
    color: #3b82f6;
}

/* ============================================
   INVESTMENT IMPROVEMENTS
   ============================================ */

.jch-investment-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.2s ease;
}

.jch-investment-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.jch-investment-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.jch-investment-title {
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.jch-investment-category {
    font-size: 0.8rem;
    color: #64748b;
}

.jch-investment-body {
    padding: 1rem 1.25rem;
}

.jch-investment-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.jch-investment-metric {
    text-align: center;
}

.jch-investment-metric-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.jch-investment-metric-value.positive { color: #22c55e; }
.jch-investment-metric-value.negative { color: #ef4444; }

.jch-investment-metric-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
}

.jch-investment-recommendation {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.jch-investment-recommendation.go {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
}

.jch-investment-recommendation.no-go {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

.jch-investment-recommendation.review {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

/* ============================================
   EMPTY STATE ENHANCEMENT
   ============================================ */

.jch-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.jch-empty-state svg,
.jch-empty-state i {
    opacity: 0.3;
    margin-bottom: 1rem;
    color: #64748b;
}

.jch-empty-state h3,
.jch-empty-state h4 {
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.jch-empty-state p {
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

/* ============================================
   MARKETING MODULE STYLES
   ============================================ */

/* Page Header */
.jch-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.jch-page-header h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--jch-text);
}

.jch-page-header .jch-text-muted {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--jch-text-muted);
}

.jch-page-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Back Link */
.jch-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--jch-text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    text-decoration: none;
    transition: color 0.15s;
}

.jch-back-link:hover {
    color: var(--jch-primary);
    text-decoration: none;
}

/* View Toggle */
.jch-view-toggle {
    display: flex;
    background: var(--jch-surface);
    border: 1px solid var(--jch-border);
    border-radius: var(--jch-radius);
    overflow: hidden;
}

.jch-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    color: var(--jch-text-muted);
    cursor: pointer;
    transition: all 0.15s;
}

.jch-view-btn:hover {
    background: var(--jch-background);
    color: var(--jch-text);
}

.jch-view-btn.active {
    background: var(--jch-primary);
    color: white;
}

/* Filter Card */
.jch-filter-card {
    background: var(--jch-surface);
    border: 1px solid var(--jch-border);
    border-radius: var(--jch-radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.jch-filter-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.jch-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    min-width: 140px;
}

.jch-filter-group .jch-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--jch-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.jch-filter-group .jch-input {
    min-width: 140px;
}

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

.jch-search-input {
    position: relative;
    display: flex;
    align-items: center;
}

.jch-search-input svg {
    position: absolute;
    left: 0.75rem;
    color: var(--jch-text-muted);
    pointer-events: none;
}

.jch-search-input .jch-input {
    padding-left: 2.25rem;
}

/* Stat Row / Badges */
.jch-stat-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.jch-stat-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--jch-surface);
    border: 1px solid var(--jch-border);
    border-radius: var(--jch-radius);
    cursor: pointer;
    transition: all 0.15s;
}

.jch-stat-badge:hover {
    border-color: var(--jch-primary);
}

.jch-stat-badge.active {
    background: var(--jch-primary);
    border-color: var(--jch-primary);
    color: white;
}

.jch-stat-badge.active .jch-stat-label {
    color: rgba(255, 255, 255, 0.8);
}

.jch-stat-count {
    font-weight: 600;
    font-size: 1rem;
}

.jch-stat-label {
    font-size: 0.8rem;
    color: var(--jch-text-muted);
}

.jch-stat-badge.jch-stat-warning .jch-stat-count {
    color: var(--jch-warning);
}

.jch-stat-badge.jch-stat-success .jch-stat-count {
    color: var(--jch-success);
}

/* Stats Grid (for Accounts page) */
.jch-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
    .jch-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .jch-stats-grid {
        grid-template-columns: 1fr;
    }
}

.jch-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--jch-surface);
    border: 1px solid var(--jch-border);
    border-radius: var(--jch-radius-lg);
}

.jch-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
}

.jch-stat-icon-green {
    background: #dcfce7;
    color: #16a34a;
}

.jch-stat-icon-orange {
    background: #fef3c7;
    color: #d97706;
}

.jch-stat-icon-red {
    background: #fee2e2;
    color: #dc2626;
}

.jch-stat-icon-gray {
    background: #f3f4f6;
    color: #6b7280;
}

.jch-stat-icon-blue {
    background: #dbeafe;
    color: #2563eb;
}

.jch-stat-content {
    display: flex;
    flex-direction: column;
}

.jch-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--jch-text);
    line-height: 1.2;
}

.jch-stat-card .jch-stat-label {
    font-size: 0.8rem;
    color: var(--jch-text-muted);
}

/* Table Enhancements */
.jch-table {
    width: 100%;
    border-collapse: collapse;
}

.jch-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--jch-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    border-bottom: 1px solid var(--jch-border);
    background: var(--jch-background);
}

.jch-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--jch-border);
    font-size: 0.875rem;
    color: var(--jch-text);
    vertical-align: middle;
}

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

.jch-row-clickable {
    cursor: pointer;
    transition: background 0.15s;
}

.jch-row-clickable:hover {
    background: var(--jch-background);
}

/* Icon Button */
.jch-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: var(--jch-radius);
    background: transparent;
    border: 1px solid transparent;
    color: var(--jch-text-muted);
    cursor: pointer;
    transition: all 0.15s;
}

.jch-btn-icon:hover {
    background: var(--jch-background);
    color: var(--jch-text);
    border-color: var(--jch-border);
}

.jch-btn-icon.jch-btn-secondary {
    border-color: var(--jch-border);
    background: var(--jch-surface);
}

.jch-btn-icon.jch-btn-secondary:hover {
    background: var(--jch-background);
}

/* Actions Cell */
.jch-actions {
    display: flex;
    gap: 0.25rem;
    justify-content: flex-end;
}

/* Additional Badge Classes */
.jch-badge-secondary {
    background: #f3f4f6;
    color: #4b5563;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
}

.jch-badge-info {
    background: #dbeafe;
    color: #1e40af;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
}

.jch-badge-neutral {
    background: #f3f4f6;
    color: #6b7280;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
}

/* Content Thumb */
.jch-content-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--jch-background);
    border-radius: 6px;
    color: var(--jch-text-muted);
}

.jch-content-title {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.jch-taxonomy-tags {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.jch-taxonomy-tags .jch-badge-warning,
.jch-taxonomy-tags .jch-badge-info {
    font-size: 0.65rem;
    padding: 0.125rem 0.375rem;
}

/* Link Style */
.jch-link {
    color: var(--jch-primary);
    cursor: pointer;
}

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

/* Content Grid */
.jch-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.jch-content-card {
    cursor: pointer;
    transition: all 0.15s;
}

.jch-content-card:hover {
    box-shadow: var(--jch-shadow-lg);
    transform: translateY(-2px);
}

.jch-content-preview {
    height: 120px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--jch-text-muted);
}

.jch-content-type-badge {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.jch-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.jch-content-name {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jch-content-schedule {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--jch-text-muted);
    margin-top: 0.25rem;
}

/* Marketing Calendar */
.jch-calendar {
    overflow: hidden;
}

.jch-calendar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--jch-border);
    background: var(--jch-background);
}

.jch-calendar-header h5 {
    margin: 0;
    min-width: 220px;
    text-align: center;
}

.jch-calendar .jch-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    margin-top: 0;
}

.jch-calendar-day {
    min-height: 140px;
    border-right: 1px solid var(--jch-border);
    border-bottom: 1px solid var(--jch-border);
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
}

.jch-calendar-day:nth-child(7n) {
    border-right: none;
}

.jch-calendar-day.today {
    background: #eff6ff;
}

.jch-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.jch-day-name {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--jch-text-muted);
    text-transform: uppercase;
}

.jch-day-number {
    font-size: 0.8rem;
    font-weight: 600;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.jch-day-number.jch-badge-primary {
    background: var(--jch-primary);
    color: white;
}

.jch-day-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow-y: auto;
}

.jch-calendar-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.15s;
    background: #e0e7ff;
    color: #3730a3;
}

.jch-calendar-item:hover {
    opacity: 0.8;
}

.jch-calendar-success {
    background: #dcfce7;
    color: #166534;
}

.jch-calendar-info {
    background: #dbeafe;
    color: #1e40af;
}

.jch-calendar-warning {
    background: #fef3c7;
    color: #92400e;
}

.jch-calendar-secondary {
    background: #f3f4f6;
    color: #4b5563;
}

.jch-item-time {
    font-weight: 500;
    min-width: 35px;
}

.jch-item-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jch-add-content-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    margin-top: auto;
    background: transparent;
    border: 1px dashed var(--jch-border);
    border-radius: 4px;
    color: var(--jch-text-muted);
    cursor: pointer;
    transition: all 0.15s;
}

.jch-add-content-btn:hover {
    border-color: var(--jch-primary);
    color: var(--jch-primary);
    background: #eff6ff;
}

/* Marketing Accounts */
.jch-accounts-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.jch-account-category h5 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--jch-text);
}

.jch-account-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.jch-account-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--jch-surface);
    border: 1px solid var(--jch-border);
    border-radius: var(--jch-radius-lg);
    transition: all 0.15s;
}

.jch-account-card:hover {
    box-shadow: var(--jch-shadow);
}

.jch-account-card.connected {
    border-left: 3px solid var(--jch-success);
}

.jch-account-card.degraded {
    border-left: 3px solid var(--jch-warning);
}

.jch-account-card.expired {
    border-left: 3px solid var(--jch-danger);
}

.jch-account-card.disconnected {
    border-left: 3px solid #9ca3af;
}

.jch-account-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--jch-background);
    border-radius: 10px;
    flex-shrink: 0;
}

.jch-account-info {
    flex: 1;
    min-width: 0;
}

.jch-account-name {
    display: block;
    font-weight: 500;
    color: var(--jch-text);
}

.jch-account-platform {
    display: block;
    font-size: 0.8rem;
    color: var(--jch-text-muted);
}

.jch-account-status {
    flex-shrink: 0;
}

.jch-account-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Account Sync Info */
.jch-account-sync-info {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--jch-text-muted);
    margin-top: 0.125rem;
}

.jch-account-sync-info svg {
    opacity: 0.7;
}

/* Connect Hub Status */
.jch-account-connect-status {
    flex-shrink: 0;
    margin-right: 0.5rem;
}

.jch-connect-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--jch-radius);
    white-space: nowrap;
}

.jch-connect-badge.jch-connect-connected {
    background: rgba(16, 185, 129, 0.1);
    color: var(--jch-success);
}

.jch-connect-badge.jch-connect-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--jch-danger);
}

.jch-connect-badge.jch-connect-expired {
    background: rgba(245, 158, 11, 0.1);
    color: var(--jch-warning);
}

.jch-connect-badge.jch-connect-disabled,
.jch-connect-badge.jch-connect-unknown {
    background: rgba(107, 114, 128, 0.1);
    color: var(--jch-text-muted);
}

/* Extra Small Button */
.jch-btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1.2;
}

.jch-btn-xs svg {
    width: 12px;
    height: 12px;
}

.jch-btn-outline {
    background: transparent;
    border: 1px solid var(--jch-border);
    color: var(--jch-text-muted);
}

.jch-btn-outline:hover {
    background: var(--jch-background);
    color: var(--jch-text);
    border-color: var(--jch-primary);
}

/* Spin Animation for Sync */
.jch-spin {
    animation: jch-spin 1s linear infinite;
}

@keyframes jch-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Modal Styles */
.jch-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.jch-modal {
    background: var(--jch-surface);
    border-radius: var(--jch-radius-lg);
    box-shadow: var(--jch-shadow-lg);
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.jch-modal-sm {
    max-width: 400px;
}

.jch-modal-md {
    max-width: 600px;
}

.jch-modal-lg {
    max-width: 900px;
}

.jch-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--jch-border);
}

.jch-modal-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--jch-text);
}

.jch-modal-body {
    padding: 1.25rem;
    overflow-y: auto;
}

.jch-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--jch-border);
    background: var(--jch-background);
}

/* Compact Empty State */
.jch-empty-state-compact {
    padding: 1rem;
    text-align: center;
}

.jch-empty-state-compact p {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    color: var(--jch-text-muted);
}

/* Form Group */
.jch-form-group {
    margin-bottom: 1rem;
}

.jch-label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--jch-text);
}

.jch-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--jch-text);
    background: var(--jch-surface);
    border: 1px solid var(--jch-border);
    border-radius: var(--jch-radius);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.jch-select:focus {
    outline: none;
    border-color: var(--jch-primary);
    box-shadow: 0 0 0 3px rgba(var(--jch-primary-rgb), 0.1);
}

/* Document List */
.jch-document-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.jch-document-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    background: var(--jch-background);
    border: 1px solid var(--jch-border);
    border-radius: var(--jch-radius);
    text-decoration: none;
    color: var(--jch-text);
    transition: all 0.15s;
}

.jch-document-item:hover {
    background: var(--jch-surface);
    border-color: var(--jch-primary);
}

.jch-document-icon {
    color: var(--jch-text-muted);
    flex-shrink: 0;
}

.jch-document-info {
    flex: 1;
    min-width: 0;
}

.jch-document-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jch-document-meta {
    display: block;
    font-size: 0.75rem;
    color: var(--jch-text-muted);
}

.jch-account-empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--jch-background);
    border: 1px dashed var(--jch-border);
    border-radius: var(--jch-radius-lg);
    color: var(--jch-text-muted);
}

/* Settings Section */
.jch-settings-section {
    margin-top: 2rem;
}

.jch-settings-section h5 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--jch-text);
}

.jch-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .jch-settings-grid {
        grid-template-columns: 1fr;
    }
}

.jch-settings-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0;
}

.jch-settings-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #eff6ff;
    border-radius: 10px;
    color: var(--jch-primary);
    flex-shrink: 0;
}

.jch-settings-info {
    flex: 1;
    min-width: 0;
}

.jch-settings-title {
    display: block;
    font-weight: 500;
    color: var(--jch-text);
}

.jch-settings-desc {
    display: block;
    font-size: 0.8rem;
    color: var(--jch-text-muted);
}

.jch-settings-arrow {
    color: var(--jch-text-muted);
    flex-shrink: 0;
}

/* Loading State */
.jch-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    gap: 1rem;
    color: var(--jch-text-muted);
}

.jch-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--jch-border);
    border-top-color: var(--jch-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Empty State */
.jch-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--jch-text-muted);
    background: var(--jch-surface);
    border: 1px solid var(--jch-border);
    border-radius: var(--jch-radius-lg);
}

.jch-empty svg {
    opacity: 0.3;
    margin-bottom: 1rem;
}

.jch-empty h4 {
    color: var(--jch-text);
    margin-bottom: 0.5rem;
}

.jch-empty p {
    margin-bottom: 1.5rem;
}

/* Checkbox Grid - FIXED */
.jch-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
}

.jch-checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.875rem;
    background: var(--jch-surface);
    border: 1px solid var(--jch-border);
    border-radius: var(--jch-radius);
    cursor: pointer;
    transition: all 0.15s;
    min-width: 0;
}

.jch-checkbox-item:hover {
    border-color: var(--jch-primary);
    background: #f8fafc;
}

.jch-checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--jch-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.jch-checkbox-item input[type="checkbox"]:checked + .jch-checkbox-label {
    color: var(--jch-primary);
    font-weight: 500;
}

.jch-checkbox-label {
    font-size: 0.875rem;
    color: var(--jch-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Form Grid */
.jch-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .jch-form-grid {
        grid-template-columns: 1fr;
    }
}

.jch-span-2 {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .jch-span-2 {
        grid-column: span 1;
    }
}

.jch-span-full {
    grid-column: 1 / -1;
}

.jch-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.jch-required {
    color: var(--jch-danger);
}

.jch-textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    font-family: inherit;
    border: 1px solid var(--jch-border);
    border-radius: var(--jch-radius);
    background: var(--jch-surface);
    color: var(--jch-text);
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.jch-textarea:focus {
    outline: none;
    border-color: var(--jch-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Marketing Widgets (Dashboard) */
.jch-widget-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1400px) {
    .jch-widget-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .jch-widget-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .jch-widget-row {
        grid-template-columns: 1fr;
    }
}

.jch-widget-card {
    background: var(--jch-surface);
    border: 1px solid var(--jch-border);
    border-radius: var(--jch-radius-lg);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.jch-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.jch-widget-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #eff6ff;
    color: var(--jch-primary);
}

.jch-widget-icon.success {
    background: #dcfce7;
    color: var(--jch-success);
}

.jch-widget-icon.warning {
    background: #fef3c7;
    color: var(--jch-warning);
}

.jch-widget-icon.danger {
    background: #fee2e2;
    color: var(--jch-danger);
}

.jch-widget-change {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.jch-widget-change.positive {
    color: var(--jch-success);
}

.jch-widget-change.negative {
    color: var(--jch-danger);
}

.jch-widget-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--jch-text);
    line-height: 1.2;
}

.jch-widget-label {
    font-size: 0.8rem;
    color: var(--jch-text-muted);
}

/* Marketing List Rows */
.jch-list-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.jch-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--jch-border);
}

.jch-list-item:last-child {
    border-bottom: none;
}

.jch-list-info {
    flex: 1;
    min-width: 0;
}

.jch-list-title {
    font-weight: 500;
    color: var(--jch-text);
    margin: 0 0 0.125rem 0;
    font-size: 0.875rem;
}

.jch-list-meta {
    font-size: 0.75rem;
    color: var(--jch-text-muted);
}

/* Danger Button */
.jch-btn-danger {
    background: var(--jch-danger);
    color: white;
    border-color: var(--jch-danger);
}

.jch-btn-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

/* Text Utilities */
.jch-text-muted {
    color: var(--jch-text-muted);
}

.jch-text-success {
    color: var(--jch-success);
}

.jch-text-warning {
    color: var(--jch-warning);
}

.jch-text-danger {
    color: var(--jch-danger);
}

.jch-text-bold {
    font-weight: 600;
}

.jch-text-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Type Badges (Campaign) */
.jch-type-paid {
    background: #dbeafe;
    color: #1e40af;
}

.jch-type-organic {
    background: #dcfce7;
    color: #166534;
}

.jch-type-influencer {
    background: #f3e8ff;
    color: #6b21a8;
}

.jch-type-email {
    background: #e0f2fe;
    color: #0369a1;
}

.jch-type-affiliate {
    background: #fef3c7;
    color: #92400e;
}

.jch-type-default {
    background: #f3f4f6;
    color: #6b7280;
}

/* Status Badges */
.jch-status-success {
    background: #dcfce7;
    color: #166534;
}

.jch-status-primary {
    background: #dbeafe;
    color: #1e40af;
}

.jch-status-warning {
    background: #fef3c7;
    color: #92400e;
}

.jch-status-info {
    background: #e0e7ff;
    color: #4338ca;
}

.jch-status-muted {
    background: #f3f4f6;
    color: #6b7280;
}

.jch-status-secondary {
    background: #e5e7eb;
    color: #374151;
}

.jch-status-danger {
    background: #fee2e2;
    color: #991b1b;
}

.jch-status-default {
    background: #f3f4f6;
    color: #6b7280;
}

/* Table Enhancements */
.jch-th-right {
    text-align: right !important;
}

.jch-th-actions {
    width: 50px;
}

.jch-td-right {
    text-align: right;
}

.jch-td-actions {
    position: relative;
}

/* Cell Styles */
.jch-cell-campaign {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.jch-campaign-name {
    font-weight: 600;
    color: var(--jch-text);
    font-size: 0.875rem;
}

.jch-campaign-code {
    font-size: 0.72rem;
    color: var(--jch-text-muted);
}

.jch-date-range {
    font-size: 0.82rem;
    white-space: nowrap;
}

.jch-budget {
    font-weight: 600;
    color: var(--jch-text);
}

/* Market Tags */
.jch-market-tags {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.jch-market-tag {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    background: var(--jch-background);
    border-radius: 4px;
    color: var(--jch-text-muted);
    font-weight: 500;
}

.jch-market-more {
    background: var(--jch-border);
}

/* Actions Dropdown */
.jch-actions-dropdown {
    position: relative;
}

.jch-actions-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--jch-text-muted);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.jch-actions-btn:hover {
    background: var(--jch-background);
    color: var(--jch-text);
}

.jch-dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 50;
    min-width: 160px;
    background: var(--jch-surface);
    border: 1px solid var(--jch-border);
    border-radius: var(--jch-radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.jch-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    font-size: 0.82rem;
    color: var(--jch-text);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

.jch-dropdown-item:hover {
    background: var(--jch-background);
    text-decoration: none;
}

.jch-dropdown-item svg {
    color: var(--jch-text-muted);
}

.jch-dropdown-danger {
    color: var(--jch-danger);
}

.jch-dropdown-danger svg {
    color: var(--jch-danger);
}

.jch-dropdown-divider {
    height: 1px;
    background: var(--jch-border);
    margin: 0.5rem 0;
}

.jch-dropdown-sub {
    padding-left: 1.75rem;
    font-size: 0.8125rem;
    color: var(--jch-text-muted);
}

.jch-dropdown-sub:hover {
    color: var(--jch-text);
}

/* Campaign Cards */
.jch-campaign-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 1200px) {
    .jch-campaign-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .jch-campaign-cards {
        grid-template-columns: 1fr;
    }
}

.jch-campaign-card {
    background: var(--jch-surface);
    border: 1px solid var(--jch-border);
    border-radius: var(--jch-radius-lg);
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.jch-campaign-card:hover {
    box-shadow: var(--jch-shadow-lg);
    transform: translateY(-2px);
}

.jch-card-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.jch-card-code {
    font-size: 0.75rem;
    color: var(--jch-text-muted);
}

.jch-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.75rem;
    font-size: 0.78rem;
    color: var(--jch-text-muted);
}

.jch-card-meta svg {
    margin-right: 0.4rem;
    color: var(--jch-text-muted);
    vertical-align: -2px;
}

.jch-card-markets {
    margin-top: 0.75rem;
}

.jch-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--jch-border);
}

.jch-channels {
    display: flex;
    gap: 0.5rem;
}

.jch-channel-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* List Header */
.jch-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.jch-list-count {
    font-size: 0.82rem;
    color: var(--jch-text-muted);
}

/* Filter Checkbox */
.jch-filter-checkbox {
    justify-content: flex-end;
}

/* Badge base style with proper padding */
.jch-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 4px;
}

/* Dashboard Layout */
.jch-dashboard {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 1100px) {
    .jch-dashboard {
        grid-template-columns: 1fr;
    }
}

.jch-dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.jch-dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* List Rows for Dashboard */
.jch-list-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--jch-border);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.jch-list-row:last-child {
    border-bottom: none;
}

.jch-list-row:hover {
    background: var(--jch-background);
}

.jch-list-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

.jch-list-icon svg {
    width: 18px;
    height: 18px;
}

.jch-list-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.jch-list-amount {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* KPI Display */
.jch-kpi-display {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.jch-kpi-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--jch-primary);
}

.jch-kpi-label {
    font-size: 0.9rem;
    color: var(--jch-text-muted);
}

.jch-empty-mini {
    color: var(--jch-text-muted);
    font-size: 0.85rem;
    padding: 0.5rem 0;
}

/* Account Row */
.jch-account-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--jch-border);
}

.jch-account-row:last-child {
    border-bottom: none;
}

.jch-account-icon svg {
    width: 20px;
    height: 20px;
}

/* Compact Card */
.jch-card-compact .jch-card-header {
    padding: 0.75rem 1rem;
}

.jch-card-compact .jch-card-body {
    padding: 1rem;
}

.jch-card-compact .jch-card-title {
    font-size: 0.95rem;
}

/* Quick Links */
.jch-quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.jch-quick-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    background: var(--jch-background);
    text-decoration: none;
    color: var(--jch-text);
    font-size: 0.85rem;
    transition: all 0.15s;
}

.jch-quick-link:hover {
    background: var(--jch-border);
    color: var(--jch-primary);
    text-decoration: none;
}

.jch-quick-link svg {
    color: var(--jch-text-muted);
}

.jch-quick-link:hover svg {
    color: var(--jch-primary);
}

/* Widget Card Enhancements */
.jch-widget-clickable {
    cursor: pointer;
}

.jch-widget-clickable:hover {
    transform: translateY(-2px);
    box-shadow: var(--jch-shadow-lg);
}

.jch-widget-alert {
    border-left: 3px solid var(--jch-danger);
}

.jch-widget-icon.jch-widget-primary {
    background: rgba(37, 99, 235, 0.1);
    color: var(--jch-primary);
}

.jch-widget-icon.jch-widget-success {
    background: rgba(22, 163, 74, 0.1);
    color: var(--jch-success);
}

.jch-widget-icon.jch-widget-warning {
    background: rgba(234, 179, 8, 0.1);
    color: #b45309;
}

.jch-widget-icon.jch-widget-danger {
    background: rgba(220, 53, 69, 0.1);
    color: var(--jch-danger);
}

.jch-widget-icon.jch-widget-info {
    background: rgba(14, 165, 233, 0.1);
    color: #0284c7;
}

.jch-widget-content {
    display: flex;
    flex-direction: column;
}

/* Creative Grid */
.jch-creative-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

@media (max-width: 1400px) {
    .jch-creative-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .jch-creative-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .jch-creative-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.jch-creative-card {
    background: var(--jch-surface);
    border: 1px solid var(--jch-border);
    border-radius: var(--jch-radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

.jch-creative-card:hover {
    box-shadow: var(--jch-shadow-lg);
    transform: translateY(-3px);
    border-color: var(--jch-primary);
}

.jch-creative-card.fatigued {
    border-color: var(--jch-warning);
}

.jch-creative-preview {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--jch-background) 0%, var(--jch-border) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--jch-text-muted);
    position: relative;
}

.jch-fatigue-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--jch-warning);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.jch-duration-badge {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
}

.jch-creative-info {
    padding: 1rem;
}

.jch-creative-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--jch-text);
}

.jch-creative-meta {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.jch-creative-stats {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--jch-text-muted);
}

.jch-creative-stats svg {
    margin-right: 0.25rem;
    vertical-align: -1px;
    color: var(--jch-text-muted);
}

.jch-creative-thumb {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--jch-background) 0%, var(--jch-border) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--jch-text-muted);
}

.jch-creative-thumb svg {
    width: 24px;
    height: 24px;
}

.jch-creative-title {
    display: flex;
    flex-direction: column;
}

.jch-creative-title span {
    font-weight: 500;
    color: var(--jch-text);
}

.jch-creative-title small {
    font-size: 0.75rem;
}

/* Row warning highlight */
.jch-row-warning {
    background: rgba(245, 158, 11, 0.05);
}

/* Alert Banner */
.jch-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-radius: var(--jch-radius);
    background: #fef3c7;
    border: 1px solid #f59e0b;
}

.jch-alert-error {
    background: #fee2e2;
    border-color: #ef4444;
}

.jch-alert-error svg {
    color: var(--jch-danger);
}

/* ============================================
   Design System Konsolidierung - Unified Styles
   ============================================ */

/* KPI Grid System */
.jch-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.jch-kpi-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.15s ease;
}

.jch-kpi-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.jch-kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.jch-kpi-icon.primary,
.jch-kpi-icon.episodes {
    background: #dbeafe;
    color: #2563eb;
}

.jch-kpi-icon.success,
.jch-kpi-icon.products,
.jch-kpi-icon.ready {
    background: #dcfce7;
    color: #16a34a;
}

.jch-kpi-icon.warning,
.jch-kpi-icon.qc-pending {
    background: #fef3c7;
    color: #d97706;
}

.jch-kpi-icon.danger {
    background: #fee2e2;
    color: #dc2626;
}

.jch-kpi-icon.info,
.jch-kpi-icon.blue {
    background: #dbeafe;
    color: #2563eb;
}

.jch-kpi-icon.green {
    background: #dcfce7;
    color: #16a34a;
}

.jch-kpi-icon.orange {
    background: #fef3c7;
    color: #d97706;
}

.jch-kpi-icon.gray {
    background: #f1f5f9;
    color: #64748b;
}

.jch-kpi-icon-info {
    background: #dbeafe;
    color: #2563eb;
}

.jch-kpi-icon-warning {
    background: #fef3c7;
    color: #d97706;
}

.jch-kpi-icon-danger {
    background: #fee2e2;
    color: #dc2626;
}

.jch-kpi-icon-success {
    background: #dcfce7;
    color: #16a34a;
}

.jch-kpi-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.jch-kpi-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.2;
}

.jch-kpi-label {
    font-size: 0.875rem;
    color: #475569;
}

.jch-kpi-sub,
.jch-kpi-subtitle {
    font-size: 0.75rem;
    color: #94a3b8;
}

.jch-kpi-trend {
    font-size: 0.75rem;
}

.jch-kpi-trend.positive {
    color: #16a34a;
}

.jch-kpi-trend.negative {
    color: #dc2626;
}

/* KPI Row (alias for grid) */
.jch-kpi-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.jch-kpi-row .jch-kpi-card {
    flex: 1;
    min-width: 200px;
}

/* Page Container */
.jch-page {
    padding: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.jch-page-container {
    padding: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.jch-page-body {
    margin-top: 1.5rem;
}

.jch-page-subtitle {
    color: #64748b;
    margin-top: 0.25rem;
    font-size: 0.9375rem;
}

.jch-page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.jch-page-title svg {
    color: #64748b;
}

/* Breadcrumb */
.jch-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.jch-breadcrumb-link {
    color: #3b82f6;
    text-decoration: none;
}

.jch-breadcrumb-link:hover {
    text-decoration: underline;
}

.jch-breadcrumb-separator {
    color: #94a3b8;
}

.jch-breadcrumb-current {
    color: #475569;
}

/* Section */
.jch-section {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.jch-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
}

.jch-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

/* List Items */
.jch-list {
    display: flex;
    flex-direction: column;
}

.jch-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.15s ease;
}

.jch-list-item:hover {
    background: #f8fafc;
}

.jch-list-item:last-child {
    border-bottom: none;
}

.jch-list-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    flex-shrink: 0;
}

.jch-list-content {
    flex: 1;
    min-width: 0;
}

.jch-list-title {
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.jch-list-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: #64748b;
}

/* Action Cards Grid */
.jch-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.jch-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 8px;
    text-decoration: none;
    color: #475569;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.jch-action-card:hover {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #e2e8f0;
}

.jch-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: white;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Filter Controls */
.jch-filter-section {
    margin-bottom: 1.5rem;
}

.jch-filter-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.jch-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.jch-filter-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #475569;
}

.jch-select-sm {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    background: white;
    min-width: 150px;
}

.jch-select-sm:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Pill Selector */
.jch-pill-selector {
    display: flex;
    gap: 0.5rem;
    padding: 0.25rem;
    background: #f1f5f9;
    border-radius: 8px;
}

.jch-pill {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.875rem;
    color: #64748b;
    transition: all 0.15s ease;
}

.jch-pill:hover {
    color: #1e293b;
}

.jch-pill.active {
    background: white;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* View Tabs */
.jch-view-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    padding: 0.25rem;
    background: #f1f5f9;
    border-radius: 8px;
    flex-wrap: wrap;
}

.jch-view-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.jch-view-tab:hover {
    color: #1e293b;
    background: rgba(255, 255, 255, 0.5);
}

.jch-view-tab.active {
    background: white;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Link */
.jch-link {
    color: #3b82f6;
    text-decoration: none;
}

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

/* Icon sizes */
.jch-icon-lg {
    width: 24px;
    height: 24px;
}

.jch-icon {
    width: 18px;
    height: 18px;
}

.jch-icon-xs {
    width: 14px;
    height: 14px;
}

/* Responsive */
@media (max-width: 1200px) {
    .jch-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .jch-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .jch-kpi-grid {
        grid-template-columns: 1fr;
    }
    .jch-actions-grid {
        grid-template-columns: 1fr;
    }
    .jch-page {
        padding: 1rem;
    }
}
