#mobile-check {
    display: none; /* asztali nézetben rejtve van */
}
.hidedesctop {
    display: none;
}
#dashboard {
	width: 100%;
	display: flex;
/*	border: 1px dotted #666;*/
/*	height: 800px;*/
	padding: 0;
	margin: 0;
}
#dashboardhead {
	width: 100%;
	height: 64px;
	background-color: #ccc;
	border-bottom: 1px solid #666;
}
#dashboardhead button {
	font-size: 24px;
	margin: 0;
	display: inline-flex;
    align-items: center;
    height: 64px;
    overflow: hidden;
    padding: 0 15px;
}
#dashboardhead button.active {
	background-color: #666;
	color: white;
}
#dashboardhead button i {
	margin-right: 5px;
	font-size: 36px;
}

#dashselectcont {
	width: 400px;
	height: 800px;
	float: left;
	background-color: #ccc;
}
#dashselect {
	width: 400px;
/*	border: 1px solid #666;*/
	height: 800px;
/*	margin-left: 10px;*/
/*	float: left;*/
/*	background-color: yellow;*/
	overflow-y: auto;

}
#dashselect h3 {
	overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

#dashcontent {
	flex-grow: 1;
/*	float: right;*/
	background-color: #eee;
/*	width: calc(100% - 400px);*/
	height: 800px;
	padding: 10px;
	overflow-x: hidden;
    overflow-y: scroll;
}

.oldcart {
    border-collapse: collapse;
}
.oldcart tr, .oldcart th {
  border: 1px solid #dddddd;
  text-align: left;
  padding: 8px;
}

.dse {
    overflow: hidden;
    border-bottom: 1px solid #888;
    position: relative;
    height: 128px;
}

.dse img {
    float: left;
    margin-right: 10px;
    width: 128px;
    height: 128px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.dse span {
	padding-right: 5px;
    float: right;
}

.dse p,
.dse h3 {
    margin-bottom: 10px;
    padding-top: 5px;
    padding-right: 5px;
}
.dse h4 {
	float: right;
	padding-right: 5px;
}

.dse:hover {
	background-color: #eee;
}
.dse.active {
	background-color: #eee;
}
.own {
	width: 0;
	height: 0;
	border-top: 20px solid #05f905;
	border-right: 20px solid transparent;
	position: absolute;
}

.item_comment_group {
	background-color: #ccc;
}
.level1 {
	font-size: 20px;
}


/* TODO Header */

.todo-header {
	width: 100%;
    height: 60px;
    background-color: #ececec;
    display: flex;
    justify-content: space-between; /* balra-jobbra igazít */
    align-items: center; /* függőleges középre igazítás, opcionális */
    padding: 10px; /* opcionális padding */
}
.todo-header-left {

}

.todo-header-right {

}

.todo-header-right button {
	background-color: transparent;
    height: 60px;
    width: 60px;
    border: none;
}

/* TODO Menu */

.todo-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}
.todo-menu-list hr {
    margin: 15px 0;
}
.todo-menu-item a {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Kiegyenesíti az elemeket */
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.todo-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Széthúzza a tartalmat */
    padding: 12px 10px;
    cursor: pointer;
    color: white;
    background-color: #333;
    transition: background 0.3s;
    width: 100%; /* Biztosítja, hogy az egész sor szélességben legyen */
    clip-path: polygon(0px 16px, 16px 0px, 100% 0px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0px 100%);
}

.todo-menu-item:hover {
    background-color: #444;
}

.todo-menu-item i {
    margin-right: 10px;
    flex-shrink: 0; /* Megakadályozza, hogy az ikon összenyomódjon */
}
.todo-menu-item.selected {
    background-color: #666;
}
.menu-product .todo-menu-badge {
    background-color: transparent;
}

.todo-menu-text {
    flex-grow: 1; /* Kitölti a középső területet, hogy a badge jobbra kerüljön */
}

/* Jobb oldali számbuborék (badge) */
.todo-menu-badge {
    background-color: red;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 15px;
    min-width: 25px;
    text-align: center;
    flex-shrink: 0; /* Megakadályozza az összenyomódást */
}
/* ha üres a badge ne jelenjen meg ott semmi, mert */
.todo-menu-badge:empty {
    display: none;
}

/* TODO content area items */

.todo-content-area-header {
    width: 100%;
    height: 60px;
/*    background-color: yellow;*/
    display: flex;
}
.todo-content-area-header button {
    height: 50px;
    width: 50px;
    padding: 5px;
    border: none;

}
.todo-content-area-header .todosearch {
    margin-left: auto;
    border: 1px solid #666;
}


.todo-content-area-header button.selected {
    background-color: #888;
}
.todo-content-area-header button:not(:disabled):hover {
    background-color: #666;
}
.todo-content-area-header button:hover {
/*    background-color: #666;*/
}
.todo-content-area-header input {
    margin-left: auto;
    height: 50px;
    font-size: 16px;
    padding: 10px;
}
.todo-content-area-header select {
    height: 50px;
    font-size: 16px;
    padding: 10px;
}


.todo-content-area-header i {
    font-size: 32px;
    vertical-align: middle;
}
.todo-content-area-header-button-container {
    border: 1px solid #666;
    height: 52px;
    font-size: 0;
}
.ml50 {
    margin-left: 50px;
}

.todo-old-cart-item {
  display: flex;
  flex-direction: row;
  gap: 10px; /* Távolság az oszlopok között */
  background-color: #888;
  width: 100%;
  height: 64px;
  margin-bottom: 10px;
  border: 1px solid #000;
  position: relative;
  z-index: 500;
}
.todo-old-cart-item:hover {
    background-color: #999;
    cursor: pointer;
}
.todo-old-cart-name {
    font-size: 18px;
    padding: 5px;
    width: 250px;
    font-weight: 600;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;

}

.todo-old-cart-item .todo-item-img {
    width: 64px;
}




.todo-item {
  display: flex;
  flex-direction: row;
  gap: 10px; /* Távolság az oszlopok között */
  background-color: #888;
  width: 100%;
  height: 100px;
  margin-bottom: 10px;
  border: 1px solid #000;
  position: relative;
  z-index: 500;
}
.todo-item:hover {
    background-color: #999;
    cursor: pointer;
}

.todo-item-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

/* olyan todo item row ami mobilon egymás alá is tud menni */
.todo-item-row-dir {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.todo-item-img {
	width: 98px;
	height: 98px;
	aspect-ratio: 1 / 1;
    object-fit: cover;
    height: -webkit-fill-available;
    object-position: top left;
}
.todo-date {
	font-size: 24px;
	font-weight: 700;
	padding-top: 10px;
}
.todo-date2 {
	font-size: 24px;
	font-weight: 700;
	padding-bottom: 10px;
}

.wdate {
	width: 100px;
	border-right: 1px dotted black;
}
.row-completed {
    margin-left: auto;
    justify-content: center;
    margin-right: 10px;
    border-left: 1px dotted #000;
    padding-left: 10px;
    user-select: none;
}
.row-price-request {
    justify-content: center;

}
.row-user-avatar {
    justify-content: center;
    flex-direction: row;
    user-select: none;
}
.row-user-avatar img {
    width: 64px;
    height: 64px;
    margin-right: 10px;
}


.row-completed i, .row-icon i {
    font-size: 60px;

}

.todo-item-name {
	font-size: 18px;
	padding: 5px 0;
	width: 250px;
    font-weight: 600;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;

}
.todo-item-header {
    border-right: 1px solid black;
    display: inline-flex;
    PADDING: 2px 10px;
    background: #fff;
    border-left: 1px solid black;
    border-top: 1px solid black;
    border-bottom: 1px solid white;
    position: relative;
/*    margin-bottom: -1px;*/
}
.img-hover-wrap {
  position: relative;
  display: inline-block;
}

.todo-item-img {
  display: block;
}

.img-hover-wrap {
  position: relative;
  display: inline-block;
}

.todo-item-img {
/*  display: block;*/
/*  width: 100%;*/
/*  height: auto;*/
}

/* sötét overlay, csak hover-re */
.hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* fekete, 40% átlátszósággal */
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 1;
  pointer-events: none;
}

/* ikon a kép közepén */
.hover-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  color: white;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 2;
  pointer-events: none;
}
.hover-icon i {
  font-size: 48px;
}

/* hover-re megjelenik minden */
.img-hover-wrap:hover .hover-overlay,
.img-hover-wrap:hover .hover-icon {
  opacity: 1;
}

.container2 {
/*  display: flex;*/
/*  flex-direction: row;*/
/*  gap: 20px;*/
}

.product2 {
/*  display: flex;*/
/*  flex-direction: row;*/
/*  align-items: center;*/
/*  border: 1px solid #ccc;*/
/*  padding: 10px;*/
/*  width: 200px;*/
/*  justify-content: space-between;*/
}

/*.product2 div {*/
/*  padding: 5px;*/
/*}*/
/*.product2 img {*/
/*	width: 80px;*/
/*	height: 80px;*/
/*}*/

/* Ha az osztály aktív, akkor két sorba kerül */
/*.stack2 .product2 {*/
/*  flex-direction: column;*/
/*  align-items: flex-start;*/
/*}*/

.new-div, .old-div {
/*    height: 200px;*/
    background-color: white;
    border: 1px solid black;
    margin-top: -11px;
    border-top: none;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    border-bottom: 1px solid #4fc978;
    border-left: 1px solid #4fc978;
    border-right: 1px solid #4fc978;
}
.openborder {
    border-top: 1px solid #4fc978;
    border-left: 1px solid #4fc978;
    border-right: 1px solid #4fc978;

}

/* Alapbeállítások */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Fő konténer */
.layout-wrapper {
    display: flex;
    width: 100%;
    align-items: flex-start; /* a sticky-nél kell */
/*    height: 100vh;*/
}

/* Bal oldali sáv (desktop nézetben fix szélességű) */
.todo-menu-panel {
    flex: 0 0 250px; /* Nem nő és nem csökken, mindig fix 250px marad */
/*    width: 250px;*/
    background-color: #333;
    color: white;
    padding: 10px;
    transition: transform 0.1s ease;

    position: sticky;
    align-self: flex-start;
    z-index: 1000;
    top: 0px;
}

/* Jobb oldali tartalom */
.todo-content-area {
    flex-grow: 1;
    padding: 10px;
    background-color: #ccc;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}
.todo-menu-name-holder {
    text-transform: lowercase;
}

/* Kezdeti állapot: áttetsző és kicsit feljebb van tolva */
.fade-start {
    opacity: 0;
    transform: translateY(-10px);
}

/* Aktív állapot (láthatóvá válik) */
.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.1s ease-out, transform 0.2s ease-out;
}

.updateusermessage {
    border: 3px solid green;
    padding: 10px;
    margin-bottom: 10px;
    display: none;
}
.form-message {
    border: 3px solid red;
    padding: 10px;
    margin-bottom: 10px;
    display: none;
}



/* Mobil nézetben a sidebar abszolút pozícióba kerül */
@media (max-width: 768px) {
    #mobile-check {
        display: block;
    }

    .layout-wrapper {
        flex-direction: column;
    }

    .todo-menu-panel {
        position: fixed;
        left: -250px; /* Alapértelmezetten kívül van */
        top: 120px;
        height: 100vh;
        width: 250px; /* Biztosítjuk, hogy fix szélességű */
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    }

    .todo-menu-panel.active {
        transform: translateX(250px); /* Behozza az oldalra */
    }
    .todo-content-area {
        padding: 0;
        width: 100%;
    }
    .todo-item-name {
        width: auto;
        -webkit-line-clamp: 2;
    }
    .row-completed i, .row-icon i {
        font-size: 32px;
    }
    .row-user-avatar {
        flex-direction: column;
    }
    .row-user-avatar img {
        width: 32px;
        height: 32px;
        margin-right: 5px;
    }
    .todo-item-row-dir {
        flex-direction: column;
        align-items: start;
        justify-content: space-between;
    }
    .todo-content-area-header input {
        width: 150px;
    }

    .hidemobil {
        display: none;
    }
    .hidedesctop {
        display: block;
    }
    #dashselect {
        width: 100%;
    }
}
