.category-main {
  /* background: #f0f0f0; */
  /* padding: 20px; */
  max-width: 1000px;
  margin: auto;
}

.cm-tabs {
  display: flex;
  /* border-bottom: 2px solid #aaa; */
  margin-bottom: 20px;
}

.cm-tab {
  margin-right: 30px;
  font-weight: bold;
  cursor: pointer;
  padding-bottom: 5px;
}

.cm-tab.active {
  border-bottom: 3px solid black;
  color: black;
}

.cm-filters {
  margin-bottom: 40px;
}

.cm-filters span {
  background: #ddd;
  padding: 5px 10px;
  margin-right: 5px;
  border-radius: 3px;
  cursor: pointer;
}

.cm-filters span.cm-active {
  background: #f4b000;
  color: #000;
  font-weight: bold;
}

.cm-products {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  /* justify-content: center; */
}

.cm-card {
  position: relative;
  background: white;
  padding: 15px;
  width: 270px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.cm-card.ordered{
	outline: 5px #f3b21c solid;
}

.cm-card .cm-ordered{
	background: #f3b21c;
	position: absolute;
	left: -5px;
	right: -5px;
	top: -5px;
	font-size: 14px;
	text-align: center;
	display: flex;
	height: 30px;
	align-items: center;
	justify-content: center;
	font-weight: bold;
}

.cm-card .cm-img-holder{
	height:180px;
	margin:10px 0;
	display:flex;
	align-items:center;
	justify-content:center;
}

.cm-card img {
  max-height: 100%;
  max-width: 100%;
  display: block;
  margin-bottom: 10px;
  object-fit:contain;
}

.cm-card-title {
  font-weight: bold;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  height: 50px;
  border-bottom: 1px solid;
}

.cm-price, .cm-prod-price {
  font-size: 16px;
  margin-bottom: 5px;
}

.cm-prod-price {
  color: #000000;
  height: 170px;
  overflow: auto;
  margin-bottom: 30px;
}

.pop .cm-prod-price{height:auto}

.cm-prod-price table{
	font-size:14px;
}

.cm-prod-price table thead{
	position:sticky;
	top:0;
}

.cm-prod-price table th, .cm-prod-price table td{
	height:30px;
	padding: 5px;
	width: calc(100% / 3);
}

.cm-prod-price table td.ordered{
	background:#f3b21c;
	font-weight: bold;
}

.cm-prod-price table td del{
	color: rgba(0,0,0,0.5);
	font-weight: normal;
}

.cm-button {
  display: block;
  background: #f4b000;
  color: black;
  padding: 10px;
  text-align: center;
  font-weight: bold;
  text-decoration: none;
  margin-top: 10px;
  cursor: pointer;
}

.cm-summary-table {
  width: 100%;
  /* background: white; */
  border-collapse: collapse;
  margin-top: 20px;
}

.cm-summary-table th, .cm-summary-table td {
  padding: 10px;
  border-bottom: 1px solid #ccc;
  text-align: left;
}

.cm-summary-table th:nth-child(n+3), .cm-summary-table td:nth-child(n+3) {
	text-align:center;
}



.cm-summary-footer {
  margin-top: 20px;
  text-align: right;
  background: white;
  padding: 15px;
  font-weight: bold;
}

.cm-quantity-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.cm-quantity-controls button {
  width: 25px;
  height: 25px;
  background: #eee;
  border: 1px solid #aaa;
  font-weight: bold;
}

.cm-quantity-controls input {
  width: 40px;
  text-align: center;
}



.cm2-category-main {
  /* background: #f0f0f0; */
  /* padding: 20px; */
  max-width: 1000px;
  margin: auto;
}

.cm2-tabs {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cm2-tab {
  padding: 10px;
  font-weight: bold;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.cm2-tab.cm2-active {
  border-color: #000;
}

.cm2-add-new {
  margin-left: auto;
  background: #f3a900;
  border: none;
  padding: 10px;
  font-weight: bold;
  cursor: pointer;
}

.cm2-wrapper{
	display:flex;
	justify-content:space-between;
	flex-wrap:wrap;
}

.cm2-filter {
  margin: 10px 0;
}

.cm2-filter-btn {
  background: #ccc;
  margin-right: 5px;
  padding: 5px 10px;
  cursor: pointer;
}

.cm2-filter-btn.cm2-active {
  background: #f3a900;
}

.cm2-button{
	padding:10px 20px;
	background:#f3b21c;
	font-weight:bold;
	cursor:pointer;
}

.cm2-tab-content {
  display: none;
}

.cm2-tab-content.cm2-active {
  display: block;
}

.cm2-event-card {
  background: white;
  display: flex;
  justify-content: space-between;
  padding: 15px;
  margin: 10px 0;
  border: 1px solid #ccc;
  cursor: pointer;
}

.cm2-event-info {
  max-width: 70%;
}

.cm2-title {
  font-weight: bold;
  font-size: 18px;
}

.cm2-date {
  margin: 5px 0;
}

.cm2-event-meta {
  text-align: right;
  display: flex;
  gap: 20px;
  align-items: center;
}

.cm2-status {
  display: inline-block;
  padding: 5px 10px;
  background: #ddd;
  font-weight: bold;
  width: 80px;
  text-align: center;
}

.cm2-status.cm2-approved {
  background: #f3a900;
}

.cm2-items,
.cm2-price,
.cm2-price-original {
  display: block;
  /* margin-top: 5px; */
  width: 70px;
}

.cm2-price-original {
  text-decoration: line-through;
  color: #999;
}

.cm2-summary-header {
  font-weight: bold;
  margin: 15px 0;
}

.cm2-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.cm2-table th,
.cm2-table td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
}

.cm2-total-box {
  float: right;
  margin-top: 10px;
  background: #fff;
  padding: 15px;
  text-align: right;
}

.cm2-strike {
  text-decoration: line-through;
  color: #888;
}


.category-head {
  background: #000;
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 5px;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.ch-title {
  font-weight: bold;
  font-size: 22px;
  margin-inline-start: 10px;
  max-width: 180px;
}

.ch-values {
  display: flex;
  align-items: center;
  gap: 25px;
}

.ch-value-box {
  text-align: center;
}

.ch-label {
  display: block;
  font-size: 12px;
  color: #ccc;
  margin-bottom: 6px;
}

.ch-value {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
}

.ch-participation-box {
  background: #f3a900;
  padding: 10px 15px;
  text-align: center;
  color: #000;
  height: 50px;
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ch-participation-box .ch-label {
  color: #000;
  font-weight: bold;
  font-size: 12px;
}

.ch-participation {
  font-weight: bold;
  font-size: 18px;
}

div#countdown {
    display: flex;
    gap: 0px;
}

div#countdown div span {
    font-size: 26px;
    font-weight: bold;
    text-align: center;
    display: block;
    width: 60px;
    position: relative;
}

div#countdown div div {
    font-size: 12px;
    display: block;
    text-align: center;
}

div#countdown div:nth-child(2) span::after, div#countdown div:nth-child(3) span::after {
    content: ":";
    position: absolute;
    right: -2px;
}



.pop{
	position:fixed;
	z-index:999;
	top:0;
	left:0;
	right:0;
	bottom:0;
	align-items:center;
	justify-content:center;
	background:rgba(0,0,0,0.8);
	display:none;
}

.pop.open{
	display:flex;
}


.pop-content {
  background-color: #f1f1f1;
  /* padding: 20px; */
  width:calc(100% - 20px);
  max-width:800px;
  max-height:800px;
  overflow:auto;
}

.pc-header {
  position: sticky;
  top: 0;
  z-index:2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f3b603;
  /* padding: 10px 20px; */
  color: #000;
  font-weight: bold;
  height: 60px;
}

.pc-title {
  margin: 0;
  font-size: 20px;
  padding: 0 20px;
}

.pc-close {
  background: black;
  color: white;
  font-size: 26px;
  border: none;
  width: 60px;
  height: 60px;
  cursor: pointer;
}

.pc-content-wrapper{
	padding:20px
}

.pc-flex{
	display:flex;
	gap:20px;
}

.pc-second-block{display: flex;flex-direction: column;gap: 20px;}

.pc-prod-description{max-height: 120px;overflow:auto}

.pc-add-lines{	
}

.pc-add-line{display: flex;justify-content: space-between;align-items: center;}

.pc-select select{
    height: 30px;
}

.pc-add-button{
    display: inline-flex;
    margin-top: 20px;
    height: 40px;
    background: #f3b603;
    padding: 0 20px;
    align-items: center;
}

.pc-row {
  display: flex;
  gap: 20px;
  margin: 20px 0;
}

.pc-col {
  flex: 1;
}

.pc-label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.pc-input {
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
}

.pc-input.small {
  width: 40px;
  text-align: center;
  padding: 5px;
}

.pc-textarea {
  width: 100%;
  height: 100px;
  padding: 10px;
  box-sizing: border-box;
  resize: vertical;
}

.pop:not(.full) .pc-full{display:none}

.pc-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.pc-table th,
.pc-table td {
  border-bottom: 1px solid #ccc;
  padding: 10px;
  vertical-align: middle;
  text-align: left;
  white-space: nowrap;
}

.pc-add-btn {
  background-color: #f3b603;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 20px;
  height: 44px;
}

.pc-summary {
  background-color: #ffffff;
  margin-top: 20px;
  padding: 15px 20px;
  width: fit-content;
  /* float: right; */
}

.pc-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.pc-summary-row.bold {
  font-weight: bold;
}

.pc-line-through {
  text-decoration: line-through;
  color: #999;
}


table.table-data-select{margin-top:20px}
table.table-data-select input[type="number"]{width: 30px;height: 20px;text-align: right;}
table.table-data-select input[type="number"]::-webkit-inner-spin-button,
table.table-data-select input[type="number"]::-webkit-outer-spin-button {-webkit-appearance: none;margin: 0;}
table.table-data-select div{/* white-space:nowrap; */}

table.table-data-select tr th{border-bottom: 0px solid transparent;padding-bottom: 20px;}
table.table-data-select tr.totals > *{/* background:#f3b603; */}
table.table-data-select tr.tbl-seperator > *{padding:4px;height:auto}
table.table-data-select tr.tr-category th{position:relative}

table.table-data-select tr.tr-category + tr.tr-category th:not(:first-child)::after{content:"+";position: absolute;top: -14px;left: 0;right: 0;width: 18px;height: 18px;margin: auto;background: #f3b603;border-radius: 50%;display: flex;align-items: center;justify-content: center;border: 1px solid;line-height: 0.01;padding: 0;box-sizing: border-box;padding-bottom: 2px;padding-right: 1px;}
table.table-data-select tr.tr-category th:not(:first-child)::before{content:"";border: 1px solid black;position:absolute;border-radius: 10px;left: 8px;right: 8px;top: 0px;bottom: 10px;background: #ffe599;}
table.table-data-select tr.totals th{position:relative}
table.table-data-select tr.totals th div{position:relative}
table.table-data-select tr.totals th:not(:first-child)::before{content:"";border: 1px solid black;position:absolute;border-radius: 10px;left: 8px;right: 8px;top: 0;bottom: 0;background: #f3b603;}

table.table-data-select tr.tr-category th:not(:first-child), table.table-data-select tr.tbl-seperator th:not(:first-child){background: linear-gradient(90deg, transparent 40%, #fff8e5 40%, #ffe599 50% ,#fff8e5 60%, transparent 60%);}

table.table-data-select tr.tr-category th.empty div:not(.activate-category){display:none}
table.table-data-select tr.tr-category th.empty::before{width:1px;margin:auto;border:0;background: black;top: -10px;}
table.table-data-select tr.tr-category th.empty::after{display: none !important;}

table.table-data-select tr.tbl-seperator + tr.tr-category th:not(:first-child)::before{/* border-top:1px solid black; *//* border-radius:10px 10px 0 0; */}
table.table-data-select tr.tr-category:last-child th:not(:first-child)::before{/* border-bottom:1px solid black; *//* border-radius:0 0 10px 10px; */}
table.table-data-select tr.tr-category th:last-child::before{background:#f3b603}
table.table-data-select tr.tr-category{margin:10px 0}
table.table-data-select tr.tr-category th div{position:relative}
table.table-data-select tr.tr-category th .activate-category{background: #f3b21c;padding: 5px;border-radius: 10px;opacity: 0.1;display: block;white-space: normal;cursor: pointer;position: absolute;margin: auto;transform: translateY(-50%);left: 10px;right: 10px;}

table.table-data-select tr.tr-category th .activate-category:hover{opacity:1}
table.table-data-select tr.tr-category th > div:first-child{font-size: 12px;}
table.table-data-select tr > *.disabled {opacity: 0.3; pointer-events: none;}
table.table-data-select tr.disabled > *:not(:first-child) {opacity: 0.3; pointer-events: none;}