﻿:root {
    --color-1-primary: purple;
    --color-1-secondary: lightblue;
    --color-1-light: white;
    --color-1-red: #b91515;
    --bs-purple: purple;
}




/* Buttons */
.e-btn.e-outline.e-primary {
    color: var(--color-1-primary) !important;
    border: 2px solid darkgrey !important;
}
    .e-btn.e-outline.e-primary:hover {
        background-color: var(--color-1-primary) !important;
        color: white !important;
        border: 2px solid black !important;
    }
    .e-btn.e-outline.e-primary:active {
        background-color: var(--color-1-primary) !important;
        box-shadow: none !important;
        color: white !important;
        border: 2px solid black !important;
    }
    .e-btn.e-outline.e-primary:focus {
        box-shadow: none !important;
    }
    
    
    
/* CHECKBOX */
.e-checkbox-wrapper .e-label {
    font-size: 16px !important;
}

.e-checkbox-wrapper .e-frame {
    line-height: 16px !important;
    width: 20px !important;
    height: 20px !important;
    font-size: 12px !important;
    box-shadow: unset !important;
    border: 2px solid darkgrey;
} 

.e-checkbox-wrapper .e-frame.e-check {
    background-color: var(--color-1-primary) !important;
    border-color: var(--color-1-primary) !important;   
}

.e-checkbox-wrapper:hover .e-frame {
    border: 2px solid black !important;
}

/* INPUT */
.e-dialog .e-dlg-header-content .e-btn.e-dlg-closeicon-btn {
    border: none !important;
}

.e-btn:active {
    box-shadow: unset;
    background: white;
    border: 1px solid var(--color-1-primary);
    color: var(--color-1-primary);
}
.e-btn:active:not(.e-round) {
    border-radius: 4px;
}
.e-btn:focus:not(:hover) {
    box-shadow: unset;
    background: unset;
}
.e-btn:focus:hover {
    box-shadow: unset;
}
.e-btn {
    border: 1px solid #d1d5db !important;
}

.e-float-input label.e-float-text.e-label-top {
    color: black !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.e-input-group.e-input-focus:not(.e-success):not(.e-warning):not(.e-error), .e-input-group.e-control-wrapper.e-input-focus:not(.e-success):not(.e-warning):not(.e-error) {
    border-color: var(--color-1-primary) !important;
    border-radius: 4px !important;
    box-shadow: 0 0 0 1px var(--color-1-primary) !important;
}

.e-split-btn-wrapper .e-split-btn:focus {
    box-shadow: unset !important;
    background: white !important;
    border: 1px #d1d5db solid !important;
    border-radius: 4px !important;
}
.e-split-btn-wrapper .e-split-btn:active {
    box-shadow: unset !important;
    background: white !important;
    border: 1px solid #d1d5db !important;
    border-radius: 4px !important;
}

/* TASKS */
/* card */
.e-card .e-card-content {
    margin-top: 10px;
}

.e-card-header:has(> .x-central-card-header-wrapper) {
    font-size: 22px;
    display: inline-block !important;
    text-align: center;
}

.e-card-header:has(> .x-task-card-header-wrapper) {
    font-size: 22px;
    display: inline-block !important;
    text-align: left;
}
.x-task-card-header-text-editable {
    width: 100%;
    height: 30px;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,.05);
    border: 1px solid #d1d5db;
    border-radius: 4px;
}
.x-task-card-header-text:hover {
}
.x-task-card-header-text-editable:hover {
    background-color: lightgray;
}
.x-task-card-header-input-wrapper {

}
.x-task-card-header-input {
    font-size: 22px !important;
}
.x-task-card-text-editable {
    width: 100%;
    min-height: 30px;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,.05);
    border: 1px solid #d1d5db;
    border-radius: 4px;
}
.x-task-card-text-editable:hover {
    background-color: lightgray;
}

.x-textbox-confirm-button {
    left: calc(100% - 85px);
    position: relative;
    top: 2px;
    z-index: 2;
}

.x-textbox-cancel-button {
    left: calc(100% - 85px);
    position: relative;
    top: 2px;
    z-index: 2;
}


/* chips */
.xTaskCategoryTag-Color {
    font-size: 14px !important;
    border: 2px solid black !important;
    height: 30px !important;
    line-height: 18px !important;
    border-radius: 12px !important;
}

.x-Chip {
    float: left;
}

.x-hidden-opacity {
    opacity: 0;
}



.x-checkbox-left-chip {
    float: left;
    margin-top: 11px;
    margin-right: -8px;
}


.x-task-priority-tick-critical {
    color: red;
}
.x-task-priority-tick-urgent {
    color: deeppink;
}
.x-task-priority-tick-high {
    color: orange;
}
.x-task-priority-tick-medium {
    color: tan;
}
.x-task-priority-tick-low {
    color: green;
}



/* SLIDER */
#taskPrioritySlider {
    top: calc(50% - 5px);
    left: 20px;
}

#taskPrioritySlider .e-scale {
    z-index: 0 !important;
}
    #taskPrioritySlider .e-scale .x-custom-tick {
        background-image: none !important;
    }
        #taskPrioritySlider .e-scale .x-custom-tick::before {
            position: absolute;
            content: "\e967";
            z-index: 900;

            mask-image: url("icons/general/vertical_line.svg");
            -webkit-mask-image: url("icons/general/vertical_line.svg");
            width: 24px !important;
            height: 24px !important;
            min-width: 16px;
            min-height: 16px;
            background-size: contain;
            mask-repeat: no-repeat;
            -webkit-mask-repeat: no-repeat;
            background-position: center center;
            background-color: currentColor;
        }
        #taskPrioritySlider .e-scale .x-custom-tick::before {
            top: calc(50% - 4px);
            left: calc(50% - 12px);
        }

    #taskPrioritySlider .e-scale .x-custom-tick-first::before {
        top: calc(50% - 4px);
        left: calc(0% - 12px);
    }

    #taskPrioritySlider .e-scale .x-custom-tick-last::before {
        top: calc(50% - 4px);
        left: calc(100% - 12px);
    }



.gesture-handler-container {
    /* touch-action: none; */ /* Prevent default touch handling (e.g., scrolling) */
}



/* Syncfusion Changes */

.e-content-animation {
    transition: margin .5s ease,transform .5s, width 0.5s ease !important;
}

/* other 
.e-checkbox-wrapper .e-frame, .e-css.e-checkbox-wrapper .e-frame {
    line-height: 12px !important;
    width: 16px !important;
    height: 16px !important;
    font-size: 12px !important;
}
    */

.e-card-header-title {
    font-weight: bold !important;
}

.e-card {
    height: 100%;
    justify-content: start;

    background: white;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

    .e-card .e-card-content
    {
        height: 100%;
    }

    .e-card:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 16px rgba(0, 0, 0, 0.15);
        background: white;
    }

    .e-card .e-card-header {
        padding: 12px 12px 2px 12px;
    }

.e-toolbar {
    height: 32px !important;
    min-height: 32px !important;
    background: white;
}
    .e-toolbar .e-toolbar-items {
        background: white !important;
    }
.e-control.e-btn.e-lib.e-tbar-btn.e-tbtn-txt:focus {
    box-shadow: unset !important;
}


/* TOOLBAR MAIN */
.xMainToolbar {
    width: auto !important;
    height: 50px !important;
    border-radius: 20px !important;
    height: 40px !important;
    max-width: fit-content;
}
.xMainToolbarItem_Text {
    display: inline-flex !important;
    cursor: unset !important;
    color: black;
}

    .xMainToolbarItem_Text .e-btn {
        color: currentColor !important;
        box-shadow: unset !important;
        background: unset !important;
        border: none !important;
    }

        .xMainToolbarItem_Text .e-btn .e-tbar-btn-text {
            display: inline-flex !important;
            cursor: unset !important;
            color: currentColor !important;
            font-size: 16px !important;
        }
    .xMainToolbarItem_Text .e-btn:hover {
        color: var(--color-1-primary) !important;
        background: unset !important;
    }
    .xMainToolbarItem_Text .e-btn:focus {
        background: unset !important;
        box-shadow: unset !important;
    }
        .xMainToolbarItem_Text .e-btn:focus-visible {
            background: unset !important;
            box-shadow: unset !important;
        }
    .xMainToolbarItem_Text .e-btn:active {
        background: unset !important;
        box-shadow: unset !important;
    }

    .xMainToolbarItem_Separator {
        cursor: unset !important;
        border: solid black !important;
        border-top-width: medium !important;
        border-right-width: medium !important;
        border-bottom-width: medium !important;
        border-left-width: medium !important;
        border-width: 0 1.8px 0 0 !important;
        height: 24px !important;
    }
.xMainToolbarItem_Template {
    padding: 4px;
    width: auto;
    margin: 0px 3px 0px 3px;
}

/* DIALOGS */
.x-dialog-header-1 .e-dlg-header-content {
    border-bottom: 2px solid black !important;
    padding: 0px 20px 0px 20px !important;
    background: var(--color-1-secondary) !important;
    line-height: 1.5 !important;
    border-radius: 6px 6px 0px 0px !important;
}

.x-txt-dialog-header {
    font-weight: 600;
    fonz-size: 18px;
}

/* GENERAL CLASSES */
.x-border-dark-mid {
    border: black solid 3px;
}

.xLabelHeader {
    font-weight: 520;
    font-size: large;
}

.x-inline-element {
    display: inline-block !important;
    margin-left: 15px !important;
}

.x-width-auto {
    width: auto !important;
}

.fm-padding-card-row {
    margin-top: 15px;
}

.x-mb-10 {
    margin-bottom: 10px;
}
.x-mb-20 {
    margin-bottom: 20px;
}
.x-ml-10 {
    margin-left: 10px;
}
.x-ml-15 {
    margin-left: 15px;
}
.x-ml-20 {
    margin-left: 20px;
}
.x-mt-2 {
    margin-top: 2px;
}
.x-mt-15 {
    margin-top: 15px;
}
.x-mt-20 {
    margin-top: 20px;
}
.x-mt-35 {
    margin-top: 35px;
}
.x-ml-5minus {
    margin-left: -5px;
}
.x-float-left {
    float: left !important;
}
.x-float-right {
    float: right !important;
}
.x-border-2-black {
    border: 2px solid black !important;
}

/* DATAGRID TOOLBAR */
.e-toolbar .e-toolbar-item .e-tbar-btn .e-tbar-btn-text {
    display: none;
}
.e-toolbar .e-toolbar-item:not(.e-separator):not(.e-spacer) {
    padding: 0px;
}

/* OLD */
.ppf-hidden {
    display: none;
}

.pff-width-100vh {
    width: 100vh;
}

.ppf-width-100p {
    width: 100%;
}

.ppf-width-150vh {
    width: 150vh;
}

.ppf-height-60vh {
    height: 60vh !important;
}

.x-mt-10 {
    margin-top: 10px;
}

.ppf-content-wrapper {
    padding: 5px;
}


.ppf-fake-splitter-horizontal {
    resize: horizontal;
    overflow: auto;
    display: inline-flex;
}

.ppf-text-left {
    text-align: left;
}
.ppf-text-center {
    text-align: center;
}
.ppf-text-right {
    text-align: right;
}

.ppf-page-wrapper {
    height: 100vh;
    overflow-x: clip;

    background-image: url("icons/backgrounds/bg_main.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.ppf-image-circled-medium {
    width: 80px;
    height: 80px;
    line-height: 80px;
    text-align: center;
    background-color: #fff;
    border-radius: 100%;
    box-shadow: 0 0.9px 4px -1px rgba(0,0,0,0.08),0 2.6px 8px -1px rgba(0,0,0,0.06),0 5.7px 12px -1px rgba(0,0,0,0.05),0 15px 15px -1px rgba(0,0,0,0.04);
}

.ppf-box-shadow-medium {
    box-shadow: 0 0.9px 4px -1px rgba(0,0,0,0.08),0 2.6px 8px -1px rgba(0,0,0,0.06),0 5.7px 12px -1px rgba(0,0,0,0.05),0 15px 15px -1px rgba(0,0,0,0.04);
}

.ppf-box-shadow-low {
    box-shadow: 0px 1px 7px 0px rgba(0, 0, 0, 0.14);
}

.ppf-center-block {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.ppf-inline-block {
    display: inline-block;
}

.x-cursor-pointer { 
    cursor: pointer;
}

.x-default-card {
    box-shadow: 0 .9px 4px -1px rgba(0,0,0,.08),0 2.6px 8px -1px rgba(0,0,0,.06),0 5.7px 12px -1px rgba(0,0,0,.05),0 15px 15px -1px rgba(0,0,0,.04);
    border-radius: 6px;
    background-color: #fff;
}

.ppf-text-bottom-end {
    position: absolute;
    bottom: 0;
}

.maincontent {
    height: calc(100vh - 70px);
}


/* Login.razor */
.ppf-login-error-wrapper {
    background-color: #f8e9e9;
    border-color: #bd271e;
    padding: 8px;
    margin-top: 5%;
    margin-left: auto;
    margin-right: auto;
    width: 25%;
}

.ppf-login-error-text {
    font-weight: 600;
    color: #bd271e;
}

.ppf-login-form {
    text-align: center;
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    margin: 0 auto;
    width: 25%;
    padding: 10px;
}

.ppf-login-caption {
    font-weight: 600 !important;
    color: black !important;
}

.ppf-login-input {
    height: 40px;
    background-color: #fbfcfd !important;
    background-repeat: no-repeat !important;
    background-size: 0 100% !important;
    box-shadow: 0 0 transparent,inset 0 0 0 1px rgba(17,43,134,.1);
    transition: box-shadow .15s ease-in,background-image .15s ease-in,background-size .15s ease-in,background-color .15s ease-in;
    transition-property: box-shadow, background-image, background-size, background-color;
    padding-left: 5px;
    border-bottom-color: black !important;
    color: black !important;
}
    .ppf-login-input:focus {
        border-color: #777;
        color: #000;
        background: #fff;
        outline: 0
    }

.e-input-focus {
    border-color: #777;
    color: #000;
    background: #fff;
    outline: 0
}

.ppf-login-button {
    border-radius: 6px !important;
    height: 40px;
    min-width: 112px;
}

.ppf-login-button-wrapper {
    margin-top: 20px;
}

.ppf-login-button:hover {
    animation: ppfShakeLoginButton 2s infinite;
}

@keyframes ppfShakeLoginButton {
    50% {
        transform: translateY(-3px);
    }

    80% {
        transform: translateY(-3px);
    }
}

/* MAIN NAVIGATION MENU */
.e-menu-wrapper ul .e-menu-item, .e-menu-container ul .e-menu-item {
    padding-left: 4px;
}

.sidebar-nav-menu {
    height: 100dvh;
    position: sticky;
    z-index: 5000;
    transition: width 0.5s ease-in-out;
    background-clip: border-box;
    scrollbar-color: rgba(105,112,125,.5) transparent;
    scrollbar-width: thin;
    overflow-y: auto;
    overflow-x: hidden;
}


.sidebar-nav-menu-full {
    width: 100px;
}
.sidebar-nav-menu-hidden {
    width: 0px;
}
.sidebar-nav-menu-only-icons {
    width: 30px;
}

/* MAIN TOOLBAR */
.toolbar-sticky {
    width: 100%;
    height: 40px;
    position: sticky;
    top: 0;
    z-index: 4900;
    background: white;
}


.ppf-toolbar-wrapper > .e-toolbar {
    height: 100% !important;

    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0,0,0,.125);
    border-radius: .25rem;
    box-shadow: 0px 1px 7px 0px rgba(0, 0, 0, 0.14);
}

    .ppf-toolbar-wrapper > .e-toolbar .e-toolbar-items.e-tbar-pos .e-toolbar-left, .ppf-toolbar-wrapper > .e-toolbar .e-toolbar-items.e-tbar-pos .e-toolbar-center, .ppf-toolbar-wrapper > .e-toolbar .e-toolbar-items.e-tbar-pos .e-toolbar-right {
        display: inline !important;
    }

/* NOTIFICATION PANEL */
.sidebar-nav-menu-2 {
    height: 100%;
    transition: width 0.5s ease-in-out;
    /* TODO: move to card class? */
    background-clip: border-box;
    border: 1px solid rgba(34,34,34,.125);
    border-radius: .25rem;
    /* TODO move to scroll class? */
    scrollbar-color: rgba(105,112,125,.5) transparent;
    scrollbar-width: thin;
    overflow-y: auto;
    overflow-x: hidden;
}

.notification-panel {
    height: calc(100vh - 70px);
    position: sticky;
    top: 63px;
    z-index: 500;
    overflow: hidden;
    overflow-y: scroll;
    overflow-x: hidden;
    transition: width 0.5s ease-in-out, padding 0.5s ease, opacity 0.5s ease-in-out;
    margin-left: auto;
    background-clip: border-box;
    border: 2px solid rgba(34,34,34,.125);
    border-radius: .25rem;
    padding: 5px;
}

.notification-panel-full {
    width: 50%;
    opacity: 1;
}

.notification-panel-hidden {
    width: 0px;
    padding: 0px;
    opacity: 0;
    overflow: hidden;
}

.ppf-notification-checkbox {
    margin-bottom: 40%;
}

.notification-grid-row-isNew {
    background-color: #f5fbec;
}

.notification-grid-row-isNotNew {
    opacity: 80%;
}

/* NOTIFICATION LIST */
.notifications-list-wrapper {
    height: calc(100% - 60px);
}

.notifications-grid {
    width: calc(100%);
    height: calc(100% - 20px);
}
.notification-text-content {
    white-space: initial;
}

/* PROJECT DASHBOARD */
.ppf-project-main-list-logo {
    width: 36px;
    margin-bottom: 8px !important;
}

.ppf-project-shortlist-item-wrapper {
    padding: 5px;
}

.projects-grid-wrapper {
    height: calc(100vh - 140px);
}

    .projects-grid-wrapper > .e-grid .e-rowcell:first-child, .projects-grid-wrapper > .e-grid .e-summarycell:first-child {
        padding-left: 5px !important;
    }

/* FOLDER TREE VIEW */
.folder-splitter-wrapper {
    height: calc(100vh - 135px) !important;
}

.splitter-main-content-wrapper {
    height: calc(100% - 50px);
}

.folder-splitter-wrapper .e-treeview .e-list-text {
    width: calc(100% - 30px);
}

.treeCount {
    float: right;
    margin-right: 5px;
    margin-top: 5px;
    font-size: 1em;
    border-style: solid;
    border-width: 2px;
    border-color: gray;
}

/* Syncfusion overrides */
.e-sidebar {
    background: rgb(255, 255, 255);
    backdrop-filter: blur(3px);
}

.e-sidebar.e-right {
    border-left: none;
}
.e-sidebar-absolute {
    position: fixed;
}

.e-menu-wrapper, .e-menu-container {
    background: inherit;
}

.e-lib.e-menu.e-control.e-menu-parent.e-vertical {
    width: 100%;
    height: 100%;
}

.e-menu-wrapper .e-menu .e-menu-item .e-menu-icon, .e-menu-container .e-menu .e-menu-item .e-menu-icon {
    color: currentColor !important;
}

.e-file-delete-btn {
    display: none;
}

.e-form-label {
    cursor: pointer;
    font-weight: 600 !important;
    color: black !important;
    font-size: 1rem !important;
    text-align: left !important;
}

.navMenu-wrapper {
    width: 100%;
}

.navMenuItem-bottom {
    position: absolute !important;
    bottom: 40px;
    width: 100%;
}


/* FinanceManager Dark Refresh */
:root {
    --color-1-primary: #38bdf8;
    --color-1-secondary: #0f172a;
    --color-1-light: #e2e8f0;
    --color-1-red: #f87171;
    --fm-bg: #020617;
    --fm-bg-soft: rgba(15, 23, 42, 0.78);
    --fm-surface: rgba(15, 23, 42, 0.88);
    --fm-surface-2: rgba(30, 41, 59, 0.88);
    --fm-line: rgba(148, 163, 184, 0.24);
    --fm-text: #f1f5f9;
    --fm-muted: rgba(226, 232, 240, 0.78);
    --fm-shadow: 0 24px 70px rgba(2, 6, 23, 0.45);
}

.content {
    padding-top: 0.75rem;
}

.ppf-page-wrapper {
    min-height: 100dvh;
    background-image:
        radial-gradient(circle at top, rgba(56, 189, 248, 0.12), transparent 28%),
        linear-gradient(160deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96)),
        url("icons/backgrounds/bg_main.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.e-card,
.x-default-card,
.ppf-toolbar-wrapper > .e-toolbar,
.toolbar-sticky,
.e-dialog,
.e-dropdown-popup,
.e-popup,
.e-grid,
.e-tab .e-content,
.e-content.e-lib.e-touch {
    background: var(--fm-surface) !important;
    color: var(--fm-text) !important;
    border-color: var(--fm-line) !important;
    box-shadow: var(--fm-shadow) !important;
}

.e-card {
    border-radius: 1.35rem !important;
    border: 1px solid var(--fm-line) !important;
    backdrop-filter: blur(18px);
}

.e-card:hover {
    transform: translateY(-2px);
    background: rgba(15, 23, 42, 0.94) !important;
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.55) !important;
}

.e-card .e-card-header {
    padding: 1rem 1rem 0.45rem 1rem;
}

.e-card-header-title {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: 1.08rem !important;
    letter-spacing: 0.02em;
    color: #f8fafc !important;
}

.e-card .e-card-content,
.e-card .e-card-footer {
    color: var(--fm-text) !important;
}

.e-btn,
.e-btn.e-outline.e-primary {
    border-radius: 0.95rem !important;
    border: 1px solid rgba(56, 189, 248, 0.25) !important;
    background: rgba(14, 165, 233, 0.08) !important;
    color: #e0f2fe !important;
    box-shadow: none !important;
}

.e-btn.e-outline.e-primary:hover,
.e-btn:hover {
    background: #38bdf8 !important;
    color: #020617 !important;
    border-color: #38bdf8 !important;
}

.e-btn:focus,
.e-btn:active,
.e-btn:focus-visible {
    background: rgba(14, 165, 233, 0.18) !important;
    color: #e0f2fe !important;
    border-color: #7dd3fc !important;
    box-shadow: 0 0 0 0.2rem rgba(56, 189, 248, 0.18) !important;
}

.e-input-group,
.e-control-wrapper,
.e-input-group input,
.e-input,
.e-float-input,
.e-ddl.e-input-group,
.e-datepicker,
.e-numerictextbox,
.e-multi-select-wrapper {
    background: rgba(15, 23, 42, 0.9) !important;
    color: var(--fm-text) !important;
    border-color: var(--fm-line) !important;
}

.e-float-input label.e-float-text.e-label-top,
.e-form-label,
.e-checkbox-wrapper .e-label {
    color: var(--fm-muted) !important;
}

.e-input-group.e-input-focus:not(.e-success):not(.e-warning):not(.e-error),
.e-input-group.e-control-wrapper.e-input-focus:not(.e-success):not(.e-warning):not(.e-error) {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.9) !important;
}

.e-checkbox-wrapper .e-frame {
    border-color: rgba(148, 163, 184, 0.45) !important;
    background: rgba(15, 23, 42, 0.95) !important;
}

.e-checkbox-wrapper .e-frame.e-check {
    background-color: #38bdf8 !important;
    border-color: #38bdf8 !important;
}

.e-grid .e-gridheader,
.e-grid .e-headercontent,
.e-grid .e-content,
.e-grid .e-table,
.e-gridpager,
.e-grid .e-toolbar,
.e-toolbar .e-toolbar-items,
.e-tab .e-toolbar,
.e-tab .e-tab-header {
    background: transparent !important;
    color: var(--fm-text) !important;
    border-color: var(--fm-line) !important;
}

.e-grid .e-headercell,
.e-grid .e-rowcell,
.e-grid .e-summarycell,
.e-grid .e-gridheader th {
    border-color: rgba(148, 163, 184, 0.12) !important;
    color: var(--fm-text) !important;
}

.e-grid .e-row:hover .e-rowcell {
    background: rgba(56, 189, 248, 0.12) !important;
}

.e-tab .e-tab-header .e-toolbar-item .e-tab-wrap {
    border-radius: 999px !important;
    border: 1px solid transparent !important;
    margin-right: 0.5rem;
    padding: 0.1rem 0.3rem;
}

.e-tab .e-tab-header .e-toolbar-item.e-active .e-tab-wrap {
    background: rgba(56, 189, 248, 0.14) !important;
    border-color: rgba(56, 189, 248, 0.3) !important;
}

.e-tab .e-tab-text,
.e-tab .e-toolbar-item.e-active .e-tab-text {
    color: var(--fm-text) !important;
}

.e-toolbar .e-toolbar-item .e-tbar-btn .e-tbar-btn-text,
.e-toolbar .e-toolbar-item .e-icons,
.e-menu-wrapper .e-menu .e-menu-item,
.e-menu-container .e-menu .e-menu-item {
    color: var(--fm-text) !important;
}

.e-dialog .e-dlg-header-content,
.x-dialog-header-1 .e-dlg-header-content {
    background: rgba(30, 41, 59, 0.92) !important;
    color: #f8fafc !important;
    border-bottom: 1px solid var(--fm-line) !important;
}

.e-dlg-content,
.e-dlg-header-content,
.e-dropdown-popup ul li,
.e-list-item,
.e-list-group-item {
    color: var(--fm-text) !important;
}

.e-list-item.e-active,
.e-dropdown-popup ul .e-item.e-active,
.e-menu-wrapper ul .e-menu-item.e-selected {
    background: rgba(56, 189, 248, 0.12) !important;
}

.fm-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.fm-page-actions {
    display: flex;
    justify-content: flex-end;
}

.fm-view-pref {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.85rem 1rem;
    align-items: center;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 1.15rem;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(18px);
}

.fm-view-pref--minimal {
    justify-content: flex-end;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
}

.fm-view-pref__title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #f8fafc;
}

.fm-view-pref__hint {
    margin-top: 0.15rem;
    color: rgba(226, 232, 240, 0.64);
    font-size: 0.84rem;
}

.fm-view-pref__actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.fm-view-toggle-btn {
    min-width: 7.5rem;
}

.fm-view-toggle-btn.is-active {
    background: #38bdf8 !important;
    color: #020617 !important;
    border-color: #38bdf8 !important;
}

.fm-button-row .e-btn {
    min-width: 10rem;
}

.fm-page-shell {
    width: 100%;
}

@media (max-width: 991.98px) {
    .maincontent {
        height: auto;
        min-height: calc(100dvh - 5rem);
    }

    .fm-button-row .e-btn {
        width: 100%;
        min-width: 0;
    }

    .e-tab .e-tab-header {
        overflow-x: auto;
        scrollbar-width: none;
    }
}

/* FinanceManager Dark Refresh v2 */
body,
.content,
.control-section {
    color: var(--fm-text);
}

.e-tab.e-control {
    background: transparent !important;
}

.e-tab .e-toolbar,
.e-tab .e-toolbar .e-toolbar-items,
.e-tab .e-tab-header {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
}

.e-tab .e-tab-header .e-toolbar-items {
    align-items: center !important;
    gap: 0.35rem;
    padding: 0.35rem 0 0.15rem !important;
}

.e-tab .e-tab-header .e-toolbar-item:not(.e-separator):not(.e-spacer) {
    padding: 0.1rem 0 !important;
}

.e-tab .e-tab-header .e-toolbar-item .e-tbar-btn {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.e-tab .e-tab-header .e-toolbar-item .e-tab-wrap {
    display: inline-flex !important;
    align-items: center;
    min-height: 2.65rem;
    padding: 0.55rem 1rem !important;
    margin-right: 0 !important;
}

.e-tab .e-tab-header .e-tab-text {
    line-height: 1.1 !important;
    font-weight: 600;
}

.e-tab .e-content,
.e-content.e-lib.e-touch {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.e-tab .e-tab-header {
    margin-bottom: 0.75rem;
}

.e-tab .e-content .e-item {
    padding: 0.7rem 0 0 !important;
}

.e-card .e-card-content {
    margin-top: 0;
    padding: 0 1rem 1rem;
}

.e-card .e-card-footer {
    padding: 0 1rem 1rem;
}

.e-input-group,
.e-control-wrapper,
.e-input-group input,
.e-input,
.e-float-input,
.e-ddl.e-input-group,
.e-datepicker,
.e-numerictextbox,
.e-multi-select-wrapper,
.e-search-wrapper,
.e-search-wrapper input {
    border-radius: 0.95rem !important;
}

.e-input-group input,
.e-input,
.e-search-wrapper input,
.e-input::placeholder,
.e-search-wrapper input::placeholder {
    color: var(--fm-text) !important;
}

.e-search-wrapper,
.e-grid .e-toolbar .e-toolbar-items,
.e-grid .e-toolbar {
    background: transparent !important;
}

.e-grid {
    border-radius: 1rem !important;
    overflow: hidden;
}

.e-grid .e-gridheader {
    border-bottom: 1px solid rgba(148, 163, 184, 0.12) !important;
}

.e-grid .e-headercell,
.e-grid .e-gridheader th {
    background: rgba(15, 23, 42, 0.92) !important;
}

.e-grid .e-rowcell {
    background: rgba(5, 10, 22, 0.7) !important;
}

.e-grid .e-altrow .e-rowcell {
    background: rgba(15, 23, 42, 0.82) !important;
}

.e-grid .e-row:hover .e-rowcell,
.e-grid .e-row.e-hover .e-rowcell {
    background: rgba(30, 41, 59, 0.98) !important;
}

.e-grid .e-selectionbackground,
.e-grid .e-active,
.e-grid .e-row[aria-selected="true"] .e-rowcell,
.e-grid .e-gridcontent tr[aria-selected="true"] .e-rowcell {
    background: rgba(37, 99, 235, 0.35) !important;
    color: #f8fafc !important;
}

.e-grid .e-toolbar .e-toolbar-item:not(.e-search-wrapper) .e-tbar-btn {
    border-radius: 0.8rem !important;
    border: 1px solid rgba(56, 189, 248, 0.18) !important;
    background: rgba(14, 165, 233, 0.08) !important;
    color: var(--fm-text) !important;
}

.e-grid .e-toolbar .e-toolbar-item:not(.e-search-wrapper) .e-tbar-btn:hover {
    background: rgba(56, 189, 248, 0.18) !important;
    color: #f8fafc !important;
}

.e-gridpager,
.e-pager,
.e-grid .e-gridpager {
    background: rgba(2, 6, 23, 0.38) !important;
    color: var(--fm-text) !important;
}

.e-pager .e-currentitem,
.e-pager .e-currentitem:hover {
    background: rgba(56, 189, 248, 0.18) !important;
    color: #f8fafc !important;
    border-radius: 0.7rem !important;
}

.e-pager .e-default,
.e-pager .e-first,
.e-pager .e-prev,
.e-pager .e-next,
.e-pager .e-last {
    color: var(--fm-muted) !important;
}

.e-pager .e-numericitem,
.e-pager .e-parentmsgbar,
.e-grid .e-pagerexternalmsg {
    color: var(--fm-text) !important;
}

.e-grid .e-groupdroparea {
    background: rgba(15, 23, 42, 0.56) !important;
    color: var(--fm-muted) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12) !important;
}

.e-grid .e-filtermenudiv,
.e-grid .e-filtericon,
.e-grid .e-icons,
.e-grid .e-icon-filter,
.e-grid .e-headercelldiv,
.e-grid .e-sortfilterdiv {
    color: var(--fm-muted) !important;
}

.e-toolbar .e-toolbar-item .e-icons,
.e-grid .e-toolbar .e-toolbar-item .e-tbar-btn .e-icons,
.e-grid .e-toolbar .e-toolbar-item .e-tbar-btn .e-tbar-btn-text {
    color: inherit !important;
}

.fm-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: end;
}

.fm-card-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: end;
}

.fm-card-toolbar__search {
    min-width: min(18rem, 100%);
    flex: 1 1 16rem;
}

.fm-card-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.fm-card-toolbar__select {
    min-width: 12rem;
}

.fm-filter-bar__field {
    min-width: min(18rem, 100%);
    flex: 1 1 16rem;
}

.fm-filter-bar__actions {
    display: flex;
    align-items: center;
}

.fm-grid-mode-hint {
    margin-top: 0.9rem;
    color: var(--fm-muted);
    font-size: 0.92rem;
}

.fm-empty-state {
    padding: 1rem 1.1rem;
    border: 1px dashed rgba(148, 163, 184, 0.3);
    border-radius: 1rem;
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.68);
}

.fm-freefinance-switch {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fm-freefinance-switch--compact {
    gap: 0.55rem;
}

.fm-freefinance-switch__statusline,
.fm-freefinance-switch__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.fm-freefinance-switch__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 0.55rem;
}

.fm-freefinance-switch__field {
    display: grid;
    gap: 0.3rem;
}

.fm-freefinance-switch__caption {
    color: rgba(226, 232, 240, 0.72);
    font-size: 0.8rem;
    line-height: 1.35;
}

.fm-freefinance-switch__label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.64);
}

.fm-freefinance-switch__select {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(72, 117, 181, 0.35);
    background: rgba(12, 18, 34, 0.92);
    color: #f8fafc;
    padding: 0.72rem 0.85rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fm-freefinance-switch__select:focus {
    border-color: rgba(94, 160, 255, 0.78);
    box-shadow: 0 0 0 3px rgba(39, 115, 255, 0.18);
}

.fm-freefinance-switch__hint,
.fm-freefinance-switch__message {
    color: rgba(226, 232, 240, 0.82);
    font-size: 0.92rem;
    line-height: 1.5;
}

.fm-card-editor {
    margin-top: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1rem;
    padding: 1rem;
    background: rgba(2, 6, 23, 0.55);
    box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.06);
}

.fm-card-editor--inline {
    margin-top: 0.9rem;
    padding: 0.9rem;
}

.fm-card-editor__title {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.72);
}

.fm-card-editor__grid {
    margin-top: 0.85rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 0.85rem;
}

.fm-card-editor__actions,
.fm-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 0.95rem;
}

.fm-inline-action {
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.75);
    color: #e2e8f0;
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.fm-inline-action:hover {
    border-color: rgba(56, 189, 248, 0.42);
    background: rgba(30, 41, 59, 0.92);
}

.fm-inline-action--danger {
    border-color: rgba(248, 113, 113, 0.26);
    color: #fecaca;
}

.fm-inline-action--danger:hover {
    border-color: rgba(248, 113, 113, 0.42);
    background: rgba(69, 10, 10, 0.44);
}

.fm-card-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.fm-card-field--full {
    grid-column: 1 / -1;
}

.fm-card-field--checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
    min-height: 2.9rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.74);
}

.fm-card-field span {
    color: rgba(226, 232, 240, 0.72);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.fm-card-input {
    width: 100%;
    min-height: 2.9rem;
    padding: 0.8rem 0.95rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.9);
    color: #f8fafc;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.fm-card-input:focus {
    border-color: rgba(56, 189, 248, 0.66);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
    background: rgba(15, 23, 42, 0.96);
}

.fm-card-input--textarea {
    min-height: 7rem;
    resize: vertical;
}

.fm-card-input--select {
    appearance: none;
}

.fm-collection-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 0.9rem;
}

.fm-data-card {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 1.15rem;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.88));
    color: var(--fm-text);
    padding: 1rem;
    text-align: left;
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.24);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

button.fm-data-card {
    cursor: pointer;
}

.fm-data-card:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.28);
    box-shadow: 0 24px 50px rgba(2, 6, 23, 0.32);
}

.fm-data-card.is-selected {
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35), 0 24px 50px rgba(2, 6, 23, 0.36);
}

.fm-data-card--compact {
    padding: 0.95rem;
}

.fm-data-card__header {
    display: flex;
    justify-content: space-between;
    gap: 0.9rem;
    align-items: start;
}

.fm-data-card__eyebrow {
    color: var(--fm-muted);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fm-data-card__title {
    margin-top: 0.2rem;
    font-size: 1.02rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.3;
}

.fm-data-card__meta {
    margin-top: 0.55rem;
    color: rgba(226, 232, 240, 0.82);
    font-size: 0.93rem;
}

.fm-data-card__body {
    margin-top: 0.75rem;
    color: rgba(226, 232, 240, 0.88);
    line-height: 1.5;
    white-space: pre-wrap;
}

.fm-data-card__stats {
    margin-top: 0.9rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr));
    gap: 0.7rem;
}

.fm-data-card__stats span {
    display: block;
    color: var(--fm-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.fm-data-card__stats strong {
    display: block;
    margin-top: 0.2rem;
    font-size: 1rem;
    color: #f8fafc;
}

.fm-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.22);
    color: #d8f3ff;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.fm-status-pill--success {
    background: rgba(74, 222, 128, 0.12);
    border-color: rgba(74, 222, 128, 0.24);
    color: #bbf7d0;
}

.fm-status-pill--danger {
    background: rgba(248, 113, 113, 0.12);
    border-color: rgba(248, 113, 113, 0.24);
    color: #fecaca;
}

.fm-status-pill--subtle {
    background: rgba(30, 41, 59, 0.72);
    border-color: rgba(148, 163, 184, 0.18);
    color: #e2e8f0;
}

.fm-status-card {
    position: relative;
    overflow: hidden;
}

.fm-status-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.95;
}

.fm-status-card.row-all-done {
    color: #4ade80;
}

.fm-status-card.row-to-charge {
    color: #fbbf24;
}

.fm-status-card.row-todo {
    color: #fb7185;
}

@media (max-width: 767.98px) {
    .fm-collection-cards {
        grid-template-columns: 1fr;
    }

    .fm-view-pref__actions,
    .fm-view-toggle-btn {
        width: 100%;
    }

    .fm-page-actions {
        justify-content: stretch;
    }

    .fm-filter-bar__field,
    .fm-filter-bar__actions,
    .fm-card-toolbar__search,
    .fm-card-toolbar__actions {
        width: 100%;
    }

    .fm-filter-bar__actions .e-btn,
    .fm-card-toolbar__actions .e-btn,
    .fm-card-toolbar__select {
        width: 100%;
    }
}
