/*!
 * opensources.work shared desk theme
 * Scoped so it only affects the built-in dark mode.
 * Generated via scripts/sync_osw_theme_css.py
 */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

body[data-theme="dark"] {
    --osw-bg: #050505;
    --osw-bg-alt: #0a0a0a;
    --osw-bg-card: rgba(20, 20, 20, 0.90);
    --osw-glass: rgba(10, 10, 10, 0.80);
    --osw-glass-border: rgba(191, 255, 0, 0.30);
    --osw-border: rgba(255, 255, 255, 0.12);
    --osw-border-strong: rgba(191, 255, 0, 0.50);
    --osw-text: #e5e5e5;
    --osw-text-primary: #ffffff;
    --osw-text-muted: #a3a3a3;
    --osw-text-soft: #737373;
    --osw-primary: #bfff00;
    --osw-primary-soft: #d4ff4d;
    --osw-primary-dark: #8fb300;
    --osw-success: #00ff9d;
    --osw-warning: #ffcc00;
    --osw-danger: #ff3333;

    --primary: var(--osw-primary);
    --primary-color: var(--osw-primary);
    --primary-color-light: var(--osw-primary-soft);
    --primary-color-dark: var(--osw-primary-dark);
    --bg-color: var(--osw-bg);
    --fg-color: var(--osw-bg-card);
    --card-bg: var(--osw-bg-card);
    --heading-color: var(--osw-text-primary);
    --text-color: var(--osw-text);
    --gray-600: var(--osw-text-muted);
    --border-color: var(--osw-border);
    --scrollbar-thumb: rgba(148, 163, 184, 0.5);
    --scrollbar-track: rgba(2, 6, 23, 0.6);

    font-family: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--osw-bg);
    background-image: radial-gradient(circle at top, #1a1a1a 0%, #050505 55%, #000000 100%);
    color: var(--osw-text);
    min-height: 100vh;
}

body[data-theme="dark"] ::selection {
    background: rgba(59, 130, 246, 0.35);
    color: var(--osw-text);
}

body[data-theme="dark"] ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

body[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 999px;
}

body[data-theme="dark"] ::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

body[data-theme="dark"] .navbar,
body[data-theme="dark"] .desk-navbar,
body[data-theme="dark"] #navbar-breadcrumbs {
    background: rgba(4, 11, 22, 0.92);
    border-bottom: 1px solid var(--osw-border);
    backdrop-filter: blur(14px);
}

body[data-theme="dark"] .navbar .navbar-brand {
    font-family: "Space Grotesk", "Inter", sans-serif;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 15px;
    color: var(--osw-text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

body[data-theme="dark"] .navbar .navbar-brand:hover {
    color: var(--osw-primary);
}

body[data-theme="dark"] .navbar .navbar-nav .nav-link,
body[data-theme="dark"] .navbar .dropdown-menu a {
    color: var(--osw-text-soft) !important;
}

body[data-theme="dark"] .navbar .navbar-nav .nav-link:hover,
body[data-theme="dark"] .navbar .dropdown-menu a:hover {
    color: var(--osw-primary) !important;
}

body[data-theme="dark"] .layout-main-section,
body[data-theme="dark"] .page-container,
body[data-theme="dark"] .form-dashboard {
    background: var(--osw-glass);
    border: 1px solid var(--osw-glass-border);
    border-radius: 18px;
    box-shadow: 0 25px 55px rgba(2, 7, 23, 0.45);
}

body[data-theme="dark"] .layout-side-section,
body[data-theme="dark"] .standard-sidebar,
body[data-theme="dark"] .desk-sidebar,
body[data-theme="dark"] .workspace-sidebar {
    background: var(--osw-bg-card);
    border: 1px solid var(--osw-border);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(2, 7, 23, 0.35);
}

body[data-theme="dark"] .standard-sidebar .standard-sidebar-item,
body[data-theme="dark"] .desk-sidebar .sidebar-item {
    color: var(--osw-text-muted);
}

body[data-theme="dark"] .standard-sidebar .standard-sidebar-item:hover,
body[data-theme="dark"] .desk-sidebar .sidebar-item:hover,
body[data-theme="dark"] .desk-sidebar .sidebar-item.selected {
    background: rgba(59, 130, 246, 0.12);
    color: var(--osw-text);
}

body[data-theme="dark"] .page-title,
body[data-theme="dark"] .section-heading,
body[data-theme="dark"] .grid-heading-row,
body[data-theme="dark"] .dashboard-section h6 {
    color: var(--osw-text-primary);
}

body[data-theme="dark"] .indicator-pill.blue,
body[data-theme="dark"] .indicator-pill.green,
body[data-theme="dark"] .indicator-pill.orange {
    background: rgba(59, 130, 246, 0.18);
    color: var(--osw-text);
    border: 1px solid rgba(59, 130, 246, 0.35);
}

body[data-theme="dark"] .list-row-container,
body[data-theme="dark"] .control-area,
body[data-theme="dark"] .grid-body,
body[data-theme="dark"] .frappe-card {
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid var(--osw-border);
    border-radius: 14px;
}

body[data-theme="dark"] .form-control,
body[data-theme="dark"] .frappe-control input,
body[data-theme="dark"] .frappe-control select,
body[data-theme="dark"] .frappe-control textarea,
body[data-theme="dark"] .awesomplete > input {
    background: rgba(2, 6, 23, 0.9);
    border: 1px solid var(--osw-border);
    color: var(--osw-text);
    border-radius: 12px;
}

body[data-theme="dark"] .form-control:focus,
body[data-theme="dark"] .frappe-control input:focus,
body[data-theme="dark"] .frappe-control select:focus,
body[data-theme="dark"] .frappe-control textarea:focus {
    border-color: var(--osw-primary);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.45);
    color: var(--osw-text);
}

body[data-theme="dark"] .btn-primary,
body[data-theme="dark"] .btn-primary:focus {
    background: linear-gradient(135deg, var(--osw-primary), var(--osw-primary-dark));
    border-color: transparent;
    color: #020617;
    font-weight: 600;
}

body[data-theme="dark"] .btn-primary:hover {
    background: linear-gradient(135deg, var(--osw-primary-soft), var(--osw-primary));
    color: #020617;
}

body[data-theme="dark"] .btn-secondary,
body[data-theme="dark"] .btn-default {
    background: rgba(59, 130, 246, 0.12);
    border-color: transparent;
    color: var(--osw-text);
}

body[data-theme="dark"] .modal-content,
body[data-theme="dark"] .message-modal {
    background: var(--osw-bg-card);
    border: 1px solid var(--osw-border);
    box-shadow: 0 35px 60px rgba(2, 7, 23, 0.55);
}

body[data-theme="dark"] .toast-message {
    background: rgba(2, 6, 23, 0.92);
    border: 1px solid var(--osw-border);
    color: var(--osw-text);
}

body[data-theme="dark"] .badge-primary,
body[data-theme="dark"] .tag-pill {
    background: rgba(59, 130, 246, 0.2);
    color: var(--osw-text);
    border: 1px solid rgba(59, 130, 246, 0.35);
}

body[data-theme="dark"] .timeline-item,
body[data-theme="dark"] .activity-item {
    border-color: var(--osw-border);
}

body[data-theme="dark"] .desk-page .section-card,
body[data-theme="dark"] .workspace .quick-list-item {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--osw-border);
    border-radius: 16px;
}

body[data-theme="dark"] .desk-page .section-card:hover,
body[data-theme="dark"] .workspace .quick-list-item:hover {
    border-color: var(--osw-primary-soft);
    transform: translateY(-2px);
}

/*
 * Portal / Website surfaces
 * Keep scoped to specific routes so this file can be safely included everywhere.
 */
body[data-path^="price-estimation/"] {
    color-scheme: dark;
    --osw-bg: #050505;
    --osw-bg-alt: #0a0a0a;
    --osw-bg-card: rgba(20, 20, 20, 0.90);
    --osw-glass: rgba(10, 10, 10, 0.80);
    --osw-glass-border: rgba(191, 255, 0, 0.30);
    --osw-border: rgba(255, 255, 255, 0.12);
    --osw-border-strong: rgba(191, 255, 0, 0.50);
    --osw-text: #e5e5e5;
    --osw-text-primary: #ffffff;
    --osw-text-muted: #a3a3a3;
    --osw-text-soft: #737373;
    --osw-primary: #bfff00;
    --osw-primary-soft: #d4ff4d;
    --osw-primary-dark: #8fb300;
    --osw-success: #00ff9d;
    --osw-shadow: rgba(2, 5, 11, 0.6);

    font-family: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(900px 520px at 18% 0%, rgba(59, 130, 246, 0.28), transparent 60%),
        radial-gradient(720px 480px at 92% 22%, rgba(34, 197, 94, 0.10), transparent 62%),
        radial-gradient(circle at top, #071026 0%, #020617 55%, #01030b 100%);
    color: var(--osw-text);
    min-height: 100vh;
}

body[data-path^="price-estimation/"] ::selection {
    background: rgba(59, 130, 246, 0.35);
    color: var(--osw-text);
}

body[data-path^="price-estimation/"] .navbar {
    background: rgba(4, 11, 22, 0.92);
    border-bottom: 1px solid var(--osw-border);
    padding-top: 18px;
    padding-bottom: 18px;
    box-shadow: 0 25px 45px var(--osw-shadow);
    backdrop-filter: blur(14px);
}

body[data-path^="price-estimation/"] .navbar .container {
    max-width: 1200px;
}

body[data-path^="price-estimation/"] .navbar .nav-link {
    color: rgba(248, 250, 252, 0.88);
    font-weight: 500;
    transition: color 0.18s ease;
}

body[data-path^="price-estimation/"] .navbar .nav-link:hover {
    color: rgba(248, 250, 252, 0.98);
}

body[data-path^="price-estimation/"] .page-breadcrumbs,
body[data-path^="price-estimation/"] .page-header-wrapper {
    display: none;
}

body[data-path^="price-estimation/"] .page-content-wrapper,
body[data-path^="price-estimation/"] .page_content {
    background: transparent;
    box-shadow: none;
}

body[data-path^="price-estimation/"] .page-content-wrapper main.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 30px 120px;
}

body[data-path^="price-estimation/"] .web-form-container {
    margin-top: 28px;
}

body[data-path^="price-estimation/"] .web-form-container > div[style*="height: 3rem"] {
    display: none;
}

body[data-path^="price-estimation/"] .web-form-header {
    padding: 0;
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

body[data-path^="price-estimation/"] .web-form-header::before {
    content: none;
}

body[data-path^="price-estimation/"] .web-form-title h1 {
    margin: 0;
    font-size: clamp(34px, 4vw, 46px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: rgba(248, 250, 252, 0.98);
    text-shadow: 0 22px 70px rgba(2, 5, 11, 0.78);
}

body[data-path^="price-estimation/"] .web-form-introduction {
    margin-top: 12px;
    max-width: 72ch;
}

body[data-path^="price-estimation/"] .web-form-intro {
    margin: 0;
    color: rgba(248, 250, 252, 0.82) !important;
    line-height: 1.7;
    font-size: 15px;
}

body[data-path^="price-estimation/"] form.web-form,
body[data-path^="price-estimation/"] .web-form-page {
    margin-top: 22px;
    padding: 32px;
    border-radius: 26px;
    border: 1px solid rgba(124, 212, 255, 0.18);
    background: rgba(1, 7, 23, 0.68) !important;
    backdrop-filter: blur(18px);
    box-shadow: 0 28px 90px rgba(2, 5, 11, 0.62);
    color: var(--osw-text) !important;
}

body[data-path^="price-estimation/"] .web-form-body,
body[data-path^="price-estimation/"] .web-form-wrapper {
    max-width: none;
    margin: 0;
    padding: 0;
}

body[data-path^="price-estimation/"] .web-form-footer .web-form-actions {
    border: none;
    padding-top: 22px;
}

body[data-path^="price-estimation/"] label {
    color: rgba(248, 250, 252, 0.86) !important;
    font-weight: 500;
    letter-spacing: 0.01em;
}

body[data-path^="price-estimation/"] .web-form .form-group {
    margin-bottom: 18px;
}

body[data-path^="price-estimation/"] .web-form .form-column > form {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px 18px;
    align-items: start;
}

body[data-path^="price-estimation/"] .web-form .frappe-control {
    grid-column: span 12;
    min-width: 0;
}

@media (min-width: 860px) {
    body[data-path^="price-estimation/"] .web-form .frappe-control {
        grid-column: span 6;
    }
}

body[data-path^="price-estimation/"] .web-form .frappe-control[data-fieldtype="Text"],
body[data-path^="price-estimation/"] .web-form .frappe-control[data-fieldtype="Small Text"],
body[data-path^="price-estimation/"] .web-form .frappe-control[data-fieldtype="Long Text"],
body[data-path^="price-estimation/"] .web-form .frappe-control[data-fieldtype="Text Editor"],
body[data-path^="price-estimation/"] .web-form .frappe-control[data-fieldtype="Table"],
body[data-path^="price-estimation/"] .web-form .frappe-control[data-fieldtype="HTML"],
body[data-path^="price-estimation/"] .web-form .frappe-control[data-fieldtype="Section Break"],
body[data-path^="price-estimation/"] .web-form .frappe-control[data-fieldtype="Page Break"] {
    grid-column: 1 / -1;
}

body[data-path^="price-estimation/"] .web-form .control-value,
body[data-path^="price-estimation/"] .web-form .control-input-wrapper {
    color: rgba(248, 250, 252, 0.92);
}

body[data-path^="price-estimation/"] .form-control,
body[data-path^="price-estimation/"] textarea,
body[data-path^="price-estimation/"] select {
    background: rgba(59, 130, 246, 0.10) !important;
    border: 1px solid rgba(124, 212, 255, 0.18) !important;
    border-radius: 14px;
    color: var(--osw-text) !important;
    padding: 0.95rem 1.05rem;
    min-height: 48px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

body[data-path^="price-estimation/"] textarea {
    min-height: 140px;
}

body[data-path^="price-estimation/"] .form-control:placeholder-shown,
body[data-path^="price-estimation/"] textarea:placeholder-shown {
    background: rgba(224, 242, 254, 0.14) !important;
}

body[data-path^="price-estimation/"] .form-control::placeholder,
body[data-path^="price-estimation/"] textarea::placeholder {
    color: rgba(226, 232, 240, 0.52);
}

body[data-path^="price-estimation/"] .form-control:focus,
body[data-path^="price-estimation/"] textarea:focus,
body[data-path^="price-estimation/"] select:focus {
    border-color: rgba(124, 212, 255, 0.52) !important;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.38), 0 18px 55px rgba(2, 5, 11, 0.6);
    background: rgba(2, 6, 23, 0.78) !important;
    color: var(--osw-text) !important;
}

body[data-path^="price-estimation/"] .form-text,
body[data-path^="price-estimation/"] .help-box {
    color: rgba(248, 250, 252, 0.74);
}

body[data-path^="price-estimation/"] input[type="checkbox"] {
    accent-color: var(--osw-primary);
}

body[data-path^="price-estimation/"] input[type="radio"] {
    accent-color: var(--osw-success);
}

body[data-path^="price-estimation/"] .web-form .checkbox,
body[data-path^="price-estimation/"] .web-form .radio,
body[data-path^="price-estimation/"] .web-form .form-check,
body[data-path^="price-estimation/"] .web-form .custom-control {
    background: rgba(2, 6, 23, 0.52);
    border: 1px solid rgba(124, 212, 255, 0.14);
    border-radius: 16px;
    padding: 12px 14px;
    margin: 10px 0;
    box-shadow: 0 18px 55px rgba(2, 5, 11, 0.38);
}

body[data-path^="price-estimation/"] .web-form .checkbox label,
body[data-path^="price-estimation/"] .web-form .radio label,
body[data-path^="price-estimation/"] .web-form .form-check label {
    color: rgba(248, 250, 252, 0.9);
    margin: 0;
}

body[data-path^="price-estimation/"] .web-form .checkbox:hover,
body[data-path^="price-estimation/"] .web-form .radio:hover,
body[data-path^="price-estimation/"] .web-form .form-check:hover,
body[data-path^="price-estimation/"] .web-form .custom-control:hover {
    border-color: rgba(124, 212, 255, 0.24);
    background: rgba(2, 6, 23, 0.6);
}

body[data-path^="price-estimation/"] .ql-toolbar.ql-snow {
    background: rgba(2, 6, 23, 0.60);
    border: 1px solid rgba(124, 212, 255, 0.18);
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}

body[data-path^="price-estimation/"] .ql-container.ql-snow {
    background: rgba(2, 6, 23, 0.60);
    border: 1px solid rgba(124, 212, 255, 0.18);
    border-top: none;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    color: var(--osw-text);
}

body[data-path^="price-estimation/"] .ql-snow .ql-stroke {
    stroke: rgba(248, 250, 252, 0.85);
}

body[data-path^="price-estimation/"] .ql-snow .ql-fill {
    fill: rgba(248, 250, 252, 0.85);
}

body[data-path^="price-estimation/"] .ql-snow.ql-toolbar button:hover,
body[data-path^="price-estimation/"] .ql-snow.ql-toolbar button:focus {
    background: rgba(59, 130, 246, 0.16);
}

body[data-path^="price-estimation/"] .ql-editor {
    color: rgba(248, 250, 252, 0.92);
}

body[data-path^="price-estimation/"] .btn.btn-sm {
    font-size: 14px;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
}

body[data-path^="price-estimation/"] .btn.btn-default {
    background: rgba(2, 6, 23, 0.52);
    border: 1px solid rgba(124, 212, 255, 0.16);
    color: rgba(241, 246, 255, 0.92);
}

body[data-path^="price-estimation/"] .btn.btn-default:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(124, 212, 255, 0.26);
}

body[data-path^="price-estimation/"] .btn.btn-primary {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.95) 0%, var(--osw-primary) 45%, var(--osw-primary-dark) 75%, rgba(124, 212, 255, 0.95) 130%);
    border: none;
    color: #020617;
    font-weight: 650;
    box-shadow: 0 16px 44px rgba(37, 99, 235, 0.32), 0 0 0 1px rgba(34, 197, 94, 0.12);
}

body[data-path^="price-estimation/"] .btn.btn-primary:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 1) 0%, var(--osw-primary-soft) 35%, var(--osw-primary) 70%, rgba(124, 212, 255, 0.95) 130%);
    box-shadow: 0 18px 60px rgba(37, 99, 235, 0.42), 0 0 0 1px rgba(34, 197, 94, 0.18);
    color: #020617;
}

@media (max-width: 768px) {
    body[data-path^="price-estimation/"] .page-content-wrapper main.container {
        padding-left: 18px;
        padding-right: 18px;
    }

    body[data-path^="price-estimation/"] .web-form-header {
        padding: 0;
    }

    body[data-path^="price-estimation/"] form.web-form,
    body[data-path^="price-estimation/"] .web-form-page {
        padding: 20px;
        border-radius: 22px;
    }
}
