.myBtnStyle {
    display: flex;
    background-color: cornflowerblue;
    border-radius: 5px;
    width: fit-content;
    height: 30px;
    place-items: center;
    place-content: center;
    padding-left: 10px;
    padding-right: 10px;
    color: white;
}
.myBtnStyleRed {
    display: flex;
    background-color: red;
    border-radius: 5px;
    width: fit-content;
    height: 30px;
    place-items: center;
    place-content: center;
    padding-left: 10px;
    padding-right: 10px;
    color: white;
}

.myBtnStyle2 {
    display: flex;
    background-color: cornflowerblue;
    border-radius: 5px;
    width: fit-content;
    height: 30px;
    place-items: center;
    place-content: center;
    padding-left: 10px;
    padding-right: 10px;
    color: white;
    cursor: context-menu;
}

.myBtnStyle3 {
  display: flex;
  background-color: cornflowerblue;
  border-radius: 5px;
  width: fit-content;
  height: 30px;
  place-items: center;
  place-content: center;
  padding-left: 10px;
  padding-right: 10px;
  color: white;
  /* cursor: context-menu; */
}

.myBtnStyle:hover {
    background-color: blue;
}
.myBtnStyle:active {
    background-color: black;
}
.myBtnStyleRed:hover {
  background-color: blue;
}
.myBtnStyleRed:active {
  background-color: black;
}
.myInputStyle {
    width: 100%;
    border: 1px solid #000;
    height: 25px;
    color: black;
    border: groove;
}
.myCheckboxStyle {
    height: 20px;
    width: 20px;
    margin-right: 5px;
    margin: 0 5px 5px !important;
}
.myCheckboxNoMargin {
  height: 20px;
  width: 20px;
  margin-right: 5px;
  margin: 0 5px 0px !important;
}
.myLabelForCheckbox {
    font-size: 20px;
    cursor: pointer;
    /*white-space: nowrap;*/
}
.dropdown .dropdown-box {
    transition: visibility 0s linear 0.2s, opacity 0.2s 0s;
    visibility: hidden;
    opacity: 0;
}

.dropbtn {
    /* background-color: #04AA6D; */
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
}
  
  .dropdown {
    position: relative;
    display: inline-block;
  }
  
  .dropdown-content {
    display: none;
    position: absolute;
    right: 10px;
    /* background-color: #f1f1f1; */
    background-color: black;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 10px;
  }

  .dropdown-content-multi {
    display: none;
    position: absolute;
    right: 10px;
    background-color: #f1f1f1;
    /* background-color: black; */
    min-width: 160px;
    box-shadow: 0px 0px 8px 10px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 10px;
    text-align: left;
    position: initial;
    height: 250px;
    padding-top: 10px;
    padding-left: 10px;
  }

  .dropdown-content-multi-search {
    display: none;
    position: absolute;
    right: 10px;
    background-color: #f1f1f1;
    /* background-color: black; */
    min-width: 160px;
    box-shadow: 0px 0px 8px 10px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 10px;
    text-align: left;
    position: initial;
    /* height: 250px; */
    padding-top: 10px;
    padding-left: 10px;
    height: fit-content;
    max-height: 250px;
    overflow-y: overlay;
  }

  .myDropdownBtnStyle {
    background: white;
    width: 100%;
    border: groove;
    justify-content: start;
    color: black;
  }
  
  .dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-radius: 10px;
  }
  
  .dropdown-content a:hover {background-color: cornflowerblue;}
  
  .dropdown:hover .dropdown-content {display: block;}
  .dropdown:hover .dropdown-content-multi {display: block;}
  
  /* .dropdown:hover .dropbtn {background-color: #3e8e41;} */

.myAStyle {
    color: white !important;
    text-align: left !important;
    text-decoration: none !important;
    cursor: pointer;
}


.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.react-datepicker {
  font-size: 1em !important;
}
.react-datepicker__header {
  padding-top: 0.8em !important;
}
.react-datepicker__month {
  margin: 0.4em 1em !important;
}
.react-datepicker__day-name, .react-datepicker__day {
  width: 1.9em !important;
  line-height: 1.9em !important;
  margin: 0.166em !important;
}
.react-datepicker__current-month {
  font-size: 1em !important;
}
.react-datepicker__navigation {
  top: 1em !important;
  line-height: 1.7em !important;
  border: 0.45em solid transparent !important;
}
.react-datepicker__navigation--previous {
  border-right-color: #ccc !important;
  left: 1em !important;
}
.react-datepicker__navigation--next {
  border-left-color: #ccc !important;
  right: 1em !important;
}
.react-datepicker__header {
  text-align-last: center !important;
}
.react-datepicker__month {
  text-align-last: center !important;
}
.inputNoArrows::-webkit-outer-spin-button,
.inputNoArrows::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}
.inputNoArrows[type=number] {
    -moz-appearance:textfield; /* Firefox */
}

.cashbox-summary {
  background-color: #fff;
  color: #333;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  margin-bottom: 10px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.label {
  font-weight: 600;
  color: #555;
}

.status.closed {
  color: #d9534f;
  font-weight: bold;
}

.refresh-btn {
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  margin-left: auto;
  transition: background-color 0.3s ease;
}

.refresh-btn:hover {
  background-color: #0056b3;
}

.note-row {
  display: none;
}

.rate-row span {
  margin-right: 6px;
}

.table-modal {
  /*width: max-content !important;*/
  border-collapse: collapse;
  background-color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-radius: 5px;
  overflow: hidden;
  font-family: 'Segoe UI', sans-serif;
  font-size: 14px;
  margin-bottom: 20px;
  border: hidden;
}

.table-modal thead {
  background-color: #f5f5f5;
  color: #333;
  text-align: left;
}

.table-modal thead th {
  padding: 12px 16px;
  font-weight: 600;
  border-bottom: 1px solid #ddd;
}

.table-modal td, .table-modal th {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}

.table-modal tbody tr:nth-child(even) {
  background-color: #fafafa;
}

.table-modal tbody tr:hover {
  background-color: #f0f8ff;
  transition: background 0.3s ease;
}

.table-modal td:last-child {
  text-align: left;
}

.table-modal-wrapper {
  overflow-x: auto;
  border-radius: 8px;
}

.table-form td:first-child {
  white-space: nowrap;
  width: 160px;
  font-weight: 600;
  color: #333;
  padding-right: 10px;
}

.py-3 {
}

.align-items-center {
    align-items: center!important;
}

.justify-content-between {
    justify-content: space-between!important;
}

.d-flex {
    display: flex!important;
}

.c-header {
    /*background-color: rgb(48, 90, 166);*/
    height: 70px;
    /*border-bottom: inset;*/
    padding-right: 10px;
    padding-left: 10px;
}

.row > * {
  margin-right: 12px; /* أو أي قيمة مناسبة */
}

.row {
    margin-right: 0px;
    margin-left: 0px;
}

.c-footer {
    /*background-color: rgb(48, 90, 166);*/
    height: auto;
    padding-right: 10px;
    margin-top: auto;
}

.footer-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding: 20px;
  color: #fff;
}

.footer-actions .group {
  display: flex;
  flex-direction: column;
}

.footer-actions label {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 14px;
  color: #f1f1f1;
}

.footer-actions input,
.footer-actions select,
.footer-actions button {
  padding: 8px 10px;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid #ccc;
  /*width: 100%;*/
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .c-footer .footer-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    /*display: block !important;*/
  }

  .c-footer .footer-actions > div {
    width: 100% !important;
    max-width: 100% !important;
    padding-bottom: 5%;
  }

  .c-footer .group {
    width: 100% !important;
  }

  #payInvoiceBtnId {
    width: 100% !important;
    margin-top: 10px;
  }

  .group.d-flex {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .group.d-flex label {
    margin-bottom: 4px;
  }

  .group.d-flex input,
  .group.d-flex button {
    width: 100% !important;
  }

  .c-footer {
    padding: 12px !important;
  }
}

#mainLeftSide_x445 {
  top: 0;
  left: 0;
  width: 250px;
  height: 100vh;
  background: white; /* أو أي لون مناسب */
  z-index: 1000;
  transition: transform 0.3s ease;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}


/* Material-like DataTable Container */
/*
#table1_wrapper {
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  margin-top: 20px;
  overflow-x: auto;
}
*/

table {
    box-shadow: 0 1px 12px 8px rgba(0, 0, 0, 0.15);
}

/* Table Base */
table.dataTable {
  border-collapse: separate !important;
  border-spacing: 0;
  width: 100% !important;
  background-color: #ffffff;
  /*border-radius: 12px;
  overflow: hidden;*/
  font-size: 14px;
  color: #333;
}

/* Header Style */
table.dataTable thead {
  color: #444;
  font-weight: 600;
  border-bottom: 2px solid #ddd;
}

table.dataTable thead th {
  padding: 12px 16px;
  text-align: start;
}

/* Row & Cell Styling */
table.dataTable tbody tr {
  transition: background-color 0.2s ease-in-out;
}

table.dataTable tbody tr:hover {
  background-color: #f0f4ff;
}

table.dataTable tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid #eee;
}

/* Zebra striping */
table.dataTable tbody tr:nth-child(even) {
  /*background-color: #fafafa;*/
}

/* Pagination Buttons */
.dataTables_paginate .paginate_button {
  /*background: #eee;*/
  border-radius: 4px;
  padding: 6px 12px;
  margin: 0 2px;
  border: none;
  transition: all 0.2s;
}

.dataTables_paginate .paginate_button:hover {
  background: #1976d2;
  color: white !important;
}

/* Search box */
.dataTables_filter input {
  border: 1px solid #ccc;
  padding: 6px 10px;
  border-radius: 6px;
  margin-left: 10px;
}

/* Dropdown for rows per page */
.dataTables_length select {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 4px 8px;
}

table > thead {
    background-color: #dbe5ff;
    text-wrap-mode: nowrap;
    text-align-last: center;
}

.modal.fade.show .modal-dialog.modal-lg .modal-content {
  background-color: #f1f5f9 !important;
}



/* لف الزوايا */
.dataTables_wrapper {
  margin-bottom: 10px;
  border-radius: 12px;
  background-color: #f5f8ff; /* لون خفيف للمظهر */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 10px;
  overflow: visible; /* ضروري حتى القائمة تطلع */
}

/* تصحيح الزوايا للتيبل نفسه */
.dataTables_wrapper table.dataTable {
  border-radius: 12px;
  border-collapse: separate;
  border-spacing: 0;
  background-color: white;
}

/* زوايا للرأس فقط */
.dataTables_wrapper table.dataTable thead th:first-child {
  border-top-left-radius: 12px;
}
.dataTables_wrapper table.dataTable thead th:last-child {
  border-top-right-radius: 12px;
}

/* زوايا لآخر صف */
.dataTables_wrapper table.dataTable tbody tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}
.dataTables_wrapper table.dataTable tbody tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

table > tbody > tr > th {
    width: 1%;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .flexi-table > tbody > tr {
        display: grid;
        margin-bottom: 2%;
    }
    
    .flexi-table > tbody > tr > th {
        width: auto;
    }
}

.tableOptionsBtn {
  font-size: 20px;
  border: 1px solid #000000;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  width: 100%;
}

.tableOptionsBtn:hover {
  background-color: blue;
  color: white;
}

.trashBtnStyle {
  /*margin-top: auto;*/
  font-size: 20px;
  /*background-color: #f28b82;*/
  border: 1px solid #000000;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.trashBtnStyle:hover {
  background-color: #d93025;   /* أحمر غامق */
  color: white;
}

.itemCardSellMyOrder {
    display: flex;
    flex-direction: column;
    border: 1.5px solid blue;
    border-radius: 10px;
    width: 250px;
    padding: 10px;
    background: rgb(255 255 255);
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.itemCardSell {
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
    border-radius: 15px;
    width: 160px;
    padding: 10px;
    background: rgb(255 255 255);
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.itemCardSellPre {
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
    border-radius: 15px;
    width: 160px;
    padding: 10px;
    background: rgb(255 255 255);
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    cursor: pointer;
}

.itemCardSellPre:hover {
    border: 1px solid blue;
}

.itemCardTable {
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 310px;
    padding: 10px;
    background: rgb(255 255 255);
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.itemCardSellReport {
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
    border-radius: 15px;
    width: 160px;
    padding: 10px;
    background: rgb(255 255 255);
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    justify-content: space-between;
    width: 250px;
    height: 100px;
    align-items: center;
}

.itemReportsCard {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    width: 100%;
    justify-content: space-between;
}

.itemCardSellImg {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    /*border: 1px solid rgb(204, 204, 204);*/
}

.itemCardSellItem {
    font-weight: bold;
    margin-top: 5px;
    margin-bottom: 5px;
    font-size: 14px;
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    max-width: 100%;
    text-align: start;
}

.itemCardSellContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px;
}

.itemCardSellImgReview {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    z-index: 1000;
    background: white;
    padding: 5px;
    border: 1px solid #ccc;
    width: 250px;
}

.userProfileInfo {
    display: none;
    position: absolute;
    right: 70%;
    z-index: 1000;
    background: white;
    padding: 5px;
    border: 1px solid #ccc;
    width: 250px;
    box-shadow: 0 0px 8px 10px rgba(0, 0, 0, 0.08);
}

.posAreaClass {
    overflow-y: auto;
    height: 60vh;
    flex: auto;
}

.itemCardTable:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    /*box-shadow: 0 0 6px rgba(0,0,0,0.1);*/
    transform: scale(1.10);
}

.itemCardSell:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    transform: scale(1.10);
}

.itemCardSellReport:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    /*box-shadow: 0 0 6px rgba(0,0,0,0.1);*/
    transform: scale(1.10);
}

@keyframes shakeFlash {
    0%, 100% {
        transform: translateX(0);
        filter: none;
    }
    25% {
        transform: translateX(-3px);
        filter: drop-shadow(0 0 8px red) drop-shadow(0 0 12px red) drop-shadow(0 0 12px red);
    }
    75% {
        transform: translateX(3px);
        filter: drop-shadow(0 0 8px red) drop-shadow(0 0 12px red) drop-shadow(0 0 12px red);
    }
}

.shake-flash-effect {
    animation: shakeFlash 0.6s infinite;
    /*cursor: pointer;*/
}

.notifyIcon {
    margin-inline-end: 5px;
    width: 25px;
    height: 25px;
    align-self: center;
    cursor: pointer;
}

.notifyItemCard {
    border: 1px solid #000000;
    padding: 10px;
    /*border-bottom: 1px solid #e0e0e0;*/
    position: relative;
    font-size: 14px;
    background-color: #f9f9f9;
    font-weight: normal;
    border-radius: 5px;
    margin-bottom: 5px;
    box-shadow: 0 0px 8px 1px rgba(0, 0, 0, 0.08);
}

.updateNotifyStatusBtn {
    position: absolute;
    bottom: 5px;
    right: 10px;
    font-size: 12px;
    color: #007bff;
    cursor: pointer;
    white-space: nowrap;
}

.notifysContainer {
    position: fixed;
    display: none;
    width: 50%;
    top: 50px;
    background-color: rgb(255, 255, 255);
    max-height: 400px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 4px 10px;
    border-radius: 6px;
    z-index: 9999;
    padding: 10px;
    overflow-y: auto;
}

[dir="ltr"] .notifysContainer {
    right: 5%;
}

[dir="rtl"] .notifysContainer {
    right: 43%;
}

.forceHide {
    display: none !important;
}

[dir="rtl"] .userProfileInfo {
    right: unset;
    left: 70%;
}
[dir="rtl"] .dropdown-content {
    right: -100px;
}

#setAllAsReadBtnId {
    display: block;
    position: unset;
    justify-self: center;
    margin-bottom: 5px;
    font-size: large;
    color: #007bff;
    cursor: pointer;
    white-space: nowrap;
}

:root {
    --main-color: #171e23;
}

.system-color {
    background-color: var(--main-color);
}

.register-form {
    /*border: 2px solid #ccc;*/
    border-radius: 5px;
    box-shadow: 0 0px 15px 10px rgba(0, 0, 0, 0.08);
    padding: 5px;
}

.category-scroll {
  display: flex;
  overflow-x: auto;
  margin: 20px;
  gap: 10px;
  white-space: nowrap;
}

.category-button {
  min-width: fit-content;
  padding: 8px 16px;
  background-color: #afd2ff;
  border: 1px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
}

.category-button:hover {
    border: 1px solid black;
}

.category-button.active {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

.scroll-hidden {
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer and Edge */
}

.scroll-hidden::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

