
/* ==========================================================
   NEPTRON TECHNOLOGIES
   GLOBAL FRAPPE / ERPNEXT DESIGN SYSTEM
   All DocTypes | Light + Dark Mode
   ========================================================== */


/* 1. GLOBAL DESIGN TOKENS */

:root {
    --re-primary: #2563EB;
    --re-primary-hover: #1D4ED8;
    --re-primary-soft: rgba(37, 99, 235, 0.10);

    --re-success: #16A34A;
    --re-danger: #DC2626;
    --re-danger-hover: #B91C1C;
    --re-warning: #D97706;
    --re-purple: #7C3AED;
    --re-teal: #0D9488;

    --re-text: var(--text-color, inherit);
    --re-muted: var(--text-muted, #64748B);
    --re-border: var(--border-color, #E2E8F0);
}


/* 2. GLOBAL PAGE LAYOUT */

.layout-main-section {
    color: var(--re-text);
}

.page-head {
    border-bottom: 1px solid var(--re-border);
}

.page-title,
.page-head .title-text {
    font-weight: 650;
}


/* ==========================================================
   3. ALL DOCTYPE FORM SECTIONS
   Colored borders without forced card backgrounds
   ========================================================== */

/* Preserve native theme backgrounds */

.form-layout,
.form-layout .form-section,
.form-layout .section-body {
    background: transparent !important;
}

/* Universal section card */

.form-layout .form-section {
    border: 1px solid var(--re-border) !important;
    border-top: 3px solid var(--re-primary) !important;
    border-radius: 9px;
    margin-bottom: 14px;
    padding: 14px 18px;
    transition: border-color 0.2s ease;
}

/* Section heading - works across DocTypes */

.form-layout .form-section .section-head,
.form-layout .form-section .section-head .section-title,
.form-layout .form-section .section-head .title-text {
    color: var(--re-primary) !important;
    background: transparent !important;
    font-size: 14px;
    font-weight: 650;
    padding: 10px 12px;
    border-bottom: 1px solid var(--re-border);
}

/* Alternative section heading structures */

.form-layout .section-head {
    font-weight: 650;
}

/* Field labels */

.form-layout .control-label {
    color: var(--re-text);
    font-size: 12px;
    font-weight: 500;
}

/* Descriptions */

.form-layout .help-box,
.form-layout .description {
    color: var(--re-muted);
}

/* Inputs - native theme colors */

.form-layout .form-control,
.form-layout .like-disabled-input,
.form-layout .control-input-wrapper input,
.form-layout .control-input-wrapper select,
.form-layout .control-input-wrapper textarea {
    border-radius: 7px;
}

/* Input focus */

.form-layout .form-control:focus,
.form-layout .control-input-wrapper input:focus,
.form-layout .control-input-wrapper select:focus,
.form-layout .control-input-wrapper textarea:focus {
    border-color: var(--re-primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}


/* 4. FORM TABS - ALL DOCTYPES */

.form-tabs-list .nav-link,
.form-tabs-list button,
.form-tabs-list a,
.form-tabs-list [role="tab"],
[role="tablist"] [role="tab"] {
    color: var(--re-muted);
    font-weight: 500;
    transition: color 0.2s ease;
}

.form-tabs-list .nav-link.active,
.form-tabs-list button.active,
.form-tabs-list a.active,
.form-tabs-list [role="tab"][aria-selected="true"],
[role="tablist"] [role="tab"][aria-selected="true"] {
    color: var(--re-primary) !important;
    font-weight: 700;
    border-bottom: 2px solid var(--re-primary) !important;
    background: transparent !important;
}

.form-tabs-list .nav-link:hover,
.form-tabs-list button:hover,
.form-tabs-list a:hover,
.form-tabs-list [role="tab"]:hover {
    color: var(--re-primary);
}


/* 5. GLOBAL LIST VIEWS */

.list-page .list-row-container {
    border-bottom: 1px solid var(--re-border);
    transition: background-color 0.2s ease;
}

.list-page .list-row-container:hover {
    background-color: var(--re-primary-soft);
}

.list-page .list-row-container.selected {
    outline: 1px solid var(--re-primary);
}

.list-page .list-header-subject,
.list-page .list-row-head {
    color: var(--re-text);
    font-weight: 600;
}

.list-page .list-row-container .list-subject {
    color: var(--re-text);
    font-weight: 500;
}

.list-page .filter-selector,
.list-page .list-filter {
    border-radius: 7px;
}


/* 6. STATUS INDICATORS */

.indicator-pill {
    border-radius: 20px;
    padding: 3px 10px;
    font-weight: 600;
}

.indicator-pill.blue,
.indicator.blue {
    background: #DBEAFE;
    color: #1D4ED8;
}

.indicator-pill.green,
.indicator.green {
    background: #DCFCE7;
    color: #166534;
}

.indicator-pill.red,
.indicator.red {
    background: #FEE2E2;
    color: #991B1B;
}

.indicator-pill.orange,
.indicator.orange {
    background: #FEF3C7;
    color: #92400E;
}

.indicator-pill.purple,
.indicator.purple {
    background: #F3E8FF;
    color: #6B21A8;
}


/* 7. GLOBAL BUTTONS */

.btn-primary {
    background-color: var(--re-primary);
    border-color: var(--re-primary);
    color: #FFFFFF;
    border-radius: 7px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--re-primary-hover);
    border-color: var(--re-primary-hover);
    color: #FFFFFF;
}

.btn-default,
.btn-secondary {
    border-radius: 7px;
}


/* 8. RIGHT SIDEBAR */

.form-sidebar {
    background: transparent !important;
    border-left: 1px solid var(--re-border);
}

.form-sidebar .sidebar-section {
    border-bottom: 1px solid var(--re-border);
}


/* 9. CHILD TABLES */

.form-grid {
    border: 1px solid var(--re-border);
    border-radius: 8px;
    overflow: hidden;
}

.form-grid .grid-heading-row {
    font-weight: 600;
}

.form-grid .grid-row {
    border-bottom: 1px solid var(--re-border);
}


/* 10. COMMENTS AND ACTIVITY */

.form-layout .comment-box,
.form-layout .comment-input-wrapper {
    border-radius: 8px;
}

.form-layout .comment-box {
    border: 1px solid var(--re-border);
}


/* 11. CRM LEAD - CALL MOBILE */

[data-fieldname="custom_call_mobile"] button,
[data-fieldname="custom_call_mobile"] .btn {
    background-color: var(--re-danger) !important;
    color: #FFFFFF !important;
    border: 1px solid var(--re-danger) !important;
    border-radius: 7px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease;
}

[data-fieldname="custom_call_mobile"] button:hover,
[data-fieldname="custom_call_mobile"] .btn:hover {
    background-color: var(--re-danger-hover) !important;
    border-color: var(--re-danger-hover) !important;
    color: #FFFFFF !important;
}

/* CRM Portal */

button[aria-label="Call Mobile"] {
    background-color: var(--re-danger) !important;
    color: #FFFFFF !important;
    border: 1px solid var(--re-danger) !important;
    border-radius: 7px !important;
    font-weight: 600 !important;
}

button[aria-label="Call Mobile"]:hover {
    background-color: var(--re-danger-hover) !important;
    border-color: var(--re-danger-hover) !important;
}


/* 12. RESPONSIVE */

@media (max-width: 768px) {
    .form-layout .form-section {
        padding: 12px;
        margin-bottom: 12px;
    }

    .form-layout .form-section .section-head {
        font-size: 13px;
        padding: 9px;
    }

    .form-grid {
        overflow-x: auto;
    }
}



/* ==========================================================
   13. NEPTRON REAL ESTATE - LEFT NAVIGATION SIDEBAR
   Highlight only the currently active menu item
   ========================================================== */

:root {
    --re-sidebar-active-bg: rgba(37, 99, 235, 0.12);
    --re-sidebar-active-text: #2563EB;
    --re-sidebar-hover-bg: rgba(37, 99, 235, 0.06);
}

/* Active sidebar item */

.standard-sidebar-item.selected,
.standard-sidebar-item.active,
.sidebar-item-container .selected,
.sidebar-item-container .active {
    background-color: var(--re-sidebar-active-bg) !important;
    border-radius: 7px !important;
}

/* Active item text */

.standard-sidebar-item.selected a,
.standard-sidebar-item.active a,
.standard-sidebar-item.selected .item-anchor,
.standard-sidebar-item.active .item-anchor,
.sidebar-item-container .selected a,
.sidebar-item-container .active a {
    color: var(--re-sidebar-active-text) !important;
    font-weight: 600 !important;
}

/* Active item icon */

.standard-sidebar-item.selected svg,
.standard-sidebar-item.active svg,
.sidebar-item-container .selected svg,
.sidebar-item-container .active svg {
    color: var(--re-sidebar-active-text) !important;
}

/* Hover on inactive sidebar items */

.standard-sidebar-item:not(.selected):not(.active):hover,
.sidebar-item-container .item-anchor:hover {
    background-color: var(--re-sidebar-hover-bg);
    border-radius: 7px;
}

/* Smooth transition */

.standard-sidebar-item,
.sidebar-item-container {
    transition: background-color 0.2s ease;
}

/* Dark mode */

[data-theme="dark"] {
    --re-sidebar-active-bg: rgba(96, 165, 250, 0.16);
    --re-sidebar-active-text: #93C5FD;
    --re-sidebar-hover-bg: rgba(16, 45, 80, 0.08);
}

.theme-dark {
    --re-sidebar-active-bg: rgba(96, 165, 250, 0.16);
    --re-sidebar-active-text: #93C5FD;
    --re-sidebar-hover-bg: rgba(96, 165, 250, 0.08);
}
