/* Стили для самого диалога */
#listitemsorder {
  border: none;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  width: 1000px;
}

/* Стили для фона (backdrop) в модальном режиме */
#listitemsorder::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px); /* Опционально: размытие фона */
}
.listitem{
  width: 100%;
  margin: 0 auto;
  border-collapse: collapse;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  animation: fadeIn 0.6s ease-out;  
}
#listitemsorder h3 {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 10px;
  padding: 10px;
  color: #333;
  text-align: center;
}
#listitemsorder table{
	border: 1px solid #eee;
	table-layout: fixed;
	width: 100%;
	margin-bottom: 20px;
}
#listitemsorder table th {
	font-weight: bold;
	padding: 5px;
	background: #efefef;
	border: 1px solid #dddddd;
}
#listitemsorder table td{
	padding: 5px 10px;
	border: 1px solid #eee;
	text-align: left;
}
#listitemsorder table tbody tr:nth-child(odd){
	background: #fff;
}
#listitemsorder table tbody tr:nth-child(even){
	background: #F7F7F7;
}
#listitemsorder #closeBtn{
    float: right;
    margin: 20px 20px 0 0;
}
#listitemsorder .orders_zakazchik,
#listitemsorder .orders_adres{
    display: flex;
    border-bottom: #000 1px solid;
    margin-bottom: 15px;
}

#listitemsorder .rowlistitem{
    margin: 4px 0 0 10px;
}

/* Основные стили таблицы заказов */
/* Анимация появления */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#listorders table {
  width: 100%;
  margin: 0 auto;
  border-collapse: collapse;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  animation: fadeIn 0.6s ease-out;
}
/* Заголовок таблицы */
#listorder caption {
  font-size: 24px;
  font-weight: bold;
  padding: 20px;
  text-align: left;
  background-color: #2c3e50;
  color: white;
  border-radius: 8px 8px 0 0;
}
/* Стили ячеек */
#listorder th,
#listorder td {
  padding: 15px;
  text-align: left;
  border: 1px solid #ddd;
}
/* Заголовки столбцов */
#listorder thead th {
  background-color: #34495e;
  color: white;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
}
/* Ячейки с данными */
#listorder td {
  color: #333;
}
/* Чередующиеся строки */
#listorder tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}
#listorder tbody tr:nth-child(odd) {
  background-color: white;
}
/* Hover-эффект */
#listorder tbody tr:hover {
  background-color: #e3f2fd;
  transition: background-color 0.3s ease;
}
/* Футер таблицы */
#listorder tfoot td {
  background-color: #34495e;
  color: white;
  font-weight: bold;
  text-align: center;
  padding: 18px;
  font-size: 16px;
}
/*------табы-------*/
#tabs {
	margin: 10px 0;
    
}
.tabs-nav {
	overflow: hidden;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.tabs-nav li {
	flex: 1 1 15%;
	padding: 0;
	list-style: none;
}    
.tabs-nav a {
	display: block;
    padding: 8px 3px;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    border-left: 1px solid #ccc;
    background: #fbfbfb;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    color: #999;
}		
.tabs-nav li:first-child a {
	border-radius: 5px 0 0 0; 
}
.tabs-nav li:last-child a {
	display: block;
	border-right: 1px solid #ccc;
	border-radius: 0 5px 0 0; 
}
.tabs-nav a.active {
	border-bottom: 1px solid #fff;
	background: #fff;
	color: #000;
}    
.tabs-items {
	border: 1px solid #ccc;
	border-radius: 0 5px 5px 5px;
	background: #fff;
	margin: -1px 0 0 0;
}
.tabs-item {
	padding: 15px;
}







.tabscalc .ui-sortable-handle {
    touch-action: none;
}
.layout {
    margin: auto;
    font-family:verdana;display: block;
    background: #fff;
    box-shadow: 0 10px 15px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.grandTotals {
    background-color: #fff;
    margin: 5px 40px;
    font-size: 22px;
    font-weight: bold;
    color: #ff0202;
    min-height: 57px;
    display: flex;
    align-items: center;
    justify-content: end;
}
 

 
.tabsvid p {
    margin: 5px;
    padding: 0;
    font-family: Verdana;
    font-size: 20px;
}
 
.tabsuslug p {
    margin: 5px;
    padding: 10px;
    font-size: 16px;
    color: #000;
    background-color: #fff;
    min-height: 57px;
}
.tabsuslug .nameservicehead p{
    background-color: #b7b1b1;
    color: #3d034d;
}
.nameservicehead > div{
    background-color: #b7b1b1;
    margin: 5px;
    font-size: 16px;
    display: flex;
    align-items: center;
    font-weight: bold;
    padding: 6px;
    color: #000000;
}
.nameuslug > div{
    color: #000;
    background-color: #fff;
    margin: 3px;
    font-size: 16px;
    display: flex;
    align-items: center;
    padding: 3px;
    height: 49px;
}
input[type=number] {
    width: 100%;
    height: 33px !important;
    display: block;
    box-sizing: border-box;
    text-align: center;
    font-size: 16px;
    -moz-appearance: textfield;
    -webkit-appearance: textfield;
    appearance: textfield;
}
.accordion:hover {
    cursor: pointer;
}
 
div.chek, div.total, div.prices, div.ed{
    justify-content: center;
}
.nameservicehead, .nameuslug{
    display: grid;
    grid-template-columns: 4fr 80px 90px 100px 120px 100px;
    background-color: #17141873;
    height: 56px;
} 

.group{
    display:block;
    background: #fff;
    box-shadow: 0 10px 15px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    overflow:hidden;
    margin-bottom: 1.5rem;
    background-color: #3d034d;
}

h3{    
    color: #000;
    height: 15px;
    font-size: 14px;    
}
.tabsuslug{
    border: 1px solid #3d034d;
    margin: 0 10px;
    height: 100% !important;
}



h3:focus {
    outline:0;
    box-shadow: inset 0 0 1px rgba(0,0,0,0.3), inset 0 0 2px rgba(0,0,0,0.3);
}

input[type="number"]::-webkit-inner-spin-button, 
input[type="number"]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}
input[type="checkbox"] {
    width: 30px;
    height: 30px;
    accent-color: #6e008d;
}
.grandTotal{
    background-color: #fff;
    padding: 5px 40px;
    margin: 5px;
    font-size: 22px;
    font-weight: bold;
    color: #3d034d;
    min-height: 57px;
    display: flex;
    align-items: center;
    justify-content: end;
}







/* Стили для секции товаров */



.add-to-cart {
	display: inline-block;	
	box-sizing: border-box;
	margin: 8px 8px 8px 5px;
	outline: none;
	border: 1px solid #6c757d; 
	border-radius: 5px;
	height: 42px;
	line-height: 38px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	color: #6c757d;
	background-color: #fff;
	cursor: pointer;
	user-select: none;
	appearance: none;
	touch-action: manipulation;  
}
.add-to-cart:focus {
	box-shadow: 0 0 0 3px rgb(108 117 125 / 50%);
}
.add-to-cart:hover {
	color: #fff;
	background-color: #6c757d;
	border-color: #6c757d;
}
.add-to-cart:active {
	color: #fff;
	background-color: #6c757d;
	border-color: #6c757d;
}

/* Стили для секции корзины */
.cart {
  margin-top: 30px;
}

.cart table {
  width: 100%;
  border-collapse: collapse;
}

.cart th, .cart td {
  padding: 10px;
  border: 1px solid #ccc;
  text-align: center;
}

.cart .total {
  text-align: right;
  margin-top: 10px;
}

.cart .remove-item {
  background-color: #dc3545;
  color: #fff;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
}

.cart .remove-item:hover {
  background-color: #c82333;
}








.search-container {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

input[type="text"] {
  width: 60%;
  padding: 10px;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid #111;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

li {
  background-color: beige;
  padding: 10px;
  margin-bottom: 10px;
}
.line{
      text-align: center;
}

/*-----------левая панель-------------*/

.heder_list_clients, .body_list_clients{
    display: grid;
    grid-template-columns: 5fr 4fr 3fr;
    justify-content: center;
    margin: 10px 0;
}
.heder_list_clients{
  background-color: #43034d;
    padding: 10px;
}
.border{
    border-left: 1px solid;
    border-right: 1px solid;
}

.styled {
    border: 0;
    line-height: 2.5;
    padding: 0 20px;
    font-size: 1rem;
    text-align: center;
    color: #fff;
    text-shadow: 1px 1px 1px #3d034d;
    border-radius: 10px;
    background-color: rgb(102 27 126);
    background-image: linear-gradient(to top left, rgb(0 0 0 / 0.2), rgb(0 0 0 / 0.2) 30%, rgb(0 0 0 / 0));
    box-shadow: inset 2px 2px 3px rgb(255 255 255 / 0.6), inset -2px -2px 3px rgb(41 7 66 / 60%);
}

.styled:hover {
  background-color: red;
}

.styled:active {
  box-shadow:
    inset -2px -2px 3px rgb(255 255 255 / 0.6),
    inset 2px 2px 3px rgb(0 0 0 / 0.6);
}

/* Оформление панели */
#side-checkbox {
    display: none;
}
.side-panel {
    position: fixed;
    z-index: 999999;
    top: 0;
    left: -500px;
    background: #642f74;
    transition: all 0.5s;   
    width: 500px;
    height: 100vh;
    box-shadow: 10px 0 20px rgba(0,0,0,0.4);
    color: #FFF;
    padding: 40px 20px;
    overflow-y: auto;
    overflow-x: hidden;
}
.side-title {
    font-size: 20px;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #BFE2FF;
}
/* Оформление кнопки на странице */

.side-button-1 {
    display: inline-block;
}
.side-button-1 {
    margin: 10px;
    text-decoration: none;
    position: relative;
    font-size: 20px;
    line-height: 20px;
    padding: 12px 30px;
    color: #FFF;
    font-weight: bold;
    text-transform: uppercase; 
    font-family: 'Roboto', Тahoma, sans-serif;
    background: #5d0375;
    cursor: pointer; 
    border: 2px solid #BFE2FF;
}
.side-button-1:hover,
.side-button-1:active,
.side-button-1:focus {
    color: #FFF;
}
.side-button-1:after,
.side-button-1:before {
    position: absolute;
    height: 4px;
    left: 50%;
    bottom: -6px;
    content: "";
    transition: all 280ms ease-in-out;
    width: 0;
}
.side-button-1:after,
.side-button-1:before {
    background: #24292e;
}
.side-button-1:after,
.side-button-1:before {
    background: #484242;
}
.side-button-1:before {
    top: -6px;
}
.side-button-1:hover:after,
.side-button-1:hover:before {
    width: 100%;
    left: 0;
}
/* Переключатели кнопки 1 */
.side-button-1 .side-close {
    display: none;
}
#side-checkbox:checked + .side-panel + .side-button-1-wr .side-button-1 .side-open {
    display: none;
}
#side-checkbox:checked + .side-panel + .side-button-1-wr .side-button-1 .side-close {
    display: block;
}
#side-checkbox:checked + .side-panel {
    left: 0;
}
/* Оформление кнопки на панеле */
.side-button-2 {
    font-size: 30px;
    border-radius: 20px;
    position: absolute;
    z-index: 1;
    top: 8px;
    right: 8px;
    cursor: pointer;
    transform: rotate(45deg);
    color: #BFE2FF;    
    transition: all 280ms ease-in-out;    
}
.side-button-2:hover {
    transform: rotate(45deg) scale(1.1);    
    color: #FFF;
}
.side-button-1-wr {
    position: fixed;
    top: 0;
    left: 0;
}

.list_client{
    display: grid;
    grid-template-columns: 50px 100px 1fr 1fr 50px 50px 50px 50px 50px 50px 50px 50px 10px 10px 10px 10px 150px 50px 20px;
}



.modal {
  --modal-zindex: 1050;
  --modal-width: 500px;
  --modal-padding: 1rem;
  --modal-margin: .5rem;
  --modal-color: ;
  --modal-bg: var(--body-bg);
  --modal-border-color: var(--border-color-translucent);
  --modal-border-width: var(--border-width);
  --modal-border-radius: var(--border-radius-lg);
  --modal-box-shadow: var(--box-shadow-sm);
  --modal-inner-border-radius: calc(var(--border-radius-lg)  - (var(--border-width)));
  --modal-header-padding-x: 1rem;
  --modal-header-padding-y: 1rem;
  --modal-header-padding: 1rem 1rem;
  --modal-header-border-color: var(--border-color);
  --modal-header-border-width: var(--border-width);
  --modal-title-line-height: 1.5;
  --modal-footer-gap: .5rem;
  --modal-footer-bg: ;
  --modal-footer-border-color: var(--border-color);
  --modal-footer-border-width: var(--border-width);
  z-index: var(--modal-zindex);
  outline: 0;
  width: 100%;
  height: 100%;
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  overflow: hidden auto;
}

.modal-dialog {
  width: auto;
  margin: .5rem;
  pointer-events: none;
  position: relative;
}

.modal.fade .modal-dialog {
  transition: transform .3s ease-out;
  transform: translate(0, -50px);
}

@media (prefers-reduced-motion: reduce) {
  .modal.fade .modal-dialog {
    transition: none;
  }
}

.modal.show .modal-dialog {
  transform: none;
}

.modal.modal-static .modal-dialog {
  transform: scale(1.02);
}

.modal-dialog-scrollable {
  height: calc(100% - .5rem * 2);
}

.modal-dialog-scrollable .modal-content {
  max-height: 100%;
  overflow: hidden;
}

.modal-dialog-scrollable .modal-body {
  overflow-y: auto;
}

.modal-dialog-centered {
  min-height: calc(100% - .5rem * 2);
  align-items: center;
  display: flex;
}

.modal-content {
  width: 100%;
  color: var(--modal-color);
  pointer-events: auto;
  background-color: #fff;
  border: 1px solid #0000002d;
  border-radius:  .3rem;
  background-clip: padding-box;
  outline: 0;
  flex-direction: column;
  display: flex;
  position: relative;
}

.modal-backdrop {
  --backdrop-zindex: 1040;
  --backdrop-bg: #000;
  --backdrop-opacity: .5;
  z-index: 1040;
  background-color: #000;
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
}

.modal-backdrop.fade {
  opacity: 0;
}

.modal-backdrop.show {
  opacity: .5;
}

.modal-header {
  padding: 1rem 1rem;
  border-bottom: 1px solid #dfe3e7;;
  border-top-left-radius: .25rem;;
  border-top-right-radius: .25rem;;
  flex-shrink: 0;
  align-items: center;
  display: flex;
  color:#fff;
  background-color: #74248b;
}

.btn-close {
  --btn-close-color: #000;
  --btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='hsl%280, 0%, 0%%29'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
  --btn-close-opacity: .5;
  --btn-close-hover-opacity: .75;
  --btn-close-focus-shadow: 0 0 0 .25rem #01015640;
  --btn-close-focus-opacity: 1;
  --btn-close-disabled-opacity: .25;
  --btn-close-white-filter: invert(1) grayscale(100%) brightness(200%);
  box-sizing: content-box;
  width: 1em;
  height: 1em;
  color: var(--btn-close-color);
  background: transparent var(--btn-close-bg) center / 1em auto no-repeat;
  opacity: var(--btn-close-opacity);
  border: 0;
  border-radius: .25rem;
  padding: .25em;
}

.btn-close:hover {
  color: var(--btn-close-color);
  opacity: var(--btn-close-hover-opacity);
  text-decoration: none;
}

.btn-close:focus {
  box-shadow: var(--btn-close-focus-shadow);
  opacity: var(--btn-close-focus-opacity);
  outline: 0;
}
.modal-header .btn-close {
  padding: calc(.5rem  * .5) calc(1rem * .5);
  margin: calc(-.5  * .5rem) calc(-.5  * 1rem) calc(-.5  * .5rem) auto;
}

.modal-title {
  line-height: 1.5;
  margin-bottom: 0;
}

.modal-body {
  padding: 1rem;
  flex: auto;
  position: relative;
}

.modal-footer {
  padding: calc(1rem  - .5rem * .5);
  background-color:#74248b;
  border-top: 1px solid #0000002d;
  border-bottom-right-radius:calc( .3rem - 1px);
  border-bottom-left-radius: .3rem;
  flex-wrap: wrap;
  flex-shrink: 0;
  justify-content: flex-end;
  align-items: center;
  display: flex;
}

.modal-footer > * {
  margin: calc(.5rem * .5);
}

@media (width >= 576px) {
  .modal {
    --modal-margin: 1.75rem;
    --modal-box-shadow: 0 .5rem 1rem #00000026;
  }

  .modal-dialog {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
  }

  .modal-sm {
    --modal-width: 300px;
  }
}

@media (width >= 992px) {
  .modal-lg, .modal-xl {
    --modal-width: 800px;
  }
}

@media (width >= 1200px) {
  .modal-xl {
    --modal-width: 1140px;
  }
}

.modal-fullscreen {
  width: 100vw;
  max-width: none;
  height: 100%;
  margin: 0;
}

.modal-fullscreen .modal-content {
  border: 0;
  border-radius: 0;
  height: 100%;
}

.modal-fullscreen .modal-header, .modal-fullscreen .modal-footer {
  border-radius: 0;
}

.modal-fullscreen .modal-body {
  overflow-y: auto;
}

@media (width <= 575.98px) {
  .modal-fullscreen-sm-down {
    width: 100vw;
    max-width: none;
    height: 100%;
    margin: 0;
  }

  .modal-fullscreen-sm-down .modal-content {
    border: 0;
    border-radius: 0;
    height: 100%;
  }

  .modal-fullscreen-sm-down .modal-header, .modal-fullscreen-sm-down .modal-footer {
    border-radius: 0;
  }

  .modal-fullscreen-sm-down .modal-body {
    overflow-y: auto;
  }
}

@media (width <= 767.98px) {
  .modal-fullscreen-md-down {
    width: 100vw;
    max-width: none;
    height: 100%;
    margin: 0;
  }

  .modal-fullscreen-md-down .modal-content {
    border: 0;
    border-radius: 0;
    height: 100%;
  }

  .modal-fullscreen-md-down .modal-header, .modal-fullscreen-md-down .modal-footer {
    border-radius: 0;
  }

  .modal-fullscreen-md-down .modal-body {
    overflow-y: auto;
  }
}

@media (width <= 991.98px) {
  .modal-fullscreen-lg-down {
    width: 100vw;
    max-width: none;
    height: 100%;
    margin: 0;
  }

  .modal-fullscreen-lg-down .modal-content {
    border: 0;
    border-radius: 0;
    height: 100%;
  }

  .modal-fullscreen-lg-down .modal-header, .modal-fullscreen-lg-down .modal-footer {
    border-radius: 0;
  }

  .modal-fullscreen-lg-down .modal-body {
    overflow-y: auto;
  }
}

@media (width <= 1199.98px) {
  .modal-fullscreen-xl-down {
    width: 100vw;
    max-width: none;
    height: 100%;
    margin: 0;
  }

  .modal-fullscreen-xl-down .modal-content {
    border: 0;
    border-radius: 0;
    height: 100%;
  }

  .modal-fullscreen-xl-down .modal-header, .modal-fullscreen-xl-down .modal-footer {
    border-radius: 0;
  }

  .modal-fullscreen-xl-down .modal-body {
    overflow-y: auto;
  }
}

@media (width <= 1399.98px) {
  .modal-fullscreen-xxl-down {
    width: 100vw;
    max-width: none;
    height: 100%;
    margin: 0;
  }

  .modal-fullscreen-xxl-down .modal-content {
    border: 0;
    border-radius: 0;
    height: 100%;
  }

  .modal-fullscreen-xxl-down .modal-header, .modal-fullscreen-xxl-down .modal-footer {
    border-radius: 0;
  }

  .modal-fullscreen-xxl-down .modal-body {
    overflow-y: auto;
  }
}
