﻿/* CRM2 module styles */

.flex-container {
    display: flex;
}

.dx-scheduler-appointment {
    border-radius: 15px;
}
.dx-scheduler-appointment-content {
    border-radius: 12px;
}

/* Side menu styles */
.side-menu {
    width: 300px;
    background-color: #f8f8f8;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    display: none;
}

.side-menu.visible {
    display: block;
}

.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.side-menu-title {
    font-size: 18px;
    font-weight: bold;
}

.side-menu-close {
    cursor: pointer;
    font-size: 20px;
}

.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    background-image: none !important;
    position: relative;
}

.color-option.selected {
    border-color: #333;
    background-image: none !important;
}

.color-option::after,
.color-option::before,
.color-option *::after,
.color-option *::before {
    display: none !important;
    content: none !important;
    background-image: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.color-option.selected::after,
.color-option.selected::before,
.color-option.selected *::after,
.color-option.selected *::before {
    display: none !important;
    content: none !important;
    background-image: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.modify-button {
    width: 100%;
    padding: 10px;
    background-color: #337ab7;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
}

.modify-button:hover {
    background-color: #286090;
}

.task-details {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 4px;
}

.detail-item {
    margin-bottom: 8px;
}

.detail-label {
    font-weight: bold;
    margin-right: 5px;
}

.folycell_cim {
    font-size: 18px;
    font-weight: bold;
}

.folycell_leiras {
    font-size: 14px;
}

.folycell_felelos {
    font-size: 14px;
    color: darkblue;
}

.folycell_hatarido {
    font-size: 14px;

}

.allomas-gomb {
    margin: 3px;
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f8f9fa;
    cursor: pointer;
    box-shadow: 0 4px 2px 0 rgba(0, 0, 0, 0.2), 0 3px 0px 0 rgba(0, 0, 0, 0.19);
}

.allomas-gomb:hover {
    background-color: #e9ecef;
}

.allomas-gomb.aktiv {
    background-color: springgreen;
    color: black;
}

.allomas-gomb.volt {
    background-color: lightblue;
    color: black;
}

.crm2-allomas-container {
    display:flex;
}

.crm2-allomas-form {
    width: 70%;
}

.crm2-allomas-idopontok {
    width: 30%;
}



.joldalcontainer {
    display: flex;
    flex-direction: row-reverse; /* ikonok maradjanak jobb szélen */
    align-items: stretch;
    background-color: transparent;
    position: absolute; /* overlay a tartalom fölött */
    right: 0px;
    top: 0;
    height: 100%;
    z-index: 1050; /* a tartalom fölé kerüljön */
    pointer-events: none; /* alapból ne blokkolja a tartalmat */
}

/* Az interaktív elemek kapjanak pointer eseményeket */
.joldalcontainer .joldalikonok,
.joldalcontainer .joldalsav {
    pointer-events: auto;
    overflow: hidden;
}

.joldalsav {
    background-color: #fff; /* overlay panel háttér */
    width: 320px;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
    display: none; /* alapból láthatatlan */
    
}

/* Bekapcsolt állapot: megjelenik az oldalsáv */
.joldalcontainer.open .joldalsav {
    display: block;
    overflow-y: auto;
}

.joldalikonok {
    width: 60px; /* fix 60px széles sáv, mindig látszik */
    background-color: rgb(248, 248, 248);
    /*border-left: 1px solid silver;*/
}

.joldalikon {
    width: 40px;
    height: 40px;
    margin: 10px; /* vizuális távolság az ikonok körül */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    user-select: none;
}

.joldalikon:hover {
    background-color: #fafafa;
}

.joldalikon i {
    font-size: 20px;
    color: #333;
}

.joldal_emlekeztetok {
    color: #ff9800;
}

.joldal_feladatok {
    color: #2196f3;
}

.joldal_naptar {
    color: #4caf50;
}

/* Napi emlékeztető widget stílusai */
.crm2-emlekezteto-napi-widget {
    padding: 10px;
}

.crm2-emlekezteto-napi-widget .napi-header {
    align-items: center;
    margin-bottom: 8px;
}

.crm2-emlekezteto-napi-widget .napi-header2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.crm2-emlekezteto-napi-widget .napi-cim {
    font-weight: 600;
}

.crm2-emlekezteto-napi-widget .napi-controls {
    display: flex;
    gap: 6px;
    align-items: center;
}

.crm2-emlekezteto-napi-widget .napi-controls .napi-datum {
    max-width: 150px;
}

.crm2-emlekezteto-napi-widget .napi-lista {
    list-style: none;
    margin: 0;
    padding: 0;
}

.crm2-emlekezteto-napi-widget .eml-sor {
    /*display: flex;*/
    /*gap: 6px;*/
    align-items: center;
    padding: 6px 8px;
    border-bottom: 1px solid #f0f0f0;
}

.crm2-emlekezteto-napi-widget .eml-statusz {
    font-weight: 600;
    margin-right: 6px;
}

.crm2-emlekezteto-napi-widget .eml-statusz.zold {
    color: #2e7d32;
}

.crm2-emlekezteto-napi-widget .eml-statusz.szurke {
    color: #757575;
}

.crm2-emlekezteto-napi-widget .eml-ido {
    width: 48px;
    color: #555;
}

.crm2-emlekezteto-napi-widget .eml-cim {
    flex: 1;
}


.crm2-right-bottom {
    border:1px solid silver;
    display:flex;
}

.crm2-right-bottom-left {
    width:50%;
    height:100%;
    margin-right:10px;
    border-right:2px solid silver;
}

.crm2-right-bottom-left-top {
    width: 100%;
    height:50px;
    border:1px solid silver;
    background-color: #f0f0f5;
    font-weight: bold;
    display:flex;
    column-gap:10px;
    align-items:center;
}

.crm2-right-bottom-right {
    border-left:2px solid silver;
    width:50%;
    height:100%;
    
}

/* 8 színosztály az időpontokhoz */
.crm2_naptar-1 {
    background-color: #e57373 !important;
    border-color: #c62828 !important;
    color: #ffffff !important;
}

.crm2_naptar-2 {
    background-color: #337ab7 !important;
    border-color: #1565c0 !important;
    color: #ffffff !important;
}

.crm2_naptar-3 {
    background-color: #81c784 !important;
    border-color: #2e7d32 !important;
    color: #ffffff !important;
}

.crm2_naptar-4 {
    background-color: #ffd54f !important;
    border-color: #ff8f00 !important;
    color: #000000 !important;
}

.crm2_naptar-5 {
    background-color: #ba68c8 !important;
    border-color: #6a1b9a !important;
    color: #ffffff !important;
}

.crm2_naptar-6 {
    background-color: #4db6ac !important;
    border-color: #00695c !important;
    color: #ffffff !important;
}

.crm2_naptar-7 {
    background-color: #a1887f !important;
    border-color: #5d4037 !important;
    color: #ffffff !important;
}

.crm2_naptar-8 {
    background-color: #90a4ae !important;
    border-color: #37474f !important;
    color: #ffffff !important;
}