/* emerald-workspace — soft, spacious green productivity design. */

[data-theme="emerald-workspace"] {
    --color-scheme: light;
    --default-font-family: "Nunito Sans";
    --font-display: "Nunito Sans";
    --font-size-base: 15px;
    --font-size-lg: 16px;
    --line-height-base: 1.65;
    --letter-spacing-tight: -0.2px;
    --letter-spacing-wide: 0.55px;

    --color-topbar-bg: #0f3d32;
    --color-topbar-text: #ecfdf5;
    --color-topbar-muted: rgba(236, 253, 245, 0.18);
    --color-topbar-hover: rgba(236, 253, 245, 0.12);

    --color-menu-bg: #f7fbf8;
    --color-menu-text: #245c4a;
    --color-menu-hover: #e6f4ee;
    --color-menu-active-bg: #d1fae5;
    --color-menu-active-border: #6ee7b7;
    --nav-item-radius: 999px;

    --color-body-bg: #f3f7f4;
    --color-surface-0: #f3f7f4;
    --color-surface-1: #ffffff;
    --color-surface-2: #eef6f1;
    --color-surface-3: #d1fae5;
    --color-card-bg: #ffffff;
    --color-card-muted: #f4faf6;
    --color-table-stripe: #f4faf6;
    --color-table-header: #e7f3ec;
    --color-table-hover: #d1fae5;
    --color-table-border: #cfe3d6;
    --color-overlay: rgba(15, 61, 50, 0.45);
    --color-scrim: rgba(15, 61, 50, 0.28);

    --color-text-primary: #134e4a;
    --color-text-secondary: #3d6b5f;
    --color-text-muted: #6b9085;
    --color-text-inverse: #ecfdf5;
    --color-text-on-accent: #ffffff;

    --color-accent: #0f766e;
    --color-accent-hover: #115e59;
    --color-accent-light: #ccfbf1;
    --color-accent-contrast: #134e4a;
    --color-danger: #dc2626;
    --color-danger-hover: #b91c1c;
    --color-danger-soft: #fef2f2;
    --color-danger-soft-text: #991b1b;
    --color-success: #15803d;
    --color-success-hover: #166534;
    --color-success-soft: #ecfdf5;
    --color-success-soft-text: #14532d;
    --color-warning: #d97706;
    --color-warning-hover: #b45309;
    --color-warning-soft: #fffbeb;
    --color-warning-soft-text: #92400e;
    --color-info: #0e7490;
    --color-info-hover: #155e75;
    --color-info-soft: #ecfeff;
    --color-info-soft-text: #164e63;

    --btn-primary: #0f766e;
    --btn-primary-hover: #115e59;
    --btn-success: #15803d;
    --btn-success-hover: #166534;
    --btn-secondary: #5b7268;
    --btn-secondary-hover: #4b5d55;

    --border-color: #cfe3d6;
    --border-strong: #a7c4b5;
    --border-focus: #0f766e;
    --focus-ring: 0 0 0 3px rgba(15, 118, 110, 0.28);

    --color-input-bg: #ffffff;
    --color-input-border: #a7c4b5;
    --color-input-text: #134e4a;
    --color-input-placeholder: #6b9085;
    --color-input-disabled-bg: #eef6f1;
    --control-height: 42px;
    --control-height-sm: 34px;
    --control-padding-x: 18px;

    --shadow-xs: 0 1px 2px rgba(15, 61, 50, 0.05);
    --shadow-sm: 0 2px 8px rgba(15, 61, 50, 0.06);
    --shadow-md: 0 8px 22px rgba(15, 61, 50, 0.08);
    --shadow-lg: 0 16px 36px rgba(15, 61, 50, 0.10);
    --shadow-header: 0 2px 10px rgba(15, 61, 50, 0.10);
    --shadow-modal: 0 24px 56px rgba(15, 61, 50, 0.16);

    --header-top-height: 52px;
    --header-bottom-height: 52px;
    --content-padding: 28px;
    --space-1: 6px;
    --space-2: 10px;
    --space-3: 14px;
    --space-4: 18px;
    --space-5: 24px;
    --space-6: 32px;

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --gradient-page: linear-gradient(180deg, rgba(204, 251, 241, 0.55), rgba(243, 247, 244, 0));
    --gradient-hero: linear-gradient(135deg, #0f3d32 0%, #115e59 48%, #0f766e 100%);
    --gradient-brand: linear-gradient(135deg, #115e59 0%, #0f766e 50%, #14b8a6 100%);
    --gradient-accent: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    --gradient-card-head: linear-gradient(135deg, #f4faf6 0%, #ccfbf1 100%);
    --gradient-audit: linear-gradient(135deg, #f4faf6 0%, #e7f3ec 100%);
    --decor-blob-1: rgba(20, 184, 166, 0.22);
    --decor-blob-2: rgba(16, 185, 129, 0.16);

    --auth-page-bg: radial-gradient(circle at top, #1a6b58 0%, #0f3d32 46%, #08261f 100%);
    --auth-showcase-bg: linear-gradient(135deg, rgba(15, 61, 50, 0.92) 0%, rgba(8, 38, 31, 0.88) 100%);
    --auth-showcase-border: rgba(110, 231, 183, 0.28);
    --auth-showcase-shadow: 0 12px 36px rgba(8, 38, 31, 0.35);
    --auth-badge-bg: rgba(20, 83, 70, 0.72);
    --auth-badge-border: rgba(167, 243, 208, 0.55);
    --auth-badge-text: #bbf7d0;
    --auth-heading: #f0fdf4;
    --auth-body-text: #cce8dc;
    --auth-list-text: #e7f6ef;
    --auth-icon: #6ee7b7;
    --auth-card-bg: linear-gradient(180deg, rgba(240, 253, 244, 0.98), rgba(236, 253, 245, 0.96));
    --auth-card-border: rgba(110, 231, 183, 0.4);
    --auth-card-shadow: 0 28px 64px rgba(8, 38, 31, 0.28);
    --auth-card-text: #134e4a;
    --auth-muted: #3d6b5f;
    --auth-label: #245c4a;
    --auth-input-bg: #ffffff;
    --auth-input-border: #a7c4b5;
    --auth-input-text: #134e4a;
    --auth-check-label: #3d6b5f;
    --auth-captcha-panel-bg: rgba(204, 251, 241, 0.45);
    --auth-captcha-panel-border: rgba(15, 118, 110, 0.28);
    --auth-captcha-text-bg: repeating-linear-gradient(45deg, #d1fae5, #d1fae5 10px, #a7f3d0 10px, #a7f3d0 20px);
    --auth-captcha-text-color: #064e3b;
    --auth-captcha-text-border: #6ee7b7;
    --auth-btn-gradient: linear-gradient(90deg, #0f766e, #14b8a6);
    --auth-btn-gradient-hover: linear-gradient(90deg, #115e59, #0f766e);
    --auth-danger: #b91c1c;

    --metric-total: #0f766e;
    --metric-active: #15803d;
    --metric-inactive: #5b7268;
    --metric-pending: #d97706;
    --metric-overdue: #dc2626;
    --metric-info: #0e7490;
    --color-visit: #0f766e;
    --color-print: #7c3aed;

    --bs-primary-rgb: 15, 118, 110;
}

[data-theme="emerald-workspace"] .bz-header-bottom {
    background: var(--color-menu-bg);
}

[data-theme="emerald-workspace"] #topNavigationMenu .dx-menu-item {
    border-radius: var(--nav-item-radius) !important;
    padding: 10px 18px !important;
}

[data-theme="emerald-workspace"] .content-card,
[data-theme="emerald-workspace"] .bz-card,
[data-theme="emerald-workspace"] .form-container,
[data-theme="emerald-workspace"] .card {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

[data-theme="emerald-workspace"] .bz-page-header,
[data-theme="emerald-workspace"] .items-page .items-page-header {
    background: var(--gradient-brand);
}

[data-theme="emerald-workspace"] .dash-shell::before {
    background:
        radial-gradient(circle at 14% 20%, var(--decor-blob-1), transparent 32%),
        radial-gradient(circle at 84% 8%, var(--decor-blob-2), transparent 30%),
        var(--gradient-page);
}

[data-theme="emerald-workspace"] .dash-hero {
    background: var(--gradient-hero);
    border-radius: var(--radius-xl);
}
