@font-face {
    font-family: "iransans";
    src: url("./../fonts/IRANSansWeb(FaNum).ttf");
}

:root {
  --bg-form-color: #fefefe;
  --primary-color: #3498db;
  --secondary-color: #2980b9;
  --success-color: #2ecc71;
  --danger-color: #e74c3c;
  --warning-color: #f1c40f;
  --info-color: #3498db;
  --light-color: #f8f9fa;
  --dark-color: #2c3e50;
  --border-radius: 12px;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --font-color-dark: black;
  --font-color-light: snow;
  --bs-body-font-family: "iransans";
}
/* Firefox */
* {
    scrollbar-width: thin; /* نازک‌ترین حالت در فایرفاکس */
    scrollbar-color: rgba(0,0,0,.4) transparent;
    font-family: "iransans", serif;
}

/* Chrome, Edge (Chromium), Safari, Opera */
*::-webkit-scrollbar {
    width: 2px;   /* برای اسکرول عمودی */
    height: 2px;  /* برای اسکرول افقی */
}

*::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,.4);
    border-radius: 2px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

/* IE قدیمی */
html, body {
    -ms-overflow-style: -ms-autohiding-scrollbar;
}

/* ===== MODAL STYLES ===== */
/* استایل‌های مودال */
#notificationsModal {
    z-index: 9999 !important;
    display: none;
}

#notificationsModal.show {
    display: block !important;
}

#notificationsModal .modal-dialog {
    z-index: 10000 !important;
}

/* اطمینان از نمایش مودال */
.modal {
    z-index: 9999 !important;
}

.modal-backdrop {
    z-index: 9998 !important;
}

body.modal-open {
    overflow: hidden;
}

/* Backdrop styles */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9998;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
}

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

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

#notificationsModal .modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

#notificationsModal .modal-header {
    background: #f8f9fa;
    color: #333;
    border-radius: 12px 12px 0 0;
    border: none;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#notificationsModal .modal-title {
    font-weight: 600;
    font-size: 18px;
    color: #333;
    margin: 0;
}

#notificationsModal .modal-title i {
    color: #6c757d;
    margin-left: 8px;
}

#notificationsModal .modal-header .d-flex {
    gap: 8px;
}

#notificationsModal .modal-header .btn {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
}

#notificationsModal .modal-header .btn-outline-success {
    color: #28a745;
    border-color: #28a745;
}

#notificationsModal .modal-header .btn-outline-success:hover {
    background-color: #28a745;
    color: white;
}

#notificationsModal .modal-header .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

#notificationsModal .modal-header .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

#notificationsModal .btn-close {
    filter: none;
    color: #6c757d;
    opacity: 0.7;
}

#notificationsModal .btn-close:hover {
    opacity: 1;
    color: #333;
}

#notificationsModal .modal-body {
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
}

#notificationsModal .modal-footer {
    border: none;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

#notificationsModal .btn-close {
    filter: invert(1);
}

/* Notification items in modal */
.notification-item-modal {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.notification-item-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.notification-item-modal.unread {
    border-left: 4px solid #1976d2;
    background: #f8f9ff;
}

.notification-item-modal.read {
    opacity: 0.7;
    background: #f5f5f5;
}

.notification-icon-modal {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    flex-shrink: 0;
}

.notification-content-modal {
    flex: 1;
}

.notification-title-modal {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notification-message-modal {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.notification-time-modal {
    color: #999;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.notification-actions-modal {
    display: flex;
    gap: 5px;
    align-items: center;
}

.notification-priority-modal {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    color: white;
    font-weight: 500;
}

/* Priority colors */
.notification-item-modal.priority-urgent .notification-priority-modal {
    background: #dc3545;
    color: white;
}

.notification-item-modal.priority-high .notification-priority-modal {
    background: #fd7e14;
    color: white;
}

.notification-item-modal.priority-medium .notification-priority-modal {
    background: #ffc107;
    color: #000;
}

.notification-item-modal.priority-low .notification-priority-modal {
    background: #6c757d;
    color: white;
}

/* Type colors */
.notification-item-modal.notification-info .notification-icon-modal {
    background: #e3f2fd;
    color: #1976d2;
}

.notification-item-modal.notification-success .notification-icon-modal {
    background: #e8f5e8;
    color: #2e7d32;
}

.notification-item-modal.notification-warning .notification-icon-modal {
    background: #fff3e0;
    color: #f57c00;
}

.notification-item-modal.notification-danger .notification-icon-modal {
    background: #ffebee;
    color: #d32f2f;
}

/* Responsive modal */
@media (max-width: 768px) {
    #notificationsModal .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    #notificationsModal .modal-header {
        padding: 15px;
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    #notificationsModal .modal-header .d-flex {
        order: 1;
        justify-content: center;
    }
    
    #notificationsModal .modal-title {
        order: 2;
        text-align: center;
    }
    
    #notificationsModal .modal-body {
        padding: 15px;
        max-height: 400px;
    }
    
    #notificationsModal .modal-footer {
        padding: 15px;
    }
    
    .notification-item-modal {
        padding: 12px;
    }
    
    .notification-icon-modal {
        width: 35px;
        height: 35px;
        margin-left: 10px;
    }
    
    .notification-title-modal {
        font-size: 15px;
    }
    
    .notification-message-modal {
        font-size: 13px;
    }
    
    #notificationsModal .modal-header .btn {
        font-size: 11px;
        padding: 5px 10px;
    }
}

a {
  text-decoration: none !important;
}

input::placeholder {
  opacity: 0.7 !important;
  color: #939393;
}

.container {

}

body {
  margin: 0;
  padding: 0;
  direction: rtl;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  background-image: url("../images/background_image.webp");
  background-repeat: no-repeat;
  background-size: cover;
}

.bg_form {
  background-color: var(--bg-form-color);
  padding: 40px;
  border-radius: 10px;
}

.image_login img {
  border-radius: 30px;
}

.text-body {
  text-decoration: none;
}

.header {
  position: fixed;
  height: 70px;
  width: 100%;
  background-color: snow;
  box-shadow: black 0px 0px 3px 1px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: flex-end;
  align-items: center;
}

.header a {
  margin-right: 20px;
}

.divider:after,
.divider:before {
  content: "";
  flex: 1;
  height: 1px;
  background: #eee;
}

a:hover {
  text-decoration: none;
}

.border-left {
  border-left: 2px solid !important;
}

.overlay {
  background-color: rgb(0 0 0 / 45%);
  z-index: 99;
}

@media screen and (max-width: 767px) {
.image_login img {
  display: none;
}

.sidebar {
  max-width: 18rem;
  transform: translateX(100%);
  transition: transform 0.4s ease-out;
}

.sidebar.active {
  transform: translateX(0);
}

}

.show_data {
  display: none;
  color: snow;
  border: 1px solid gray;
  background-color: snow;
  position: absolute;
  width: 95%;
  border-radius: 10px;
  height: 85vh;
  overflow-y: auto;
}

.show_data .form {
  position: relative;
  margin: 50px;
  color: black;
}

.page_title {
  padding: 30px 0px;
}

.page_title h1 {
  font-weight: 700;
  line-height: 2;
  margin-bottom: 0;
  position: relative;
  text-transform: capitalize;
}

.page_title h1::before {
  background: #c0392b;
  width: 70px;
  height: 2px;
  position: absolute;
  content: "";
  top: 90%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.page_title h1::after {
  position: absolute;
  content: "";
  background: #fbc531;
  width: 30px;
  height: 2px;
  top: 90%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.menu_tab {
  margin: 0 auto;
  justify-content: center;
}

.nav-item {
  display: inline-block;
  text-align: center;
}

.nav-tabs .nav-link {
  transition: 0.15s;
}

.nav-tabs .nav-link.active {
  background: #c0392b;
  color: #fff;
  font-weight: 700;
  border: 1px solid #c0392b;
  text-transform: capitalize;
}

.nav-link {
  color: #000;
}

.nav-tabs .nav-link:hover {
  background: #c0392b;
  color: #fff;
  border: 1px solid #c0392b;
}

.single_menu {
  position: relative;
  margin-bottom: 75px;
  transition: 0.15s;
}

.single_menu:hover img {
  -webkit-clip-path: polygon(0% 0%, 100% 0, 100% 50%, 100% 100%, 0% 100%);
  clip-path: polygon(0% 0%, 100% 0, 100% 50%, 100% 100%, 0% 100%);
}

.single_menu img {
  width: 33%;
  position: absolute;
  height: 140px;
  -webkit-clip-path: polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%);
  clip-path: polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%);
  transition: 0.15s;
  border: 1px solid #ddd;
  border-radius: 5px;
  left: 0px;
}

.menu_content {
  padding-left: 200px;
}

.menu_content h4 {
  font-size: 25px;
  font-weight: 300;
  border-bottom: 1px dashed #c0392b;
  line-height: 2;
  text-transform: capitalize;
}

.menu_content p {
  font-weight: 200;
  font-size: 16px;
  letter-spacing: 1px;
}

.menu_btn.btn.btn-danger {
  margin: 0 auto;
  display: block;
  width: 140px;
}

.btn.btn-danger {
  background: #c0392b;
  border: 1px solid #c0392b;
  transition: 0.15s;
  position: relative;
  z-index: 1;
  text-transform: capitalize;
  font-weight: 700;
  overflow: hidden;
  padding: 15px 25px;
}

.btn.btn-danger::before {
  position: absolute;
  content: "";
  background: #e74c3c;
  width: 100%;
  height: 100%;
  left: -100%;
  top: 100%;
  transition: 0.3s;
  z-index: -1;
}

.btn.btn-danger:hover:before {
  top: 0;
  left: 0;
}

.name_coffee {
  font-family: "Alkalami", serif;
  font-weight: 400;
  font-style: normal;
}

.menu_content h4 span {
  font-size: 25px;
  font-weight: 800;
  float: left;
  font-style: italic;
  color: #c0392b;
}

.custom-content {
  display: flex;
  justify-content: space-between;
  width: 1200px;
  margin: 100px;
}

.custom-icon {
  display: flex;
  justify-content: center;
}

.custom-icon img {
  width: 100px;
}

.custom-button {
  margin: 70px auto 30px;
}

.custom-button button {
  height: 40px;
  width: 250px;
  font-size: 0.7em;
  font-weight: bold;
  letter-spacing: 0.5px;
  color: #7d7c7c;
  border-radius: 50px;
  background: transparent;
}

.custom-button button:hover {
  transition: 0.5s;
  border: none;
}

@media screen and (max-width: 970px) {
.image_login img {
  display: none;
}

.custom-content {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin: 50px auto;
}

.custom-standard,
    .custom-business {
  margin-top: 25px;
}

}

.sidebar h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.sidebar h3 {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 10px;
  text-align: center;
}

.sidebar .list-group-item:hover {
  border-radius: 10px;
  transform: translateX(-5px);
}

.sidebar .list-group-item.active {
  background-color: #0056b3;
  color: white;
  border-radius: 10px;
  font-weight: bold;
}

.sidebar .list-group-item span.bi {
  font-size: 1.2rem;
  margin-left: 10px;
}

.sidebar p {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 10px;
  text-align: center;
}

.sidebar .collapse {
  margin-top: 10px;
}

.sidebar button.list-group-item {
  background-color: transparent;
  color: #333;
  border: none;
  padding: 10px 20px;
  font-weight: 500;
  transition: all 0.2s ease;
  text-align: right;
}

.sidebar button.list-group-item:hover {
  background-color: #007bff;
  color: white;
  border-radius: 10px;
  transform: translateX(-5px);
}

/* Removed broken CSS rules */

.sidebar .list-group-item span {
  order: 2;
}

.sidebar .list-group-item .ml-2 {
  margin-left: auto;
  order: 1;
}

.sidebar {
  top: 0;
  right: 0;
  z-index: 1000;
  overflow-y: auto;
  background-color: #f8f9fa;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  direction: rtl;
  text-align: right;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.user-info {
  background: #fff;
  padding: 0.75rem !important;
  border-bottom: 1px solid #eee;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 40px !important;
  height: 40px !important;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  flex-shrink: 0;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-details {
  flex: 1;
  min-width: 0;
}

.user-details h6 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  color: #2c3e50;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.user-meta small {
  color: #6c757d;
  font-size: 0.8rem;
}

.subscription-info {
  background: #e9ecef;
  color: #495057;
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.subscription-info i {
  font-size: 0.75rem;
  color: #6c757d;
}

.sidebar-menu {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem !important;
}

.list-group-item {
  border-radius: 8px !important;
  margin-bottom: 4px;
  transition: all 0.3s ease;
  padding: 10px 12px;
  font-size: 0.9rem;
}

.sidebar-footer {
  background: #fff;
  padding: 0.5rem !important;
}

.btn-outline-danger {
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.btn-outline-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.2);
}

@media (max-width: 1000px) {
.sidebar {
  transform: translateX(100%);
  position: fixed;
  top: 0;
  left: 0;
  width: 80% !important;
  max-width: 300px;
}

.sidebar.active {
  transform: translateX(0);
}

.sidebar.show {
  transform: translateX(0);
}

#sidebar-overlay {
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

#sidebar-overlay.show {
  display: block !important;
}

.hamburger-menu {
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 2px;
  background: #3498db;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-menu:hover span {
  background: #2980b9;
}

}

.verify_code {
  width: 220px;
  height: 40px;
  font-size: 20px;
  text-align: center;
  letter-spacing: 25px;
  border: none;
  border-bottom: 2px solid #007bff;
  outline: none;
  padding: 0 10px;
}

.scroll_table {
  overflow-x: auto;
  position: absolute;
  width: 100%;
}

.glass .table-content {
  margin-bottom: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.form {
  background: #fff;
  padding: 15px;
  border-radius: 25px;
  border: 2px solid black;
}

.add-owner-form {
  background: #fff;
  padding: 15px;
  border-radius: 25px;
  border: 2px solid black;
}

.form textarea {
  resize: none;
}

.form label {
  padding-right: 12px;
}

.form h3 {
  margin-bottom: 20px;
}

#exportOverlay {
  display: flex;
}

#search_bar_product {
  text-indent: 2rem;
}

.search_bar_product {
  position: sticky;
  top: 20px;
  z-index: 2;
}

.ltr {
  direction: ltr;
}

.rtl {
  direction: rtl;
}

.iframe-container {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
}

#amir {
  padding-top: 100px;
  color: #0056b3;
}

.subscription-cart {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2rem 0;
}

.custom-box {
  display: flex;
  flex-direction: column;
  height: 586px;
  width: 300px;
  border-radius: var(--border-radius);
  margin-left: 10px;
  margin-right: 10px;
  box-shadow: var(--box-shadow);
  background: white;
  padding: 2rem;
  transition: var(all 0.3s ease);
  position: relative;
  overflow: hidden;
}

.custom-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.custom-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

.custom-basic::before {
  background: linear-gradient(45deg, #95a5a6, #7f8c8d);
}

.custom-standard::before {
  background: linear-gradient(45deg, #f1c40f, #f39c12);
}

.custom-business::before {
  background: linear-gradient(45deg, #e74c3c, #c0392b);
}

.custom-title {
  width: 100%;
  padding: 10px 0;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  color: var(--dark-color);
  margin-bottom: 1.5rem;
}

.custom-view {
  display: block;
  width: 100%;
  padding: 30px 0 20px;
  text-align: center;
  margin-bottom: 2rem;
}

.custom-cost {
  display: flex;
  justify-content: center;
  flex-direction: row;
  margin-top: 10px;
  align-items: center;
  gap: 0.5rem;
}

.custom-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin: 0;
}

.custom-detail {
  margin: 0;
  width: 70px;
  font-size: 0.9rem;
  font-weight: bold;
  line-height: 15px;
  color: var(--dark-color);
  text-align: right;
}

.custom-description {
  font-size: 0.8em;
  color: #7d7c7c;
  margin-bottom: 2rem;
}

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

.custom-description li {
  padding: 10px;
  color: var(--dark-color);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.custom-description li::before {
  content: '✓';
  background-position: center;
  background-size: cover;
  opacity: 0.5;
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  color: var(--success-color);
  font-weight: bold;
}

.custom-box p.text-center {
  background: var(--light-color);
  padding: 1rem;
  border-radius: var(--border-radius);
  margin: 0;
  font-weight: 500;
  color: var(--dark-color);
  transition: var(all 0.3s ease);
}

.custom-box:hover p.text-center {
  background: var(--primary-color);
  color: white;
}


.help-text {
  color: #6c757d;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.file-input-label {
  color: #2c3e50;
  font-weight: 500;
  margin-bottom: 1rem;
  display: block;
}

.btn-outline-primary {
  color: #3498db;
  border: 2px solid #3498db;
  border-radius: 10px;
  padding: 0.6rem 1.2rem;
  font-weight: 500;
  transition: all 0.3s ease;
  background: transparent;
}

.btn-outline-primary:hover {
  background: #3498db;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

.file-info {
  color: #6c757d;
  font-size: 0.85rem;
  margin-top: 0.8rem;
}

.note-container {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
  padding: 2.5rem;
  margin: 2rem auto;
  max-width: 1200px;
  width: 100%;
}

.note-title {
  color: #2c3e50;
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.note-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(45deg, #3498db, #2980b9);
  border-radius: 3px;
}

.note-form {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.03);
}

.form-select-lg {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

.form-select-lg:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.15);
  outline: none;
}

.note-input {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
  width: 100%;
}

.note-input:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.15);
  outline: none;
}

.note-submit {
  background: linear-gradient(45deg, #3498db, #2980b9);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.note-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.note-table {
  width: 100%;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  margin-top: 2rem;
}

.note-table th {
  background: #f8f9fa;
  color: #2c3e50;
  font-weight: 600;
  padding: 1rem;
  border: none;
  text-align: right;
}

.note-table td {
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.note-table tr:hover {
  background: #f8f9fa;
}

.note-actions {
  display: flex;
  gap: 0.5rem;
}

.form-container {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 0rem;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
  width: 100%;
}

.form-title {
  color: #2c3e50;
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.form-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(45deg, #3498db, #2980b9);
  border-radius: 3px;
}

.warning-text i {
  color: #856404;
}

.form-check {
  padding: 0.5rem 0;
}

.form-check-input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.2rem;
  border: 2px solid #e9ecef;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.form-check-input:checked {
  background-color: #3498db;
  border-color: #3498db;
}

.form-check-label {
  color: #2c3e50;
  font-weight: 500;
  margin-right: 0.5rem;
}

.availability-container {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  border: 2px solid #e9ecef;
}

.availability-container:hover {
  background: #e9ecef;
  border-color: #3498db;
}

.availability-icon {
  color: #3498db;
  font-size: 1.4rem;
}

.availability-checkbox {
  position: relative;
  width: 24px;
  height: 24px;
  margin: 0;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.availability-checkbox:checked {
  background-color: #3498db;
  border-color: #3498db;
}

.availability-checkbox:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.availability-label {
  color: #2c3e50;
  font-weight: 500;
  font-size: 1.1rem;
  margin: 0;
  cursor: pointer;
  user-select: none;
}

.submit-btn {
  background: linear-gradient(45deg, #2ecc71, #27ae60);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem auto;
  min-width: 200px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.submit-btn i {
  font-size: 1.2rem;
}

.page-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(45deg, #3498db, #2980b9);
  border-radius: 3px;
}

.search-container {
  position: relative;
  max-width: 600px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.search-input::placeholder {
  color: #95a5a6;
  font-weight: 400;
}

.search-container::after {
  content: '\1f50d';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  color: #95a5a6;
  font-size: 1.2rem;
  pointer-events: none;
  transition: all 0.3s ease;
}

.search-input:focus + .search-container::after {
  color: #3498db;
}

.table-responsive::-webkit-scrollbar {
  width: 8px;
}

.table-responsive::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.spinner-border-sm {
  width: 1rem;
  height: 1rem;
}

.btn-xs {
  padding: 0.125rem 0.25rem;
  font-size: 0.75rem;
  line-height: 1.2;
  min-width: 32px;
  height: 32px;
}

.d-flex.gap-1 .btn {
  border-radius: 0.375rem !important;
  margin: 0 1px;
  min-width: 32px;
  height: 32px;
}

.btn svg {
  vertical-align: middle;
}

.d-flex.align-items-center.justify-content-center {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.table td {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-overlay .spinner-border {
  width: 3rem;
  height: 3rem;
}

.loading-overlay p {
  font-size: 1.1rem;
  font-weight: 500;
  color: #6c757d;
}

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  min-width: 300px;
  direction: rtl;
  text-align: right;
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }

}

.filter-section .form-control:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.card {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  border: 1px solid rgba(0, 0, 0, 0.125);
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
  background-color: rgba(0, 0, 0, 0.02);
}

.table-hover > tbody > tr:hover > td {
  background-color: rgba(0, 0, 0, 0.075);
}

.modal-content {
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
  border-bottom: 1px solid #dee2e6;
  border-radius: 0.5rem 0.5rem 0 0;
}

.modal-footer {
  border-top: 1px solid #dee2e6;
  border-radius: 0 0 0.5rem 0.5rem;
}

tr {
  text-wrap: nowrap;
}

.table-modern .btn-modern {
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.table-modern .btn-modern i {
  font-size: 1rem;
}

.table-modern .btn-modern-primary {
  background: linear-gradient(45deg, #3498db, #2980b9);
  color: white;
  border: none;
}

.table-modern .btn-modern-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.table-modern .btn-modern-danger {
  background: linear-gradient(45deg, #e74c3c, #c0392b);
  color: white;
  border: none;
}

.table-modern .btn-modern-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.no-results {
  text-align: center;
  padding: 3rem;
  background: #f8f9fa;
  border-radius: 15px;
  color: #6c757d;
  font-size: 1.1rem;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.no-results i {
  font-size: 1.5rem;
  color: #95a5a6;
}

.sort-icon.asc::after {
  content: " ⬆️";
}

.sort-icon.desc::after {
  content: " ⬇️";
}

.settings-container {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  margin: 1rem;
}

.settings-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.settings-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.color-picker-container {
  height: 50px;
  background: white;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.color-picker-container label {
  margin: 0;
  font-weight: 500;
  color: #2c3e50;
}

.preview-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.scaled-iframe {
  position: relative;
  left: 0;
  right: 0;
  width: 100%;
  height: 700px;
  border: none;
  transform-origin: center center;
  border-radius: 10px;
  transform: scale(0.9);
}

.login-container {
  min-height: 100vh;
  padding: 1rem;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-image-container {
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.login-image {
  max-width: 100%;
  height: auto;
  transition: all 0.3s ease;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  animation: float 6s ease-in-out infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}

@keyframes slideIn {
    from {
        transform: translateY(5px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }

}

@keyframes float {

}

@keyframes pulse {

}

.login-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.login-card h2 {
  color: #2c3e50;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 700;
}

.login-card .form-label {
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.login-card .form-control {
  border-radius: 12px;
  padding: 0.8rem 1.2rem;
  border: 2px solid #e3e6f0;
  transition: all 0.1s ease;
  font-size: 1rem;
  background-color: #f8f9fa;
}

.login-card .form-control:focus {
  border-color: #4e73df;
  box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.15);
  background-color: #fff;
}

.login-card .form-control::placeholder {
  color: #6c757d;
  text-align: right;
}

.btn-login {
  background-color: #4e73df;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 2rem;
  font-weight: 600;
  transition: all 0.1s ease;
  color: #ffffff;
}

.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 4px rgba(78, 115, 223, 0.2);
}

.btn-register {
  background: transparent;
  border: 2px solid #4e73df;
  color: #4e73df;
  border-radius: 12px;
  padding: 0.8rem 2rem;
  font-weight: 600;
  transition: all 0.1s ease;
  width: 100%;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.btn-register:hover {
  background: #4e73df;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 1px 4px rgba(78, 115, 223, 0.2);
}

.forgot-password {
  color: #4e73df;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.forgot-password:hover {
  color: #224abe;
  text-decoration: underline;
}

.login-card .form-check {
  margin-bottom: 0;
}

.login-card .form-check-input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.2rem;
  border: 2px solid #e3e6f0;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.login-card .form-check-input:checked {
  background-color: #4e73df;
  border-color: #4e73df;
}

.login-card .form-check-label {
  color: #2c3e50;
  font-size: 0.9rem;
  font-weight: 500;
  margin-right: 0.5rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

.login-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  transition: all 0.1s ease;
  width: 100%;
  max-width: 450px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeIn 0.5s ease-out;
}

.btn-login.loading {
  position: relative;
  color: transparent;
}

.btn-login.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }

}

.register-container,
.forgot-password-container {
  min-height: 100vh;
  background: #f8f9fa;
  padding: 2rem 0;
  display: flex;
  align-items: center;
}

.register-card,
.forgot-password-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
  transition: all 0.15s ease;
  max-width: 500px;
  margin: 0 auto;
}

.register-image,
.forgot-password-image {
  max-width: 80%;
  height: auto;
  margin: 0 auto;
  display: block;
}

.login-card h2,
.register-card h2,
.forgot-password-card h2 {
  color: #2c3e50;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  width: 100%;
}

.login-card .form-control,
.register-card .form-control,
.forgot-password-card .form-control {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8f9fa;
  text-align: right;
  direction: rtl;
}

.reset-password-container {
  min-height: 100vh;
  padding: 1rem;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reset-password-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 450px;
  /* backdrop-filter: blur(10px); - Removed for mobile performance */
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeIn 0.5s ease-out;
}

.reset-password-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.reset-password-card h2 {
  color: #2c3e50;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 700;
}

.reset-password-card .form-control {
  border-radius: 12px;
  padding: 0.8rem 1.2rem;
  border: 2px solid #e3e6f0;
  transition: all 0.3s ease;
  font-size: 1rem;
  background-color: #f8f9fa;
  text-align: right;
  direction: rtl;
}

.reset-password-card .form-control:focus {
  border-color: #4e73df;
  box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.15);
  background-color: #fff;
}

.reset-password-card .form-control::placeholder {
  color: #6c757d;
  text-align: right;
}

.reset-password-card .btn-primary {
  background: linear-gradient(45deg, #4e73df, #224abe);
  border: none;
  border-radius: 12px;
  padding: 0.8rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  color: #ffffff;
  width: 100%;
  margin-top: 1rem;
}

.reset-password-card .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(78, 115, 223, 0.3);
}

.reset-password-image {
  max-width: 80%;
  height: auto;
  animation: float 6s ease-in-out infinite;
  margin: 0 auto;
  display: block;
}

.verify-container {
  min-height: 100vh;
  padding: 1rem;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.verify-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
  transition: all 0.3s ease;
  width: 100%;
  /* backdrop-filter: blur(10px); - Removed for mobile performance */
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeIn 0.5s ease-out;
}

.verify-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.verify-card h2 {
  color: #2c3e50;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 700;
}

.verify-message {
  color: #6c757d;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.phone-number {
  color: #4e73df;
  font-weight: 600;
  direction: ltr;
  display: inline-block;
}

.verify-input-container {
  margin-bottom: 1.5rem;
}

.verify-input {
  border-radius: 12px;
  padding: 1rem;
  border: 2px solid #e3e6f0;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  text-align: center;
  letter-spacing: 2rem;
  background-color: #f8f9fa;
  direction: ltr;
}

.verify-input:focus {
  border-color: #4e73df;
  box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.15);
  background-color: #fff;
}

.verify-input::placeholder {
  letter-spacing: normal;
  color: #adb5bd;
}

.btn-verify {
  background: linear-gradient(45deg, #4e73df, #224abe);
  border: none;
  border-radius: 12px;
  padding: 1rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  color: #ffffff;
  width: 100%;
  font-size: 1.1rem;
}

.btn-verify:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(78, 115, 223, 0.3);
  color: #ffffff;
}

@media (max-width: 767.98px) {
.login-container {
  padding: 1rem;
  min-height: 100vh;
}

.login-card {
  padding: 1.5rem;
  margin: 0.5rem;
  border-radius: 15px;
}

.login-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}

.login-card .form-control {
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
}

.btn-login, .btn-register {
  padding: 0.7rem 1.5rem;
  font-size: 0.95rem;
}

.register-container,
    .forgot-password-container {
  padding: 1rem;
}

.register-card,
    .forgot-password-card {
  padding: 1.5rem;
  max-width: 400px;
}

.register-card h2,
    .forgot-password-card h2 {
  font-size: 1.75rem;
}

.reset-password-container {
  padding: 1rem;
}

.reset-password-card {
  padding: 1.5rem;
  margin: 0.5rem;
}

.reset-password-card h2 {
  font-size: 1.5rem;
}

.reset-password-card .form-control {
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
}

.reset-password-card .btn-primary {
  padding: 0.7rem 1.5rem;
  font-size: 0.95rem;
}

.verify-container {
  padding: 1rem;
}

.verify-card {
  padding: 1.5rem;
  margin: 0.5rem;
}

.verify-card h2 {
  font-size: 1.5rem;
}

.verify-message {
  font-size: 1rem;
}

.verify-input {
  font-size: 1.1rem;
  padding: 0.8rem;
}

.btn-verify {
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
}

}

@media (max-width: 575.98px) {
.login-container {
  padding: 0.5rem;
}

.login-card {
  padding: 1.2rem;
  margin: 0.3rem;
}

.login-card h2 {
  font-size: 1.3rem;
}

.login-card .form-label {
  font-size: 0.9rem;
}

.login-card .form-control {
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
}

.btn-login, .btn-register {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

.forgot-password {
  font-size: 0.8rem;
}

.register-card,
    .forgot-password-card {
  padding: 1.25rem;
  max-width: 350px;
}

.register-card h2,
    .forgot-password-card h2 {
  font-size: 1.5rem;
}

.register-card .form-control,
    .forgot-password-card .form-control {
  padding: 0.875rem;
}

.reset-password-container {
  padding: 0.5rem;
}

.reset-password-card {
  padding: 1.2rem;
  margin: 0.3rem;
}

.reset-password-card h2 {
  font-size: 1.3rem;
}

.reset-password-card .form-control {
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
}

.reset-password-card .btn-primary {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

.verify-container {
  padding: 0.5rem;
}

.verify-card {
  padding: 1.2rem;
  margin: 0.3rem;
}

.verify-card h2 {
  font-size: 1.3rem;
}

.verify-message {
  font-size: 0.9rem;
}

.verify-input {
  font-size: 1rem;
  padding: 0.7rem;
}

.btn-verify {
  padding: 0.7rem 1.2rem;
  font-size: 0.9rem;
}

}

.crm-container {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  margin: 1rem;
}

.page-title {
  color: #2c3e50;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  padding: 1rem;
  background: var(--light-color);
  border-radius: var(--border-radius);
  margin: 0;
  padding-bottom: 1rem;
}

.btn-send-sms {
  background: linear-gradient(45deg, #3498db, #2980b9);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 0.8rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-right: 10px;
  position: absolute;
  left: 0;
}

.btn-send-sms:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.sort-icon {
  font-size: 0.8rem;
  cursor: pointer;
  margin-right: 5px;
  color: #6c757d;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.sort-icon.asc {
  opacity: 1;
  transform: rotate(180deg);
}

.sort-icon.desc {
  opacity: 1;
}

.sms-form {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.sms-form textarea {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 1rem;
  transition: all 0.3s ease;
}

.sms-form textarea:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.15);
}

.warning-text {
  background: #fff3cd;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  color: #856404;
  font-size: 0.9rem;
  line-height: 1.6;
}

.details-link {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.details-link:hover {
  color: #2980b9;
  text-decoration: underline;
}

.dashboard-container {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
  padding: 2.5rem;
  max-width: 1400px;
  width: 100%;
}

.section-title i {
  color: #3498db;
}

.badge {
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
}

.table-modern {
  width: 100%;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.table-modern th {
  background: #f8f9fa;
  color: #2c3e50;
  font-weight: 600;
  padding: 1.2rem 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: right;
}

.table-modern th:hover {
  background: #e9ecef;
}

.table-modern td {
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
  color: #2c3e50;
}

.table-modern tr:hover {
  background: #f8f9fa;
}

.user-name {
  font-weight: 600;
  color: #2c3e50;
}

.marketer-name {
  font-weight: 500;
  color: #3498db;
}

.marketer-code {
  background: #e3f2fd;
  border-radius: 15px;
  padding: 0.3rem 0.8rem;
  margin-bottom: 20px;
  color: #1976d2;
  font-size: 0.9rem;
  font-weight: 500;
}

.customer-count {
  background: #e8f5e8;
  color: #2e7d32;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-weight: 600;
}

.expiry-date {
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  background: #fff3e0;
  color: #f57c00;
}

.expiry-date.text-danger {
  background: #ffebee;
  color: #d32f2f;
}

.btn-modern {
  border-radius: 10px;
  padding: 0.6rem 1.2rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 0.9rem;
}

.btn-modern i {
  font-size: 1rem;
}

.favorite-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f8f9fa;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  border-right: 3px solid #3498db;
}

.favorite-value {
  font-weight: 500;
  color: #2c3e50;
}

.coffee-shops-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.coffee-shop-badge {
  background: linear-gradient(45deg, #e74c3c, #c0392b);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.coffee-shop-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.coffee-shop-badge:hover::before {
  left: 100%;
}

.coffee-shop-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.last-visit {
  color: #6c757d;
  font-size: 0.9rem;
  font-weight: 500;
}

.menu-section {
  margin-bottom: 0.5rem;
}

.menu-section .list-group-item {
  position: relative;
  transition: all 0.3s ease;
}

.dropdown-arrow {
  transition: transform 0.3s ease;
  color: #6c757d;
  margin-left: 8px;
}

.menu-section .list-group-item[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
  color: #3498db;
}

.menu-section .list-group-item:hover .dropdown-arrow {
  color: #3498db;
}

.submenu-item {
  padding-left: 2.5rem !important;
  background-color: #f8f9fa !important;
  border-right: 3px solid #e9ecef !important;
  margin-right: 1rem;
  border-radius: 8px 0 0 8px !important;
  transition: all 0.3s ease;
}

.submenu-item:hover {
  background-color: #e9ecef !important;
  border-right-color: #3498db !important;
  transform: translateX(5px);
}

.submenu-item.active {
  background-color: #3498db !important;
  color: white !important;
  border-right-color: #2980b9 !important;
}

.active_parent {
  background-color: #98d2f4 !important;
  color: white !important;
  border-right-color: #70a0c1 !important;
}

.submenu-item .menu-icon {
  background: rgba(52, 152, 219, 0.1);
  border-radius: 6px;
  padding: 6px;
  transition: all 0.3s ease;
}

.submenu-item:hover .menu-icon {
  background: rgba(52, 152, 219, 0.2);
}

.submenu-item.active .menu-icon {
  background: rgba(255, 255, 255, 0.2);
}

.collapse {
  transition: all 0.3s ease;
}

.collapse.show {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

.sidebar .list-group-item {
    background-color: #f1f4ff;
  border: none;
  padding: 10px 12px;
  color: #333;
  font-weight: 500;
  transition: all 0.15s ease;
  text-align: right;
  display: flex;
  justify-content: space-between;
  border-radius: 8px !important;
  margin-bottom: 4px;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.sidebar .list-group-item::before {
  display: none;
}

.menu-icon {
  width: 30px !important;
  height: 30px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(52, 152, 219, 0.1);
  border-radius: 6px;
  margin-left: 0;
  transition: all 0.15s ease;
}

.sidebar .list-group-item:hover .menu-icon {
  background: rgba(255, 255, 255, 0.2);
}

.sidebar .list-group-item.active .menu-icon {
  background: rgba(255, 255, 255, 0.2);
}

.menu-text {
  font-weight: 500;
  transition: all 0.15s ease;
  text-align: right;
}

.menu-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.add-customer-container {
  min-height: 100vh;
  padding: 1rem 0;
  background: #f8f9fa;
}

.customer-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
  margin: 1rem auto;
  max-width: 500px;
  border: 1px solid #e9ecef;
  animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

.card-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.card-header::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  border-radius: 2px;
}

.card-title {
  color: #2c3e50;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card-subtitle {
  color: #7f8c8d;
  font-size: 1rem;
  font-weight: 400;
}

.form-control::placeholder {
  color: #95a5a6;
  opacity: 0.7;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 55px;
  transform: translateY(-50%);
  color: #95a5a6;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  line-height: 1;
}

.form-control:focus + .input-icon {
  color: #667eea;
}

.form-control.has-icon {
  padding-left: 2.8rem;
}

.info-box {
  background: linear-gradient(45deg, #f8f9fa, #e9ecef);
  border-radius: 12px;
  padding: 1.2rem;
  margin: 1.5rem 0;
  border-right: 3px solid #667eea;
}

.info-title {
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  color: #5a6c7d;
  margin-bottom: 0.6rem;
  padding-right: 1.2rem;
  position: relative;
  line-height: 1.5;
  font-size: 0.9rem;
}

.info-list li::before {
  content: '✓';
  position: absolute;
  right: 0;
  top: 0;
  color: #27ae60;
  font-weight: bold;
  font-size: 1rem;
}

.btn-back {
  background: linear-gradient(45deg, #95a5a6, #7f8c8d);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 140px;
  justify-content: center;
  font-size: 0.9rem;
}

.btn-back:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(149, 165, 166, 0.3);
  color: white;
  text-decoration: none;
}

.btn-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-submit:hover::before {
  left: 100%;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.loading-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.invalid-feedback {
  display: block;
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: 0.4rem;
  font-weight: 500;
}

.invoice-table {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(52, 152, 219, 0.07);
  margin-top: 2rem;
}

.invoice-table th, .invoice-table td {
  text-align: center;
  vertical-align: middle;
}

.invoice-table th {
  background: #f8f9fa;
  color: #0056b3;
  font-weight: 700;
}

.invoice-table tr:hover {
  background: #f0f6ff;
}
.datepicker-container{
    display: none;
}
.pwt-datepicker-container,
.pwt-datepicker-container * {

  font-family: 'iransans', Tahoma, Arial, sans-serif !important;
  font-size: 13px !important;
  box-sizing: border-box;
}

.pwt-datepicker-container {
  direction: rtl !important;
  min-width: 250px !important;
  max-width: 320px !important;
  z-index: 99999 !important;
}

.pwt-datepicker-header-custom span,
.pwt-datepicker-days span,
.pwt-datepicker-time span {
  font-size: 13px !important;
  padding: 2px 4px !important;
}

.pwt-datepicker-day-name {
  min-width: 24px !important;
  max-width: 32px !important;
  text-align: center !important;
}

#category_sidebar {
  max-height: 500px;
  overflow-y: auto;
}

.category-section {
  margin-bottom: 2rem;
  background: #f8f9fa;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(52, 152, 219, 0.07);
  padding: 1.2rem 1.5rem;
}

.category-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #0056b3;
}

.product-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.product-item {
  cursor: pointer;
  background: #fff;
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  min-width: 180px;
  flex: 1 1 calc(33% - 1rem);
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.08);
  font-size: 1.1rem;
  font-weight: bold;
  border: 2px solid #e9ecef;
  transition: all 0.2s;
  box-sizing: border-box;
  flex-direction: column;
  align-items: flex-start;
  display: inline-flex;
    width: fit-content;
}

.product-item:hover {
  background: #e3f2fd;
  border-color: #3498db;
  box-shadow: 0 4px 16px rgba(52, 152, 219, 0.15);
}

.search-global {
  margin-bottom: 2rem;
  max-width: 400px;
  border-radius: 10px;
  border: 2px solid #3498db;
}

.preview-table th, .preview-table td {
  vertical-align: middle;
  text-align: center;
}

.preview-table {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(52, 152, 219, 0.07);
}

.qty-btn {
  font-size: 1.1rem;
  padding: 0rem 0.7rem;
}

.btn-modern-primary {
  background: linear-gradient(45deg, #3498db, #2980b9);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
}

.btn-modern-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
  color: white;
  background: linear-gradient(45deg, #2980b9, #3498db);
}

.btn-modern-danger {
  background: linear-gradient(45deg, #e74c3c, #c0392b);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
}

.btn-modern-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
  background: linear-gradient(45deg, #c0392b, #e74c3c);
}

@media (max-width: 900px) {
.product-item {
  min-width: 100px;
  max-width: 48%;
}

}

@media (max-width: 600px) {
.product-item {
  min-width: 100px;
  max-width: 100%;
}

}

.receipt-container {
  width: 7cm;
  max-width: 100%;
  margin: 2rem auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(52, 152, 219, 0.07);
}

.receipt-title {
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.receipt-info {
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: #555;
}

.receipt-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.receipt-table th, .receipt-table td {
  border-bottom: 1px dashed #bbb;
  padding: 0.4rem 0.2rem;
  font-size: 0.95rem;
  text-align: center;
}

.receipt-table th {
  background: #f8f9fa;
  color: #0056b3;
  font-weight: 700;
}

.receipt-summary {
  font-size: 1.05rem;
  font-weight: bold;
  text-align: right;
  margin-top: 1rem;
}

.receipt-summary span {
  float: left;
}

.receipt-footer {
  text-align: center;
  font-size: 0.9rem;
  color: #888;
  margin-top: 1.5rem;
}

.btn-print {
  background: linear-gradient(45deg, #3498db, #2980b9);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  margin: 0 auto 1rem;
  display: block;
}

.btn-print:hover {
  background: linear-gradient(45deg, #2980b9, #3498db);
}

@media screen and (max-width: 991.98px), (max-width: 970px), (max-width: 900px), (max-width: 768px), (max-width: 767.98px), (max-width: 767px), (max-width: 600px), (max-width: 576px), (max-width: 575.98px) {
.image_login img {
  display: none;
}

.custom-content {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin: 50px auto;
}

.custom-standard,
    .custom-business {
  margin-top: 25px;
}

.dashboard-container {
  padding: 1rem;
}

.subscription-cart {
  gap: 1rem;
}

.custom-box {
  width: 100%;
  max-width: 300px;
}

.page-title {
  font-size: 1.5rem;
}

.form-title {
  font-size: 1.6rem;
}

.form-section {
  padding: 1.5rem;
}

.submit-btn {
  width: 100%;
}

.note-title {
  font-size: 1.5rem;
}

.note-form {
  padding: 1.5rem;
}

.note-table {
  font-size: 0.9rem;
}

.note-actions {
  flex-direction: column;
}

.search-container {
  padding: 0 0.5rem;
}

.search-input {
  font-size: 1rem;
  padding: 0.8rem 1.2rem;
  padding-right: 3rem;
}

.table-modern {
  font-size: 0.9rem;
}

.table-modern .btn-modern {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.settings-container {
  padding: 1rem;
  margin: 0.5rem;
}

.settings-section {
  padding: 1rem;
}

.section-title {
  font-size: 1.2rem;
}

.color-picker-container {
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}

.scaled-iframe {
  height: 300px;
}

.login-container {
  padding: 1rem;
  min-height: 100vh;
}

.login-card {
  padding: 1.5rem;
  margin: 0.5rem;
  border-radius: 15px;
}

.login-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}

.login-card .form-control {
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
}

.btn-login, .btn-register {
  padding: 0.7rem 1.5rem;
  font-size: 0.95rem;
}

.register-container,
    .forgot-password-container {
  padding: 1rem;
}

.register-card,
    .forgot-password-card {
  padding: 1.5rem;
  max-width: 400px;
}

.register-card h2,
    .forgot-password-card h2 {
  font-size: 1.75rem;
}

.reset-password-container {
  padding: 1rem;
}

.reset-password-card {
  padding: 1.5rem;
  margin: 0.5rem;
}

.reset-password-card h2 {
  font-size: 1.5rem;
}

.reset-password-card .form-control {
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
}

.reset-password-card .btn-primary {
  padding: 0.7rem 1.5rem;
  font-size: 0.95rem;
}

.verify-container {
  padding: 1rem;
}

.verify-card {
  padding: 1.5rem;
  margin: 0.5rem;
}

.verify-card h2 {
  font-size: 1.5rem;
}

.verify-message {
  font-size: 1rem;
}

.verify-input {
  font-size: 1.1rem;
  padding: 0.8rem;
}

.btn-verify {
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
}

.add-customer-container {
  padding: 0.5rem 0;
}

.customer-card {
  padding: 2rem;
  margin: 0.5rem;
  border-radius: 15px;
}

.card-title {
  font-size: 1.6rem;
}

.btn-group {
  flex-direction: column;
  gap: 0.6rem;
}

.btn-back, .btn-submit {
  width: 100%;
  min-width: auto;
}

.product-item {
  min-width: 100px;
}

.submenu-item {
  padding-left: 2rem !important;
  margin-right: 0.5rem;
}

.menu-section .list-group-item {
  padding: 8px 10px;
  font-size: 0.85rem;
}

.dropdown-arrow {
  width: 10px;
  height: 10px;
}

}

.profit-loss-container {
  min-height: 100vh;
  padding: 1rem 0;
  font-family: 'iransans', sans-serif;
  background: #f8f9fa;
}

.header-section {
  background: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
}

.main-title {
  font-size: 2rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.title-icon {
  color: #495057;
  font-size: 1.5rem;
}

.subtitle {
  color: #6c757d;
  font-size: 1rem;
  margin: 0;
}

.btn-gradient-primary {
  background: #007bff;
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-gradient-primary:hover {
  background: #0056b3;
  color: white;
  transform: none;
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.btn-gradient-secondary {
  background: #6c757d;
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-gradient-secondary:hover {
  background: #545b62;
  color: white;
  transform: none;
  box-shadow: 0 2px 4px rgba(108, 117, 125, 0.2);
}

.filter-section {
  background: #f8f9fa;
  border-radius: 0.375rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.filter-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
}

.modern-input {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.modern-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  outline: none;
}

.quick-filters {
  margin-top: 1rem;
}

.filter-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: #667eea;
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.filter-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
  color: white;
}

.stats-section {
  margin-bottom: 1.5rem;
}

.revenue-card .stat-icon {
  background: #007bff;
}

.profit-card .stat-icon {
  background: #28a745;
}

.percentage-card .stat-icon {
  background: #17a2b8;
}

.invoice-card .stat-icon {
  background: #6c757d;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 0.5rem;
}

.stat-unit {
  font-size: 0.875rem;
  color: #a0aec0;
}

.stat-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #dee2e6;
}

.charts-section {
  margin-bottom: 1.5rem;
}

.chart-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
  height: 100%;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.chart-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chart-title h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #212529;
  margin: 0;
}

.chart-title i {
  color: #495057;
  font-size: 1.1rem;
}

.chart-btn {
  background: none;
  border: none;
  color: #495057;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chart-btn:hover {
  transform: scale(1.05);
}

.chart-container {
  position: relative;
  height: 300px;
  width: 100%;
}

.details-section {
  margin-bottom: 1.5rem;
}

.detail-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
  height: 100%;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.detail-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-title h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #212529;
  margin: 0;
}

.detail-title i {
  color: #495057;
  font-size: 1.1rem;
}

.detail-badge .badge {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

.modern-table {
  border: none;
  background: transparent;
}

.modern-table thead th {
  background: #667eea;
  color: white;
  border: none;
  padding: 1rem;
  font-weight: 600;
  border-radius: 12px 12px 0 0;
}

.modern-table tbody td {
  border: none;
  padding: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.modern-table tbody tr:hover {
  background: rgba(102, 126, 234, 0.05);
}

.product-name, .category-name {
  font-weight: 600;
  color: #2d3748;
}

.category-badge {
  background: #667eea;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.quantity-badge {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.revenue-amount, .expense-amount {
  font-weight: 600;
  color: #2d3748;
}

.item-count {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.breakdown-section {
  margin-bottom: 1.5rem;
}

.breakdown-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
}

.breakdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.breakdown-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.breakdown-title h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0;
}

.breakdown-title i {
  color: #667eea;
  font-size: 1.5rem;
}

.summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  border-radius: 12px;
  color: white;
}

.summary-value {
  font-size: 1.25rem;
  font-weight: 700;
}

.financial-section {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.section-header {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-header h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0;
}

.section-header i {
  font-size: 1.125rem;
}

.revenue-section .section-header i {
  color: #48bb78;
}

.expense-section .section-header i {
  color: #f56565;
}

.financial-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.financial-item:last-child {
  border-bottom: none;
}

.item-label {
  font-weight: 500;
  color: #4a5568;
}

.item-value {
  font-weight: 600;
}

.item-value.positive {
  color: #48bb78;
}

.item-value.negative {
  color: #f56565;
}

.profit-summary {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid rgba(0, 0, 0, 0.1);
}

.profit-item {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
}

.profit-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.gross-profit .profit-icon {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.net-profit .profit-icon {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.profit-content h5 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.profit-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
  display: block;
  margin-bottom: 0.25rem;
}

.profit-content small {
  color: #718096;
  font-size: 0.875rem;
}

.animate__animated {
  animation-duration: 0.8s;
}

.animate__fadeInDown {
  animation-delay: 0.1s;
}

.animate__fadeInUp {
  animation-delay: 0.2s;
}

#sidebar-toggle-btn-container {
  display: block;
  width: 100%;
  text-align: left;
  margin: 8px 0 8px 0;
}

#sidebar-toggle-btn {
  color: #333;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.2s;
  outline: none;
  right: 16%;
  width: 40px;
  height: 15%;
  top: 0;
  z-index: 999;
  background-color: #ffffff;
  border-radius: 100% 0 0 100%;
}

#sidebar-toggle-btn:hover {
  background: #d1d8e0;
}

@media (max-width: 991.98px) {
.login-image-container {
  padding: 1.5rem;
}

.login-image {
  max-width: 90%;
}

.register-card,
    .forgot-password-card {
  padding: 2rem;
  max-width: 450px;
}

.register-image,
    .forgot-password-image {
  max-width: 60%;
}

.reset-password-card {
  padding: 1.5rem;
}

.reset-password-image {
  max-width: 60%;
}

.verify-card {
  padding: 2rem;
}

#sidebar-toggle-btn-container {
  display: none;
}

}

@media (min-width: 992px) {
#sidebar.sidebar-hidden {
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  overflow: hidden !important;
}

.sidebar-collapsed-fullwidth {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  margin: 0 !important;
  float: none !important;
  transition: width 0.2s ease;
}

}

@media (min-width: 1000px) {
#sidebar {
  transition: all 0.3s;
}

#sidebar-toggle-btn {
  transition: all 0.3s;
}

.col-md-9.col-lg-10.ml-md-auto.px-0.ms-md-auto.start-0.float-lg-start.float-md-start,
    .sidebar-collapsed-fullwidth {
  transition: width 0.3s ease, max-width 0.3s ease, flex-basis 0.3s ease, margin 0.3s ease;
}

#sidebar.sidebar-hidden {
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  overflow: hidden !important;
}

}

body > div.col-md-9.col-lg-10.ml-md-auto.px-0.ms-md-auto.start-0.float-lg-start.float-md-start.sidebar-collapsed-fullwidth {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 50px;
  color: #fff !important;
  font-size: 15px;
  padding: 4px 12px 4px 10px;
  margin: 0 2px;
  border: none;
  transition: background 0.2s;
  background: #e0e6ed;
}

.action-edit {
  background: #28a745 !important;
}

.action-delete {
  background: #6c757d !important;
}

.action-in {
  background: #007bff !important;
}

.action-out {
  background: #dc3545 !important;
}

.action-btn i {
  color: #fff !important;
  font-size: 16px;
}

.action-label {
  display: inline-block;
  margin-right: 4px;
  font-size: 13px;
  font-weight: 500;
}

#loadingOverlay {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.7);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

#loadingOverlay .spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #007bff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }

}

#select_all {
  cursor: pointer;
  transform: scale(1.2);
  margin: 0;
}

.row-checkbox {
  cursor: pointer;
  transform: scale(1.1);
}

.selection-counter {
  background: #007bff;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  margin-left: 10px;
}

.table tbody tr.selected-row {
  background-color: #e3f2fd !important;
}

.row-checkbox:checked + td {
  transition: background-color 0.3s ease;
}

.clear-selections-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  margin-left: 10px;
}

.clear-selections-btn:hover {
  background: #c82333;
}

#select_all:indeterminate {
  background-color: #ffc107;
  border-color: #ffc107;
}

.row-checkbox:checked {
  accent-color: #007bff;
}

#select_all:checked {
  accent-color: #007bff;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
  position: relative;
}

.selection-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.loading-selections {
  opacity: 0.6;
  pointer-events: none;
}

.table-container {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  transition: opacity 0.3s ease;
}

.selection-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #28a745;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  z-index: 1000;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }

}

.action-buttons .btn {
  font-size: 12px;
  padding: 4px 8px;
}

.search-filter-container {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 25px;
  border: 1px solid #dee2e6;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.search-filter-form {
  margin: 0;
}

.search-input-group {
  direction: ltr;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 12px 50px 12px 25px;
  padding-right: 3.5rem;
  font-size: 14px;
  color: #2c3e50;
  background: #fff;
  border: 2px solid #dee2e6;
  border-radius: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-indent: 40px;
}

.search-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.filter-select {
  border-radius: 25px;
  border: 2px solid #dee2e6;
  padding: 12px 20px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: white;
}

.filter-select:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.clear-btn {
  border-radius: 25px;
  padding: 12px 20px;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 2px solid #6c757d;
  color: #6c757d;
  background: white;
}

.clear-btn:hover {
  background: #6c757d;
  color: white;
  border-color: #6c757d;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
}

.stat-note small {
  font-size: 0.75rem;
  opacity: 0.8;
}

.view-selections-btn i {
  font-size: 1.5rem;
}

#selectedCustomersModal .modal-xl {
  max-width: 95%;
}

.selected-customers-info .info-card,
.selected-customers-info .action-card {
  border: 1px solid #dee2e6;
  transition: all 0.3s ease;
}

.selected-customers-info .info-card:hover,
.selected-customers-info .action-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#selectedCustomersModal .table th {
  background-color: #343a40;
  color: white;
  border-color: #495057;
}

#selectedCustomersModal .table td {
  vertical-align: middle;
}

.modal-checkbox {
  cursor: pointer;
}

#selectedCustomersModal .btn {
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  transition: all 0.3s ease;
}

#selectedCustomersModal .btn:hover {
  transform: translateY(-1px);
}

.btn-group-vertical .btn {
  margin-bottom: 5px;
  border-radius: 15px;
  font-size: 13px;
  padding: 10px 15px;
  transition: all 0.3s ease;
}

.btn-group-vertical .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.remove-customer-btn {
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.remove-customer-btn:hover {
  transform: scale(1.1);
  background-color: #dc3545;
  border-color: #dc3545;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.stats-container {
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.stat-icon {
  position: absolute;
  top: 2rem;
  right: 1rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  margin-bottom: 0.5rem;
  opacity: 0.9;
  text-align: center;
}

.stat-content {
  margin-top: 1rem;
  flex: 1;
  text-align: center;
}

.stat-note {
  margin-top: 0.5rem;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  opacity: 0.8;
}

.table-responsive {
  overflow: scroll !important;
  max-height: 70vh;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.table {
  position: relative;
  width: 100%;
  margin-bottom: 0;
}

.table thead th {
  background: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
  color: #495057;
  background-color: #f8f9fa;
  padding: 1rem 0.75rem;
}

.table tbody td {
  padding: 1rem 0.75rem;
  vertical-align: middle;
}

.table tbody tr:hover {
  background-color: #f8f9fa;
  transition: background-color 0.2s ease;
}

.selection-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.view-selections-btn {
  border-radius: 15px;
  padding: 1rem;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 2px dashed #007bff;
  color: #007bff;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
}

.view-selections-btn:hover {
  background: #007bff;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 123, 255, 0.3);
  border-color: #0056b3;
}

.select-all-btn {
  border-radius: 15px;
  padding: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid #28a745;
  background: linear-gradient(135deg, #f8fff9 0%, #e8f5e8 100%);
  color: #28a745;
}

.select-all-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(40, 167, 69, 0.3);
  border-color: #1e7e34;
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
  color: white;
}

.select-all-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.sms-form-container {
  margin-top: 2rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1000;
}

#sms_form {
  background: rgba(255, 255, 255, 0.95);
  /* backdrop-filter: blur(10px); - Removed for mobile performance */
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin: 2rem auto;
  max-width: 100%;
  position: relative;
  min-height: 400px;
}

#sms_form.show {
  animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

.sms-form-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid #e9ecef;
}

.sms-form-header {
  background: #007bff;
  color: white;
  padding: 2rem;
  text-align: center;
}

.sms-form-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.sms-form-info {
  margin-top: 1rem;
}

.selected-count-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  /* backdrop-filter: blur(10px); - Removed for mobile performance */
}

.sms-form-body {
  padding: 2rem;
}

.sms-textarea {
  border-radius: 15px;
  border: 2px solid #e9ecef;
  padding: 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  resize: vertical;
  min-height: 120px;
}

.sms-textarea:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-text {
  font-size: 0.85rem;
  color: #6c757d;
  margin-top: 0.5rem;
}

.sms-preview {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 1.5rem;
  border: 2px dashed #dee2e6;
}

.preview-title {
  color: #495057;
  margin-bottom: 1rem;
  font-weight: 600;
}

.preview-content {
  background: white;
  border-radius: 10px;
  padding: 1rem;
  min-height: 80px;
  border: 1px solid #e9ecef;
}

.preview-placeholder {
  color: #adb5bd;
  font-style: italic;
  text-align: center;
  padding: 1rem;
}

.sms-warning {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 15px;
  padding: 1.5rem;
}

.warning-header {
  color: #856404;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.warning-list {
  margin: 0;
  padding-left: 1.5rem;
  color: #856404;
}

.warning-list li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.sms-cost-calculator {
  background: #e3f2fd;
  border: 1px solid #bbdefb;
  border-radius: 15px;
  padding: 1.5rem;
}

.calculator-title {
  color: #1976d2;
  margin-bottom: 1rem;
  font-weight: 600;
}

.calculator-content {
  background: white;
  border-radius: 10px;
  padding: 1rem;
}

.cost-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e9ecef;
}

.cost-item:last-child {
  border-bottom: none;
}

.cost-label {
  color: #495057;
  font-weight: 500;
}

.cost-value {
  color: #007bff;
  font-weight: 600;
  font-size: 1.1rem;
}

.sms-form-footer {
  background: #f8f9fa;
  padding: 1.5rem 2rem;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.sms-form-footer .btn {
  border-radius: 25px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.sms-form-footer .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#proceed-to-sms {
  background: linear-gradient(45deg, #007bff, #0056b3);
  border: none;
  color: white;
}

#proceed-to-sms:hover {
  background: linear-gradient(45deg, #0056b3, #004085);
  color: white;
}

.rating-form-container {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.rating-form-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid #e9ecef;
}

.rating-form-header {
  background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
  color: white;
  padding: 2rem;
  text-align: center;
}

.rating-form-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.rating-form-info {
  margin-top: 1rem;
}

.rating-form-body {
  padding: 2rem;
}

.rating-textarea {
  border-radius: 15px;
  border: 2px solid #e9ecef;
  padding: 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  resize: vertical;
  min-height: 120px;
}

.rating-textarea:focus {
  border-color: #ffc107;
  box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.rating-warning {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 15px;
  padding: 1.5rem;
}

.rating-warning .warning-header {
  color: #856404;
  font-weight: 600;
  margin-bottom: 1rem;
}

.rating-warning .warning-list {
  margin: 0;
  padding-right: 1.5rem;
  color: #856404;
}

.rating-warning .warning-list li {
  margin-bottom: 0.5rem;
}

.rating-form-footer {
  background: #f8f9fa;
  padding: 1.5rem 2rem;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.rating-form-footer .btn {
  border-radius: 25px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.rating-form-footer .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.checks-container {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 24px;
  margin-bottom: 24px;
}

.check-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
  border: 2px solid #e9ecef;
  height: 100%;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #343a40;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.stat-card.success {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card.warning {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.stat-card.danger {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.stat-card.info {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.stat-number {
  margin: 0 0 5px 0;
  font-size: 28px;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  font-weight: 500;
  color: snow;
  margin-bottom: 5px;
  opacity: 0.9;
  display: block;
}

.check-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.check-form {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 24px;
  margin-bottom: 24px;
}

.form-section-title {
  color: #495057;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e9ecef;
}

.check-owner-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 20px;
  margin-bottom: 16px;
  transition: transform 0.2s ease;
}

.check-owner-card:hover {
  transform: translateY(-2px);
}

.owner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.owner-type {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.owner-type.individual {
  background: #d4edda;
  color: #155724;
}

.owner-type.company {
  background: #d1ecf1;
  color: #0c5460;
}

.owner-balance {
  text-align: center;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 16px;
}

.balance-positive {
  color: #28a745;
}

.balance-negative {
  color: #dc3545;
}

.balance-zero {
  color: #6c757d;
}

.check-owners-container {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 24px;
  margin-bottom: 24px;
}

.owner-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.owner-stat-card {
  background: white;
  color: #343a40;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease;
  border: 2px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.owner-stat-card:hover {
  transform: translateY(-2px);
}

.owner-stat-card.success {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.owner-stat-card.warning {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.owner-stat-card.danger {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.owner-stat-card.info {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.owner-stat-number {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 8px;
}

.owner-stat-label {
  font-size: 14px;
  opacity: 0.9;
}

.owners-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.owners-table thead th {
  background: #f8f9fa;
  color: #495057;
  font-weight: 600;
  padding: 12px 16px;
  text-align: right;
  border-bottom: 2px solid #dee2e6;
}

.owners-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #e9ecef;
  vertical-align: middle;
}

.owners-table tbody tr {
  transition: background-color 0.2s ease;
}

.owners-table tbody tr:hover {
  background-color: #f8f9fa;
}

.owner-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.btn-owner-action {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-owner-view {
  background: #007bff;
  color: white;
}

.btn-owner-view:hover {
  background: #0056b3;
  color: white;
}

.btn-owner-edit {
  background: #28a745;
  color: white;
}

.btn-owner-edit:hover {
  background: #1e7e34;
  color: white;
}

.btn-owner-delete {
  background: #dc3545;
  color: white;
}

.btn-owner-delete:hover {
  background: #c82333;
  color: white;
}

.account-balance-container {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 24px;
  margin-bottom: 24px;
}

.balance-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.balance-card {
  background: white;
  color: #343a40;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease;
  border: 2px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.balance-card:hover {
  transform: translateY(-2px);
}

.balance-card.positive {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.balance-card.negative {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.balance-card.zero {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.balance-amount {
  font-size: 28px;
  font-weight: bold;
  color: #495057;
  margin-bottom: 8px;
}

.balance-label {
  font-size: 14px;
  color: #6c757d;
  margin-top: 4px;
  opacity: 0.9;
}

.transaction-form {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 24px;
  margin-bottom: 24px;
}

.transaction-section {
  margin-bottom: 24px;
}

.transaction-section-title {
  font-size: 18px;
  font-weight: 600;
  color: #495057;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e9ecef;
}

.transaction-group {
  margin-bottom: 16px;
}

.transaction-label {
  font-weight: 500;
  color: #495057;
  margin-bottom: 8px;
  display: block;
}

.transaction-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.transaction-control:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.transaction-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 14px;
  background-color: white;
}

.check-card {
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.check-card:hover {
  transform: translateY(-2px);
}

.status-expired {
  color: #ffc107;
  font-weight: bold;
}

.summary-card {
  background: white;
  color: #343a40;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border: 2px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.summary-card.paid {
  background: white;
  border-left: 4px solid #007bff;
}

.summary-card.received {
  background: white;
  border-left: 4px solid #007bff;
}

.summary-card.returned {
  background: white;
  border-left: 4px solid #6c757d;
}

.summary-number {
  font-size: 24px;
  font-weight: bold;
  color: #007bff;
  margin-bottom: 5px;
}

.summary-label {
  font-size: 14px;
  opacity: 0.9;
  color: #6c757d;
}

.amount-high {
  color: #343a40;
  font-weight: bold;
}

.amount-medium {
  color: #6c757d;
  font-weight: bold;
}

.amount-low {
  color: #495057;
  font-weight: bold;
}

.checks-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  margin: 0;
  border: none;
  font-size: 13px;
}

.checks-table thead th {
  background: #f8f9fa;
  color: #495057;
  font-weight: 600;
  padding: 15px 10px;
  text-align: right;
  border-bottom: 2px solid #dee2e6;
  border: none;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.checks-table tbody td {
  padding: 12px 10px;
  border-bottom: 1px solid #f1f3f4;
  vertical-align: middle;
  border: none;
}

.checks-table tbody tr {
  transition: all 0.3s ease;
}

.checks-table tbody tr:hover {
  background-color: #f8f9fa;
  background: #f8f9fa;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.check-number {
  font-weight: 600;
  color: #2c3e50;
  font-family: 'Courier New', monospace;
}

.owner-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.owner-phone {
  color: #6c757d;
  font-size: 11px;
}

.check-amount {
  font-weight: 700;
  color: #007bff;
  font-size: 14px;
}

.check-date {
  color: #6c757d;
  font-size: 11px;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-active {
  background: #e9ecef;
  color: #495057;
  font-weight: bold;
  border: 1px solid #dee2e6;
}

.status-cashed {
  background: #d4edda;
  color: #155724;
  font-weight: bold;
  border: 1px solid #c3e6cb;
}

.status-returned {
  background: #fff3cd;
  color: #856404;
  font-weight: bold;
  border: 1px solid #ffeaa7;
}

.status-cancelled {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.type-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
}

.type-received {
  background: #007bff;
  color: white;
}

.type-paid {
  background: #007bff;
  color: white;
}

.action-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-action {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.btn-view {
  background: #007bff;
  color: white;
  border-radius: 8px;
  font-weight: 600;
  border: none;
}

.btn-view:hover {
  background: #0056b3;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-edit {
  background: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.btn-edit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
  color: white;
  background: #1e7e34;
}

.btn-delete {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.btn-delete:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
  color: white;
  background: #c82333;
}

.table-stats {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 15px 20px;
  border-radius: 0 0 16px 16px;
  font-size: 12px;
  color: #6c757d;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pagination-container {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.pagination {
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
}

.pagination .page-link {
  padding: 8px 12px;
  margin: 0 2px;
  border-radius: 8px;
  border: none;
  color: #495057;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pagination .page-link:hover {
  background: #007bff;
  color: white;
  transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
  background: #007bff;
  color: white;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #f8f9fa;
  border-radius: 12px;
  margin: 3rem 0;
  color: #6c757d;
  font-size: 1.2rem;
}

.empty-state i {
  font-size: 48px;
  color: #dee2e6;
  margin-bottom: 20px;
}

.overdue-warning {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border: 1px solid #ffeaa7;
  color: #856404;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.due-soon-warning {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  border: 1px solid #bee5eb;
  color: #0c5460;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.check-details-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.check-header {
  background: white;
  color: #343a40;
  padding: 30px;
  text-align: center;
  border-bottom: 2px solid #e9ecef;
}

.check-header h2 {
  margin: 0;
  font-weight: 600;
  font-size: 24px;
}

.check-number-display {
  font-family: 'Courier New', monospace;
  font-size: 28px;
  font-weight: 700;
  margin: 10px 0;
}

.check-body {
  padding: 30px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.info-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  border-left: 4px solid #667eea;
}

.info-card h4 {
  color: #2c3e50;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-card h4 i {
  color: #667eea;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 600;
  color: #495057;
}

.info-value {
  color: #2c3e50;
  font-weight: 500;
}

.return-reason {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 10px;
  margin-top: 10px;
}

.check-form-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.form-header {
  background: white;
  color: #343a40;
  padding: 25px;
  text-align: center;
  border-bottom: 2px solid #e9ecef;
}

.form-header h3 {
  margin: 0;
  font-weight: 600;
}

.form-body {
  padding: 30px;
}

.form-section {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 30px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.03);
}

.section-title {
  color: #2c3e50;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 2px solid #e9ecef;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: #007bff;
  border-radius: 3px;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-label {
  color: #495057;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
  font-size: 0.95rem;
  align-items: center;
  gap: 0.5rem;
}

.required-mark {
  color: #dc3545;
  margin-left: 4px;
  margin-right: 4px;
}

.form-control {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 12px 15px;
  transition: all 0.3s ease;
  font-size: 14px;
  background: #f8f9fa;
  color: #2c3e50;
  text-align: right;
  direction: rtl;
  height: 45px;
  width: 100%;
}

.form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
  outline: none;
  background: #fff;
}

.form-select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.file-upload-container {
  background: #fff;
  border: 2px dashed #e9ecef;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.file-upload-container:hover {
  border-color: #667eea;
  background: #f8f9fa;
  background-color: #f8f9fa;
}

.file-upload-container.dragover {
  border-color: #667eea;
  background-color: #e3f2fd;
}

.file-input {
  display: none;
}

.upload-icon {
  font-size: 48px;
  color: #6c757d;
  margin-bottom: 15px;
}

.upload-text {
  color: #6c757d;
  margin-bottom: 10px;
}

.upload-hint {
  font-size: 12px;
  color: #adb5bd;
}

.preview-image {
  max-width: 200px;
  max-height: 200px;
  border-radius: 8px;
  margin-top: 15px;
}

.current-attachment {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  margin-top: 10px;
}

.btn-group {
  direction: ltr;
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

.btn-submit {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 140px;
  justify-content: center;
  position: relative;
  overflow: hidden;
  font-size: 16px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
  color: white;
}

.btn-cancel {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  border: none;
  border-radius: 8px;
  padding: 12px 30px;
  color: white;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
}

.btn-cancel:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(108, 117, 125, 0.3);
  color: white;
}

.owner-select-container {
  position: relative;
}

.owner-info-preview {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  margin-top: 10px;
  border: 1px solid #e9ecef;
}

.owner-info-preview.hidden {
  display: none;
}

.owner-name {
  font-size: 13px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 5px;
}

.owner-details {
  font-size: 12px;
  color: #6c757d;
}

.amount-input-group {
  position: relative;
}

.amount-suffix {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  font-size: 14px;
}

.amount-input {
  padding-left: 50px;
}

.validation-error {
  color: #dc3545;
  font-size: 12px;
  margin-top: 5px;
}

.form-control.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.15);
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.search-form {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.search-form .form-control {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 10px 15px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.search-form .form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.search-btn {
  position: absolute;
  right: 5px;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: #007bff;
  color: white;
  transition: all 0.3s ease;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 14px;
  min-width: 120px;
  max-width: 200px;
}

.search-btn:hover {
  background: #0056b3;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
  color: white;
}

.btn-success {
  background: #007bff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  color: white;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  min-width: 120px;
  max-width: 200px;
}

.btn-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
  color: white;
}

@media (max-width: 1200px) {
.stat-card {
  padding: 15px 10px;
}

.stat-number {
  font-size: 1.5rem;
}

.stat-icon {
  font-size: 1.5rem;
}

.summary-cards {
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.search-form .row {
  margin: 0;
}

.search-form .col-md-2,
    .search-form .col-md-3,
    .search-form .col-md-6 {
  padding: 0 5px;
  margin-bottom: 10px;
}

}

@media (max-width: 576px) {
.dashboard-container {
  padding: 1rem;
}

.section-title {
  font-size: 1.3rem;
}

.table-modern {
  font-size: 0.8rem;
}

.table-modern th,
    .table-modern td {
  padding: 0.6rem 0.3rem;
}

.btn-modern {
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
}

.main-title {
  font-size: 1.75rem;
}

.stat-value {
  font-size: 1.5rem;
}

.chart-container {
  height: 200px;
}

.profit-item {
  flex-direction: column;
  text-align: center;
}

#selectedCustomersModal .modal-xl {
  max-width: 100%;
  margin: 5px;
}

#selectedCustomersModal .table {
  font-size: 11px;
}

#selectedCustomersModal .btn {
  font-size: 11px;
  padding: 4px 8px;
}

#selectedCustomersModal .modal-title {
  font-size: 16px;
}

.search-filter-container {
  padding: 15px 10px;
}

.search-input {
  padding: 8px 40px 8px 12px;
  font-size: 12px;
}

.search-btn {
  width: 30px;
  height: 30px;
}

.filter-select {
  padding: 8px 12px;
  font-size: 12px;
}

.clear-btn {
  padding: 8px 12px;
  font-size: 12px;
}

.stat-card {
  padding: 12px 8px;
}

.stat-label {
  font-size: 0.75rem;
}

.stat-icon {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.view-selections-btn {
  padding: 12px 8px;
  font-size: 12px;
}

.view-selections-btn i {
  font-size: 1rem;
}

.check-stats {
  grid-template-columns: 1fr;
}

.stat-number {
  font-size: 20px;
}

.owner-stats {
  grid-template-columns: 1fr;
}

.owners-table {
  font-size: 11px;
}

.owners-table thead th,
    .owners-table tbody td {
  padding: 6px 8px;
}

.owner-stat-number {
  font-size: 20px;
}

.balance-amount {
  font-size: 18px;
}

.search-form {
  padding: 10px;
}

.search-form .form-control {
  font-size: 13px;
  padding: 8px 12px;
}

.search-btn,
    .btn-success {
  font-size: 13px;
  padding: 8px 15px;
}

.checks-table {
  font-size: 10px;
}

.checks-table thead th,
    .checks-table tbody td {
  padding: 6px 4px;
}

.status-badge,
    .type-badge {
  font-size: 9px;
  padding: 4px 8px;
}

.btn-action {
  font-size: 9px;
  padding: 3px 6px;
}

}

.dropdown-menu {
  transform: translate(160px,0px) !important;
}

.form-select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 14px;
  background-color: white;
  transition: all 0.3s ease;
  text-indent: 10px;
}

.date-time-display {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 1px solid #dee2e6;
  padding: 0.5rem 0.75rem !important;
  margin: 0;
}

.date-time-display .d-flex {
  gap: 0.5rem;
}

.date-info, .time-info {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.date-time-display small {
  font-size: 0.75rem;
  font-weight: 500;
  color: #495057;
}

.date-time-display svg {
  color: #6c757d;
  flex-shrink: 0;
}

.date-time-display .text-muted {
  color: #6c757d !important;
}

#current-time {
  font-weight: 600;
  color: #495057;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.5px;
}

.global-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  /* backdrop-filter: blur(5px); - Removed for mobile performance */
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.global-loading-overlay.show {
  opacity: 1;
}

.global-loading-content {
  background: white;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s ease-in-out;
}

.global-loading-overlay.show .global-loading-content {
  transform: scale(1);
}

.global-loading-spinner {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.global-loading-spinner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.global-loading-spinner::before {
  content: '';
  width: 60px;
  height: 60px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0d6efd;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: none;
}

.global-loading-spinner.fallback::before {
  display: block;
}

.global-loading-text {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
  font-weight: 600;
}

.global-loading-subtext {
  font-size: 14px;
  color: #666;
}

.global-loading-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #666;
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.global-loading-close:hover {
  background-color: #f8f9fa;
  color: #333;
  transform: scale(1.1);
}

.global-loading-close:active {
  transform: scale(0.95);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.form-loading {
  opacity: 0.6;
  pointer-events: none;
}

.form-loading .btn {
  position: relative;
}

.form-loading .btn::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
.action-label {
  display: none !important;
}

.action-btn {
  padding: 4px 8px;
}

.subscription-cart {
  gap: 1rem;
}

.custom-box {
  width: 100%;
  max-width: 300px;
}

.btn-send-sms {
  position: relative;
  left: auto;
  margin-top: 1rem;
}

.note-title {
  font-size: 1.5rem;
}

.note-form {
  padding: 1.5rem;
}

.note-table {
  font-size: 0.9rem;
}

.note-actions {
  flex-direction: column;
}

.form-container {
  padding: 1.5rem;
}

.form-title {
  font-size: 1.6rem;
}

.form-section {
  padding: 1.5rem;
}

.submit-btn {
  width: 100%;
}

.btn-xs {
  min-width: 28px;
  height: 28px;
  font-size: 0.7rem;
}

.d-flex.gap-1 .btn {
  min-width: 28px;
  height: 28px;
}

.page-title {
  font-size: 1.5rem;
}

.search-container {
  padding: 0 0.5rem;
}

.table-modern .btn-modern {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.settings-container {
  padding: 1rem;
  margin: 0.5rem;
}

.settings-section {
  padding: 1rem;
}

.color-picker-container {
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}

.scaled-iframe {
  height: 300px;
}

.crm-container {
  padding: 1rem;
  margin: 0.5rem;
}

.btn-send-sms, .btn-bulk-rating {
  position: relative;
  left: auto;
  margin-top: 1rem;
  width: 100%;
  margin-right: 0;
}

.sms-form {
  padding: 1rem;
}

.dashboard-container {
  padding: 1.5rem;
  margin: 0rem;
}

.section-title {
  font-size: 1.5rem;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}

.table-modern {
  font-size: 0.9rem;
}

.table-modern th,
    .table-modern td {
  padding: 0.8rem 0.5rem;
}

.btn-modern {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.coffee-shops-badges {
  flex-direction: column;
}

.coffee-shop-badge {
  text-align: center;
}

.submenu-item {
  padding-left: 2rem !important;
  margin-right: 0.5rem;
}

.menu-section .list-group-item {
  padding: 8px 10px;
  font-size: 0.85rem;
}

.dropdown-arrow {
  width: 10px;
  height: 10px;
}

.add-customer-container {
  padding: 0.5rem 0;
}

.customer-card {
  padding: 2rem;
  margin: 0.5rem;
  border-radius: 15px;
}

.card-title {
  font-size: 1.6rem;
}

.btn-back, .btn-submit {
  width: 100%;
  min-width: auto;
}

.profit-loss-container {
  padding: 1rem 0;
}

.header-section {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.main-title {
  font-size: 2rem;
}

.btn-gradient-primary,
    .btn-gradient-secondary {
  width: 100%;
  justify-content: center;
}

.filter-card {
  padding: 1.5rem;
}

.chart-card,
    .detail-card,
    .breakdown-card {
  padding: 1.5rem;
}

.chart-container {
  height: 250px;
}

.modern-table {
  font-size: 0.875rem;
}

.modern-table thead th,
    .modern-table tbody td {
  padding: 0.75rem 0.5rem;
}

.btn-group-vertical .btn {
  font-size: 12px;
  padding: 8px 12px;
}

.remove-customer-btn {
  width: 30px;
  height: 30px;
}

.stats-container .row {
  margin: 0 -0.5rem;
}

.stats-container .col-6 {
  padding: 0 0.5rem;
}

.table thead th,
    .table tbody td {
  padding: 0.5rem 0.25rem;
}

#sms_form {
  margin: 1rem;
  min-height: 300px;
}

.sms-form-header {
  padding: 1.5rem;
}

.sms-form-title {
  font-size: 1.3rem;
}

.sms-form-body {
  padding: 1.5rem;
}

.sms-form-footer {
  padding: 1rem 1.5rem;
  flex-direction: column;
}

.sms-form-footer .btn {
  width: 100%;
  margin-bottom: 0.5rem;
}

.rating-form-header {
  padding: 1.5rem;
}

.rating-form-title {
  font-size: 1.3rem;
}

.rating-form-body {
  padding: 1.5rem;
}

.rating-form-footer {
  padding: 1rem 1.5rem;
  flex-direction: column;
}

.rating-form-footer .btn {
  width: 100%;
  margin-bottom: 0.5rem;
}

#selectedCustomersModal .modal-xl {
  max-width: 98%;
  margin: 10px;
}

#selectedCustomersModal .modal-body {
  padding: 15px;
}

#selectedCustomersModal .table {
  font-size: 12px;
}

#selectedCustomersModal .btn {
  font-size: 12px;
  padding: 6px 12px;
}

.selected-customers-info .row {
  flex-direction: column;
}

.selected-customers-info .col-md-6 {
  margin-bottom: 10px;
}

.selection-info {
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.page-header {
  flex-direction: column;
  gap: 10px;
  text-align: center;
  padding-top: 3rem;
  align-items: flex-start;
}

.table-responsive {
  max-height: 60vh;
  font-size: 14px;
}

.search-filter-container {
  padding: 20px 15px;
}

.search-input-group {
  margin-bottom: 15px;
}

.search-input {
  font-size: 13px;
  padding: 10px 45px 10px 15px;
  padding-right: 3rem;
}

.search-btn {
  width: 35px;
  height: 35px;
}

.filter-select {
  padding: 10px 15px;
  font-size: 13px;
}

.clear-btn {
  padding: 10px 15px;
  font-size: 13px;
}

.stat-card {
  padding: 15px 10px;
  margin-bottom: 10px;
}

.stat-number {
  font-size: 1.4rem;
}

.stat-label {
  font-size: 0.8rem;
}

.stat-note small {
  font-size: 0.7rem;
}

.view-selections-btn {
  padding: 15px 10px;
  font-size: 13px;
}

.view-selections-btn i {
  font-size: 1.2rem;
}

.check-stats {
  grid-template-columns: repeat(2, 1fr);
}

.check-actions {
  flex-direction: column;
  gap: 4px;
}

.check-form {
  padding: 16px;
}

.check-owner-card {
  padding: 16px;
}

.owner-header {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.owner-stats {
  grid-template-columns: repeat(2, 1fr);
}

.owners-table {
  font-size: 12px;
}

.owners-table thead th,
    .owners-table tbody td {
  padding: 8px 12px;
}

.owner-actions {
  flex-direction: column;
  gap: 4px;
}

.btn-owner-action {
  padding: 8px 12px;
  font-size: 11px;
}

.check-owners-container {
  padding: 16px;
}

.account-balance-container {
  padding: 16px;
}

.transaction-form {
  padding: 16px;
}

.check-header {
  padding: 20px;
}

.check-header h2 {
  font-size: 20px;
}

.check-number-display {
  font-size: 24px;
}

.check-body {
  padding: 20px;
}

.info-grid {
  grid-template-columns: 1fr;
  gap: 15px;
}

.info-card {
  padding: 15px;
}

.form-body {
  padding: 20px;
}

.btn-group {
  flex-direction: column;
  gap: 10px;
}

.btn-submit, .btn-cancel {
  width: 100%;
}

.summary-cards {
  grid-template-columns: 1fr;
  gap: 15px;
}

.summary-number {
  font-size: 20px;
}

.search-form {
  padding: 15px;
}

.search-form .row {
  margin: 0;
}

.search-form .col-md-2,
    .search-form .col-md-3,
    .search-form .col-md-6 {
  padding: 0;
  margin-bottom: 10px;
}

.search-btn,
    .btn-success {
  width: 100%;
  max-width: none;
  margin-bottom: 10px;
}

.checks-table {
  font-size: 11px;
}

.checks-table thead th,
    .checks-table tbody td {
  padding: 8px 6px;
}

.action-buttons {
  flex-direction: column;
  width: 100%;
  gap: 4px;
}

.btn-action {
  padding: 4px 8px;
  font-size: 10px;
  width: 100%;
  justify-content: center;
}

.table-stats {
  flex-direction: column;
  gap: 5px;
  text-align: center;
}

.date-time-display {
  padding: 0.4rem 0.6rem !important;
}

.date-time-display small {
  font-size: 0.7rem;
}

.date-time-display svg {
  width: 10px;
  height: 10px;
}

.global-loading-content {
  padding: 30px 20px;
  margin: 20px;
}

}

/* ===== ADMIN DASHBOARD STYLES ===== */

/* Admin Dashboard Specific Styles */
.admin-dashboard-container {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
  padding: 2.5rem;
  max-width: 1400px;
  width: 100%;
}

.admin-search-filters-container {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #e9ecef;
  margin-bottom: 1.5rem;
}

.admin-staff-list {
  max-width: 200px;
}

.admin-staff-list .badge {
  font-size: 0.75rem;
  margin-bottom: 2px;
}

.admin-expiry-date {
  font-weight: 500;
}

.admin-expiry-date.text-danger {
  background-color: #f8d7da;
  padding: 4px 8px;
  border-radius: 4px;
}

.admin-expiry-date.text-warning {
  background-color: #fff3cd;
  padding: 4px 8px;
  border-radius: 4px;
}

.admin-expiry-date.text-success {
  background-color: #d1ecf1;
  padding: 4px 8px;
  border-radius: 4px;
}

.admin-pagination-container {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.admin-table-container {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  margin-top: 2rem;
  overflow-x: auto;
}

.admin-table-modern {
  width: 100%;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 0;
  margin-top: 0;
  min-width: 1000px;
}

.admin-table-modern th {
  background: #f8f9fa;
  color: #2c3e50;
  font-weight: 600;
  padding: 1.2rem 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: right;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-table-modern th:hover {
  background: #e9ecef;
}

.admin-table-modern td {
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
  color: #2c3e50;
  white-space: nowrap;
}

.admin-table-modern tbody tr:hover {
  background: #f8f9fa;
}

.admin-table-modern tbody tr.table-danger {
  background-color: #f8d7da !important;
}

.admin-table-modern tbody tr.table-warning {
  background-color: #fff3cd !important;
}

.admin-table-modern tbody tr.table-danger:hover {
  background-color: #f5c6cb !important;
}

.admin-table-modern tbody tr.table-warning:hover {
  background-color: #ffeaa7 !important;
}

.admin-quick-stats {
  margin-bottom: 1.5rem;
}

.admin-quick-stats .card {
  border: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-quick-stats .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.admin-quick-stats .card-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.admin-quick-stats .card-text {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.admin-active-filters {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #dee2e6;
}

.admin-active-filters small {
  color: #6c757d;
}

.admin-active-filters .badge {
  margin-left: 0.25rem;
  margin-right: 0.25rem;
}

.admin-marketer-badge {
  background: #007bff;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
}

.admin-phone-badge {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
}

.admin-address-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
  display: inline-block;
}

/* Responsive Admin Dashboard */
@media (max-width: 1200px) {
  .admin-quick-stats .card-title {
    font-size: 1.5rem;
  }

  .admin-table-modern {
    min-width: 800px;
  }
}

@media (max-width: 768px) {
  .admin-dashboard-container {
    padding: 1rem;
  }

  .admin-search-filters-container .row {
    margin: 0;
  }

  .admin-search-filters-container .col-md-4,
  .admin-search-filters-container .col-md-3,
  .admin-search-filters-container .col-md-2 {
    margin-bottom: 10px;
  }

  .admin-table-container {
    overflow-x: auto;
  }

  .admin-table-modern {
    min-width: 800px;
  }

  .admin-quick-stats .card-title {
    font-size: 1.5rem;
  }

  .admin-section-title {
    font-size: 1.5rem;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .admin-dashboard-container {
    padding: 1rem;
  }

  .admin-section-title {
    font-size: 1.3rem;
  }

  .admin-table-modern {
    font-size: 0.8rem;
  }

  .admin-table-modern th,
  .admin-table-modern td {
    padding: 0.6rem 0.3rem;
  }

  .admin-quick-stats .card-title {
    font-size: 1.4rem;
  }
}

/* ===== INLINE STYLES FROM BLADE FILES ===== */

/* Products Page Styles */
.filter-section {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.filter-section h5 {
  margin-bottom: 15px;
  color: #495057;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  align-items: end;
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-group label {
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
  color: #495057;
}

.filter-group input,
.filter-group select {
  border-radius: 6px;
  border: 1px solid #ced4da;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.filter-group input:focus,
.filter-group select:focus {
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.sortable-header {
  cursor: pointer;
  user-select: none;
  position: relative;
}

.sortable-header:hover {
  background-color: #f8f9fa;
}

.sort-icon {
  margin-right: 5px;
  transition: transform 0.2s;
}

.sort-icon.asc {
  transform: rotate(180deg);
}

.sort-icon.desc {
  transform: rotate(0deg);
}

.table-container {
  margin-bottom: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  overflow: hidden;
}

.table-modern {
  margin-bottom: 0;
}

.table-modern thead th {
  background: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
  color: #495057;
  padding: 12px 8px;
}

.table-modern tbody td {
  padding: 12px 8px;
  vertical-align: middle;
  border-bottom: 1px solid #dee2e6;
}

.table-modern tbody tr:hover {
  background-color: #f8f9fa;
}

.pagination-container {
  margin-top: 30px;
  padding: 20px 0;
  border-top: 1px solid #dee2e6;
}


.product-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-name {
  font-weight: 600;
  color: #212529;
}

.product-price {
  color: #28a745;
  font-weight: 500;
}

.product-purchase-price {
  color: #dc3545;
  font-weight: 500;
}

.product-description {
  color: #6c757d;
  font-size: 0.875rem;
}

.category-badge {
  display: inline-block;
  padding: 4px 8px;
  background: #e9ecef;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #495057;
}

.priority-badge {
  display: inline-block;
  padding: 4px 8px;
  background: #007bff;
  color: white;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.properties-list {
  max-width: 300px;
}

.property-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  background: #f8f9fa;
  border-radius: 4px;
  margin-bottom: 4px;
  font-size: 0.75rem;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
}

/* Calculator Modal Styles */
.calculator-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.calculator-content {
  position: absolute;
  background-color: #fefefe;
  margin: 3% auto;
  padding: 0;
  border: 1px solid #888;
  width: 400px;
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  animation: calculatorSlideIn 0.3s ease-out;
}

@keyframes calculatorSlideIn {
  from {
    transform: translateY(-100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.calculator-header {
  background: #667eea;
  color: white;
  padding: 20px;
  border-radius: 15px 15px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: move;
}

.calculator-header h5 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.btn-close-calculator {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.btn-close-calculator:hover {
  background-color: rgba(255,255,255,0.2);
}

.calculator-body {
  padding: 20px;
}

.calculator-display {
  margin-bottom: 20px;
}

.calculator-display input {
  width: 100%;
  padding: 15px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 24px;
  text-align: right;
  background-color: #f8f9fa;
  font-family: 'Courier New', monospace;
}

.calculator-history {
  margin-top: 5px;
  font-size: 12px;
  color: #6c757d;
  text-align: right;
  min-height: 20px;
}

/* Invoice and Customer Styles */
.invoice-container {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  margin: 1rem;
}

.invoice-header {
  background: #667eea;
  color: white;
  padding: 2rem;
  border-radius: 15px 15px 0 0;
  text-align: center;
}

.invoice-title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
}

.invoice-subtitle {
  margin-top: 0.5rem;
  opacity: 0.9;
}

.invoice-body {
  padding: 2rem;
}

.invoice-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.invoice-info-item {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 10px;
  border-left: 4px solid #667eea;
}

.invoice-info-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
}

.invoice-info-value {
  color: #2c3e50;
  font-size: 1.1rem;
}

.invoice-table {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.invoice-table th {
  background: #f8f9fa;
  color: #495057;
  font-weight: 600;
  padding: 1rem;
  border: none;
  text-align: right;
}

.invoice-table td {
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.invoice-summary {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.invoice-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #dee2e6;
  font-size: 1.1rem;
  font-weight: 600;
}

.invoice-total:last-child {
  border-bottom: none;
  font-size: 1.3rem;
  color: #667eea;
}

.invoice-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-invoice {
  padding: 0.8rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-print-invoice {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
}

.btn-print-invoice:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
  color: white;
}

.btn-edit-invoice {
  background: #007bff;
  color: white;
  border: none;
}

.btn-edit-invoice:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
  color: white;
}

/* Customer Management Styles */
.customer-form {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
  margin: 1rem auto;
  max-width: 600px;
}

.customer-form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.customer-form-title {
  color: #2c3e50;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.customer-form-subtitle {
  color: #7f8c8d;
  font-size: 1rem;
}

.customer-form-group {
  margin-bottom: 1.5rem;
}

.customer-form-label {
  color: #495057;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.customer-form-control {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.customer-form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
  outline: none;
  background: #fff;
}

.customer-form-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.btn-customer {
  padding: 12px 2rem;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  min-width: 120px;
}

.btn-customer-primary {
  background: #667eea;
  color: white;
}

.btn-customer-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
  color: white;
}

.btn-customer-secondary {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  color: white;
}

.btn-customer-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
  color: white;
}

/* Category Management Styles */
.category-form {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
  margin: 1rem auto;
  max-width: 500px;
}

.category-form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.category-form-title {
  color: #2c3e50;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.category-form-subtitle {
  color: #7f8c8d;
  font-size: 1rem;
}

.category-form-group {
  margin-bottom: 1.5rem;
}

.category-form-label {
  color: #495057;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.category-form-control {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.category-form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
  outline: none;
  background: #fff;
}

.category-form-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.btn-category {
  padding: 12px 2rem;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  min-width: 120px;
}

.btn-category-primary {
  background: #667eea;
  color: white;
}

.btn-category-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
  color: white;
}

.btn-category-secondary {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  color: white;
}

.btn-category-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
  color: white;
}

/* Expense Management Styles */
.expense-container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
  margin: 1rem;
}

.expense-header {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
  padding: 2rem;
  border-radius: 20px 20px 0 0;
  text-align: center;
}

.expense-title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
}

.expense-subtitle {
  margin-top: 0.5rem;
  opacity: 0.9;
}

.expense-body {
  padding: 2rem;
}

.expense-form {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.expense-form-group {
  margin-bottom: 1.5rem;
}

.expense-form-label {
  color: #495057;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.expense-form-control {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.expense-form-control:focus {
  border-color: #e74c3c;
  box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
  outline: none;
}

.expense-form-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.btn-expense {
  padding: 12px 2rem;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  min-width: 120px;
}

.btn-expense-primary {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
}

.btn-expense-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
  color: white;
}

.btn-expense-secondary {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  color: white;
}

.btn-expense-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
  color: white;
}

.expense-table {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.expense-table th {
  background: #f8f9fa;
  color: #495057;
  font-weight: 600;
  padding: 1rem;
  border: none;
  text-align: right;
}

.expense-table td {
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.expense-summary {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.expense-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #dee2e6;
  font-size: 1.1rem;
  font-weight: 600;
}

.expense-total:last-child {
  border-bottom: none;
  font-size: 1.3rem;
  color: #e74c3c;
}

/* Stocktaking Styles */
.stocktaking-container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
  margin: 1rem;
}

.stocktaking-header {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  color: white;
  padding: 2rem;
  border-radius: 20px 20px 0 0;
  text-align: center;
}

.stocktaking-title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
}

.stocktaking-subtitle {
  margin-top: 0.5rem;
  opacity: 0.9;
}

.stocktaking-body {
  padding: 2rem;
}

.stocktaking-form {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.stocktaking-form-group {
  margin-bottom: 1.5rem;
}

.stocktaking-form-label {
  color: #495057;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.stocktaking-form-control {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.stocktaking-form-control:focus {
  border-color: #f39c12;
  box-shadow: 0 0 0 0.2rem rgba(243, 156, 18, 0.25);
  outline: none;
}

.stocktaking-form-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.btn-stocktaking {
  padding: 12px 2rem;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  min-width: 120px;
}

.btn-stocktaking-primary {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  color: white;
}

.btn-stocktaking-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
  color: white;
}

.btn-stocktaking-secondary {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  color: white;
}

.btn-stocktaking-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
  color: white;
}

/* Warehouse Styles */
.warehouse-container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
  margin: 1rem;
}

.warehouse-header {
  background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
  color: white;
  padding: 2rem;
  border-radius: 20px 20px 0 0;
  text-align: center;
}

.warehouse-title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
}

.warehouse-subtitle {
  margin-top: 0.5rem;
  opacity: 0.9;
}

.warehouse-body {
  padding: 2rem;
}

.warehouse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.warehouse-card {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 1.5rem;
  border-left: 4px solid #9b59b6;
  transition: all 0.3s ease;
}

.warehouse-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(155, 89, 182, 0.2);
}

.warehouse-card-title {
  color: #2c3e50;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.warehouse-card-content {
  color: #495057;
  line-height: 1.6;
}

/* Profit Loss Styles */
.profit-loss-container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
  margin: 1rem;
}

.profit-loss-header {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  color: white;
  padding: 2rem;
  border-radius: 20px 20px 0 0;
  text-align: center;
}

.profit-loss-title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
}

.profit-loss-subtitle {
  margin-top: 0.5rem;
  opacity: 0.9;
}

.profit-loss-body {
  padding: 2rem;
}

.profit-loss-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.profit-loss-stat {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  border-left: 4px solid #27ae60;
}

.profit-loss-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #27ae60;
  margin-bottom: 0.5rem;
}

.profit-loss-stat-label {
  color: #495057;
  font-weight: 600;
}

.profit-loss-chart {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.profit-loss-table {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.profit-loss-table th {
  background: #f8f9fa;
  color: #495057;
  font-weight: 600;
  padding: 1rem;
  border: none;
  text-align: right;
}

.profit-loss-table td {
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

/* Online Orders Styles */
.online-orders-container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
  margin: 1rem;
}

.online-orders-header {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  padding: 2rem;
  border-radius: 20px 20px 0 0;
  text-align: center;
}

.online-orders-title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
}

.online-orders-subtitle {
  margin-top: 0.5rem;
  opacity: 0.9;
}

.online-orders-body {
  padding: 2rem;
}

.online-orders-table {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.online-orders-table th {
  background: #f8f9fa;
  color: #495057;
  font-weight: 600;
  padding: 1rem;
  border: none;
  text-align: right;
}

.online-orders-table td {
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.order-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}

.order-status.pending {
  background: #fff3cd;
  color: #856404;
}

.order-status.confirmed {
  background: #d1ecf1;
  color: #0c5460;
}

.order-status.delivered {
  background: #d4edda;
  color: #155724;
}

.order-status.cancelled {
  background: #f8d7da;
  color: #721c24;
}

/* CRM Styles */
.crm-container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
  margin: 1rem;
}

.crm-header {
  background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
  color: white;
  padding: 2rem;
  border-radius: 20px 20px 0 0;
  text-align: center;
}

.crm-title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
}

.crm-subtitle {
  margin-top: 0.5rem;
  opacity: 0.9;
}

.crm-body {
  padding: 2rem;
}

.crm-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.crm-stat {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  border-left: 4px solid #1abc9c;
}

.crm-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #1abc9c;
  margin-bottom: 0.5rem;
}

.crm-stat-label {
  color: #495057;
  font-weight: 600;
}

.crm-table {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.crm-table th {
  background: #f8f9fa;
  color: #495057;
  font-weight: 600;
  padding: 1rem;
  border: none;
  text-align: right;
}

.crm-table td {
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

/* Authentication Styles */
.auth-container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
  margin: 1rem auto;
  max-width: 500px;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-title {
  color: #2c3e50;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: #7f8c8d;
  font-size: 1rem;
}

.auth-form {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.auth-form-group {
  margin-bottom: 1.5rem;
}

.auth-form-label {
  color: #495057;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.auth-form-control {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.auth-form-control:focus {
  border-color: #1abc9c;
  box-shadow: 0 0 0 0.2rem rgba(26, 188, 156, 0.25);
  outline: none;
}

.auth-form-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.btn-auth {
  padding: 12px 2rem;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  min-width: 120px;
}

.btn-auth-primary {
  background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
  color: white;
}

.btn-auth-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(26, 188, 156, 0.3);
  color: white;
}

.btn-auth-secondary {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  color: white;
}

.btn-auth-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
  color: white;
}

/* Subscription Styles */
.subscription-container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
  margin: 1rem;
}

.subscription-header {
  background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
  color: white;
  padding: 2rem;
  border-radius: 20px 20px 0 0;
  text-align: center;
}

.subscription-title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
}

.subscription-subtitle {
  margin-top: 0.5rem;
  opacity: 0.9;
}

.subscription-body {
  padding: 2rem;
}

.subscription-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.subscription-plan {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.subscription-plan:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(233, 30, 99, 0.2);
  border-color: #e91e63;
}

.subscription-plan-title {
  color: #2c3e50;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.subscription-plan-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: #e91e63;
  margin-bottom: 1rem;
}

.subscription-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.subscription-plan-features li {
  padding: 0.5rem 0;
  color: #495057;
  border-bottom: 1px solid #e9ecef;
}

.subscription-plan-features li:last-child {
  border-bottom: none;
}

.subscription-plan-actions {
  margin-top: 2rem;
}

.btn-subscription {
  padding: 12px 2rem;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  min-width: 120px;
  background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
  color: white;
}

.btn-subscription:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
  color: white;
}

/* Error Page Styles */
.error-container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 3rem;
  margin: 2rem auto;
  max-width: 600px;
  text-align: center;
}

.error-code {
  font-size: 6rem;
  font-weight: 700;
  color: #e74c3c;
  margin-bottom: 1rem;
  line-height: 1;
}

.error-title {
  color: #2c3e50;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.error-message {
  color: #7f8c8d;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-error {
  padding: 12px 2rem;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  min-width: 120px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-error-primary {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
}

.btn-error-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
  color: white;
}

.btn-error-secondary {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  color: white;
}

.btn-error-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
  color: white;
}

/* Main Page Styles */
.main-page-container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
  margin: 1rem;
}

.main-page-header {
  background: #667eea;
  color: white;
  padding: 2rem;
  border-radius: 20px 20px 0 0;
  text-align: center;
}

.main-page-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
}

.main-page-subtitle {
  margin-top: 0.5rem;
  opacity: 0.9;
  font-size: 1.1rem;
}

.main-page-body {
  padding: 2rem;
}

.main-page-content {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.main-page-text {
  color: #495057;
  line-height: 1.8;
  font-size: 1.1rem;
  text-align: justify;
}

.main-page-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-main-page {
  padding: 12px 2rem;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  min-width: 120px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-main-page-primary {
  background: #667eea;
  color: white;
}

.btn-main-page-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
  color: white;
}

.btn-main-page-secondary {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  color: white;
}

.btn-main-page-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
  color: white;
}

/* Additional Calculator Styles */
.calculator-tabs {
  display: flex;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #dee2e6;
}

.tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background-color: #f8f9fa;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 12px;
}

.tab-btn.active {
  background-color: #667eea;
  color: white;
}

.tab-btn:hover {
  background-color: #e9ecef;
}

.tab-btn.active:hover {
  background-color: #5a6fd8;
}

.tab-content {
  display: none;
}

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

.calculator-buttons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 15px;
}

.calc-btn {
  padding: 15px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  background-color: #fff;
  color: #495057;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.calc-btn:hover {
  background-color: #e9ecef;
  transform: translateY(-1px);
}

.calc-btn.operator {
  background-color: #667eea;
  color: white;
}

.calc-btn.operator:hover {
  background-color: #5a6fd8;
}

.calc-btn.clear {
  background-color: #dc3545;
  color: white;
}

.calc-btn.clear:hover {
  background-color: #c82333;
}

.calc-btn.advanced {
  background-color: #28a745;
  color: white;
}

.calc-btn.advanced:hover {
  background-color: #218838;
}

.sales-inputs .input-group-text {
  background-color: #f8f9fa;
  border: 1px solid #ced4da;
  font-size: 12px;
  min-width: 80px;
}

.sales-results, .advanced-results {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  margin: 15px 0;
}

.result-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 5px 0;
  border-bottom: 1px solid #e9ecef;
}

.result-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  font-weight: bold;
  color: #007bff;
}

.sales-buttons, .advanced-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sales-buttons .btn, .advanced-buttons .calc-btn {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  font-weight: 500;
  min-width: 120px;
}

.sales-buttons .btn-primary {
  background: #667eea;
  border: none;
}

.sales-buttons .btn-primary:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.advanced-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 15px;
}

/* Add Product Form Styles */
.add-product-form-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.add-product-form-title {
  text-align: center;
  margin-bottom: 30px;
  color: #2c3e50;
  font-weight: 600;
}

.add-product-form-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.add-product-form-section-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e9ecef;
}

.add-product-form-group {
  margin-bottom: 20px;
}

.add-product-form-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 8px;
  display: block;
}

.add-product-required-mark {
  color: #dc3545;
  margin-left: 4px;
}

.add-product-form-control {
  border-radius: 8px;
  border: 2px solid #e9ecef;
  padding: 12px 15px;
  transition: all 0.3s ease;
}

.add-product-form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.add-product-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.add-product-form-col {
  display: flex;
  flex-direction: column;
}

.add-product-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.add-product-file-upload-container {
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.add-product-file-upload-container:hover {
  border-color: #007bff;
  background-color: #f8f9fa;
}

.add-product-file-input-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 10px;
  display: block;
}

.add-product-file-input {
  display: none;
}

.add-product-file-info {
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: 8px;
}

.add-product-availability-container {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
  border: 2px solid #e9ecef;
}

.add-product-availability-container:hover {
  background: #e9ecef;
  border-color: #007bff;
}

.add-product-availability-icon {
  color: #007bff;
  font-size: 1.4rem;
}

.add-product-availability-checkbox {
  position: relative;
  width: 24px;
  height: 24px;
  margin: 0;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.add-product-availability-checkbox:checked {
  background-color: #007bff;
  border-color: #007bff;
}

.add-product-availability-checkbox:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.add-product-availability-label {
  color: #2c3e50;
  font-weight: 500;
  font-size: 1.1rem;
  margin: 0;
  cursor: pointer;
  user-select: none;
}

.add-product-submit-btn {
  background: linear-gradient(45deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 30px auto;
  min-width: 200px;
}

.add-product-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
  color: white;
}

.add-product-submit-btn i {
  font-size: 1.2rem;
}
.select2-container .select2-selection--single {
    height: 45px !important;
    padding: 0 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
    color: #2c3e50;
    font-size: 14px;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.3s ease;
    direction: rtl;
    position: relative;
}

/* متن انتخاب شده */
.select2-container .select2-selection__rendered {
    line-height: 45px !important; /* باعث وسط شدن متن عمودی */
    margin: 0;
    padding: 0;
    text-align: right;
}
.category-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    border: 1px solid #e5e5e5;
    overflow: hidden;
}

.category-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.category-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.btn-modern {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-modern-primary {
    background: #000;
    color: white;
    border: 1px solid #000;
}

.btn-modern-primary:hover {
    background: #333;
    border-color: #333;
    color: white;
}

.btn-modern-outline {
    background: white;
    color: #000;
    border: 1px solid #000;
}

.btn-modern-outline:hover {
    background: #000;
    color: white;
}

.btn-group[dir="rtl"] .btn:not(:last-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

.btn-group[dir="rtl"] .btn:not(:first-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.btn-group[dir="rtl"] .btn {
    margin-right: -1px;
}

.table th {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

.badge-modern {
    background: #000;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.btn-edit {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.btn-edit:hover {
    background: #218838;
    border-color: #1e7e34;
    color: white;
}

.btn-delete {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.btn-delete:hover {
    background: #c82333;
    border-color: #bd2130;
    color: white;
}

.stats-card {
    background: #667eea;
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.filter-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.hierarchy-indicator {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #e9ecef;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    margin-left: 8px;
}

.transfer-modal .modal-body {
    max-height: 400px;
    overflow-y: auto;
}

.bulk-actions {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: none;
}

/* Modern Stocktaking Styles */
.stocktaking-start-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.stocktaking-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* backdrop-filter: blur(10px); - Removed for mobile performance */
}

.header-content {
    max-width: 600px;
    margin: 0 auto;
}

.header-icon {
    width: 80px;
    height: 80px;
    background: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.header-icon i {
    font-size: 2.5rem;
    color: white;
}

.header-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
}

/* Stepper Styles */
.stepper-container {
    margin-bottom: 3rem;
}

.stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.stepper::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 3px;
    background: #e9ecef;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: white;
    border: 4px solid #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.step.active .step-icon {
    background: #667eea;
    border-color: #667eea;
    transform: scale(1.1);
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.step-icon i {
    font-size: 1.8rem;
    color: #6c757d;
    transition: color 0.3s ease;
}

.step.active .step-icon i {
    color: white;
}

.step-content {
    text-align: center;
}

.step-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.step-description {
    font-size: 0.9rem;
    color: #7f8c8d;
    line-height: 1.4;
}

/* Form Card Styles */
.form-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    /* backdrop-filter: blur(10px); - Removed for mobile performance */
    margin-bottom: 2rem;
}

.stocktaking-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.form-label i {
    margin-left: 0.75rem;
    color: #667eea;
    font-size: 1.2rem;
}

.modern-select,
.modern-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: #2c3e50;
}

.modern-select:focus,
.modern-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.modern-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 3rem;
}

.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.btn-start {
    background: #667eea;
    border: none;
    color: white;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
    min-width: 200px;
}

.btn-start:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-start:active {
    transform: translateY(-1px);
}

.btn-start i {
    margin-left: 0.75rem;
    font-size: 1.2rem;
}

/* Info Cards */
.info-cards {
    margin-top: 2rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #667eea;
    /* backdrop-filter: blur(10px); - Removed for mobile performance */
}

.info-icon {
    width: 50px;
    height: 50px;
    background: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.info-icon i {
    font-size: 1.5rem;
    color: white;
}

.info-content h4 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

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

.info-content li {
    color: #7f8c8d;
    margin-bottom: 0.75rem;
    padding-right: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.info-content li::before {
    content: '✓';
    position: absolute;
    right: 0;
    top: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stocktaking-start-container {
        padding: 1rem 0.5rem;
    }

    .stocktaking-header {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .header-title {
        font-size: 2rem;
    }

    .header-icon {
        width: 60px;
        height: 60px;
    }

    .header-icon i {
        font-size: 2rem;
    }

    .stepper {
        flex-direction: column;
        gap: 2rem;
    }

    .stepper::before {
        display: none;
    }

    .step {
        width: 100%;
    }

    .form-card {
        padding: 1.5rem;
        margin: 0 0.5rem 2rem;
    }

    .btn-start {
        width: 100%;
        padding: 1rem 2rem;
    }

    .info-card {
        margin: 0 0.5rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header-title {
        font-size: 1.8rem;
    }

    .header-subtitle {
        font-size: 1rem;
    }

    .form-card {
        padding: 1rem;
    }

    .modern-select,
    .modern-input {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }

    .btn-start {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
}

/* Loading States */
.btn-start:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-start:disabled:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

/* Animation for form elements */
.form-group {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects for interactive elements */
.step:hover .step-icon {
    transform: scale(1.05);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

/* Focus states for accessibility */
.modern-select:focus,
.modern-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

/* Custom scrollbar for select dropdowns */
.modern-select::-webkit-scrollbar {
    width: 8px;
}

.modern-select::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modern-select::-webkit-scrollbar-thumb {
    background: #667eea;
    color: #5a6fd8;
}

.modern-select::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

/* Modern Category Management Styles - Avoiding Conflicts */
.category-management-modern {
    max-width: 100%;
    margin: 0;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.filtered-products-modern {
    max-width: 100%;
    margin: 0;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.form-container-modern {
    transition: all 0.3s ease;
}

.product-card-modern {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.product-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

.product-name-modern {
    font-size: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price-modern {
    white-space: nowrap;
    font-weight: 600;
}

.product-details-modern {
    font-size: 0.9rem;
}

.no-products-modern {
    padding: 2rem 0;
}

/* Responsive adjustments for modern views */
@media (max-width: 768px) {
    .category-management-modern,
    .filtered-products-modern {
        padding: 0.5rem;
    }

    .product-card-modern {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .category-management-modern,
    .filtered-products-modern {
        padding: 0.25rem;
    }
}

/* Invoice Create Page Specific Styles - Avoiding Conflicts */
.invoice-create-page #categories_container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px;
    background: #fff;
}

.invoice-create-page #category_sidebar {
    min-width: 180px;
    max-width: 220px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #eee;
    padding: 10px;
    margin-left: 20px;
}

.invoice-create-page .category-btn.active {
    background: #007bff;
    color: #fff;
}

.invoice-create-page .category-btn {
    width: 100%;
    margin-bottom: 8px;
    text-align: right;
    border-radius: 6px;
    border: none;
    background: #e9ecef;
    color: #333;
    padding: 6px 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.invoice-create-page .category-btn:hover {
    background: #d0d7de;
}

.invoice-create-page .barcode-input {
    opacity: 0;
    position: absolute;
    top: -9999px;
    left: -9999px;
    width: 1px;
    height: 1px;
    z-index: -1;
    pointer-events: none;
    user-select: none;
    outline: none;
    border: none;
    background: transparent;
    overflow: hidden;
    clip: rect(0 0 0 0);
    margin: -1px;
    padding: 0;
}

/* Better barcode handling without input focus issues */
.invoice-create-page .barcode-handler {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: transparent;
    z-index: 9998;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.invoice-create-page .barcode-handler.active {
    pointer-events: auto;
    opacity: 1;
}

.invoice-create-page .barcode-handler.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 123, 255, 0.05);
    pointer-events: none;
}

.invoice-create-page .barcode-handler.active::after {
    content: '🔍 اسکنر بارکد آماده است';
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    animation: barcodeReady 2s infinite;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    border: none;
    z-index: 10000;
}

@keyframes barcodeSlideIn {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes barcodeReady {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.02);
        box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
    }
}

@keyframes barcodePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Prevent scroll when barcode handler is active */
.invoice-create-page.barcode-scanning {
    overflow: hidden;
}

.invoice-create-page.barcode-scanning .dashboard-container {
    overflow: hidden;
}

/* Barcode handler always active styles */
.invoice-create-page .barcode-handler.active {
    pointer-events: auto;
    opacity: 1;
}

.invoice-create-page .barcode-handler.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(40, 167, 69, 0.02);
    pointer-events: none;
}

/* Status bar for always active barcode scanner */
.invoice-create-page .alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border: 2px solid #17a2b8;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(23, 162, 184, 0.1);
    transition: all 0.3s ease;
}

.invoice-create-page .alert-info:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.2);
}

.invoice-create-page .alert-info i {
    color: #17a2b8;
    animation: scannerPulse 2s infinite;
}

@keyframes scannerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.invoice-create-page .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(52, 152, 219, 0.07);
    margin-bottom: 1.5rem;
}

.invoice-create-page .preview-table th,
.invoice-create-page .preview-table td {
    min-width: 90px;
    white-space: nowrap;
    font-size: 1rem;
}

.invoice-create-page #clear_product_search {
    border: none;
    background: transparent;
    color: #888;
    font-size: 1.2em;
    padding: 0 8px;
    transition: color 0.2s;
    box-shadow: none;
    outline: none;
    display: flex;
    align-items: center;
    height: 38px;
    margin-right: -40px;
    z-index: 2;
}

.invoice-create-page #clear_product_search:hover {
    color: #dc3545;
    background: #f8d7da;
}

.invoice-create-page .input-group.mb-2 {
    align-items: center;
}

.invoice-create-page .qty-display {
    transition: all 0.2s ease;
    font-weight: 600;
    color: #495057;
}

.invoice-create-page .qty-display:hover {
    background: #e9ecef !important;
    border-color: #007bff !important;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.invoice-create-page .qty-edit-input {
    border: 2px solid #007bff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}

.invoice-create-page .qty-edit-input:focus {
    border-color: #0056b3 !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25) !important;
}

.invoice-create-page .qty-edit-input::-webkit-outer-spin-button,
.invoice-create-page .qty-edit-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.invoice-create-page .qty-edit-input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.invoice-create-page .qty-edit-input::-ms-clear,
.invoice-create-page .qty-edit-input::-ms-expand {
    display: none;
}

.invoice-create-page .customer-info-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #dee2e6;
}

.invoice-create-page .customer-info-section .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.invoice-create-page .customer-info-section .form-control {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.invoice-create-page .customer-info-section .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.invoice-create-page .customer-info-section .form-text {
    font-size: 12px;
    margin-top: 5px;
}

/* Modern Profit/Loss Page Styles */
.profit-loss-container {
  min-height: 100vh;
  padding: 2rem 0;
  font-family: 'iransans', sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Page Header */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 2px;
}

.section-title i {
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-right: 1rem;
}

/* Quick Filters */
.quick-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.quick-filter-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid transparent;
  color: #4a5568;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  /* backdrop-filter: blur(10px); - Removed for mobile performance */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.quick-filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.quick-filter-btn:hover::before {
  left: 100%;
}

.quick-filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #667eea;
  color: #667eea;
}

.quick-filter-btn.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-color: transparent;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Date Filter Section */
.date-filter-section {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  /* backdrop-filter: blur(20px); - Removed for mobile performance */
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.date-filter-section .form-row {
  display: flex;
  gap: 1.5rem;
  align-items: end;
  flex-wrap: wrap;
}

.date-filter-section .form-group {
  flex: 1;
  min-width: 200px;
}

.date-filter-section .form-label {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.date-filter-section .form-control {
  border: 2px solid #e2e8f0;
  border-radius: 15px;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
}

.date-filter-section .form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  background: white;
  transform: translateY(-1px);
}

.date-filter-section .form-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.date-filter-section .btn {
  padding: 0.875rem 2rem;
  border-radius: 15px;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  border: none;
  position: relative;
  overflow: hidden;
}

.date-filter-section .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.date-filter-section .btn:hover::before {
  left: 100%;
}

.date-filter-section .btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.date-filter-section .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.date-filter-section .btn-secondary {
  background: linear-gradient(135deg, #718096, #4a5568);
  color: white;
}

.date-filter-section .btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(113, 128, 150, 0.4);
}

.date-filter-section .btn-success {
  background: linear-gradient(135deg, #48bb78, #38a169);
  color: white;
}

.date-filter-section .btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(72, 187, 120, 0.4);
}

/* Summary Cards */
.summary-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  /* backdrop-filter: blur(20px); - Removed for mobile performance */
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
}

.summary-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.summary-card .card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.summary-card .card-text {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.summary-card .small {
  color: #718096;
  font-size: 0.8rem;
  line-height: 1.4;
}

/* Card Variants */
.revenue-card::before {
  background: linear-gradient(90deg, #48bb78, #38a169);
}

.expense-card::before {
  background: linear-gradient(90deg, #f56565, #e53e3e);
}

.tax-card::before {
  background: linear-gradient(90deg, #ed8936, #dd6b20);
}

.profit-card::before {
  background: linear-gradient(90deg, #667eea, #764ba2);
}

/* Chart Section */
.chart-container {
  position: relative;
  height: 400px;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Chart Card Styling */
.card .chart-container {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1rem;
  margin: 1rem 0;
}

/* Chart Legend Styling */
.chart-container canvas {
  border-radius: 8px;
}

/* Receivables and Payables Cards */
.stats-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.stats-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stats-card .card-header {
  background: transparent;
  border: none;
  padding: 0 0 1rem 0;
}

.stats-card .card-header h6 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #4a5568;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stats-card .card-body h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

/* Calculation Explanation */
.calculation-explanation {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  /* backdrop-filter: blur(20px); - Removed for mobile performance */
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin: 2rem 0;
}

.calculation-explanation h6 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.calculation-explanation h6 i {
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.calculation-explanation p {
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.calculation-explanation p:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.calculation-explanation strong {
  color: #2d3748;
  font-weight: 600;
}

/* Data Tables */
.card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  /* backdrop-filter: blur(20px); - Removed for mobile performance */
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 2rem;
  overflow: hidden;
}

.card-header {
  color: white;
  border: none;
  padding: 1.5rem 2rem;
}

.card-header.bg-warning {
  background: linear-gradient(135deg, #ed8936, #dd6b20);
}

.card-header.bg-info {
  background: linear-gradient(135deg, #4299e1, #3182ce);
}

.card-header.bg-danger {
  background: linear-gradient(135deg, #f56565, #e53e3e);
}

.card-header.bg-success {
  background: linear-gradient(135deg, #48bb78, #38a169);
}

.card-header h6 {
  margin: 0;
  font-weight: 600;
  font-size: 1.1rem;
}

.card-header i {
  margin-right: 0.75rem;
}

.card-body {
  padding: 2rem;
}

/* Table Styling */
.table {
  margin: 0;
}

.table thead th {
  background: rgba(248, 250, 252, 0.8);
  border: none;
  color: #2d3748;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
  padding: 1rem;
}

.table tbody td {
  border: none;
  padding: 1rem;
  color: #4a5568;
  vertical-align: middle;
}

.table tbody tr {
  transition: all 0.2s ease;
}

.table tbody tr:hover {
  background: rgba(248, 250, 252, 0.5);
  transform: scale(1.01);
}

/* Status Badges */
.status-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Pagination */
.pagination-wrapper {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.pagination .page-link {
  border: none;
  color: #4a5568;
  padding: 0.75rem 1rem;
  margin: 0 0.25rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.pagination .page-link:hover {
  color: white;
  transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .profit-loss-container {
    padding: 1rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .quick-filters {
    gap: 0.5rem;
  }

  .quick-filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .date-filter-section .form-row {
    flex-direction: column;
    gap: 1rem;
  }

  .date-filter-section .form-group {
    min-width: auto;
  }

  .date-filter-section .form-actions {
    justify-content: center;
  }

  .summary-card {
    padding: 1.5rem;
  }

  .summary-card .card-text {
    font-size: 1.5rem;
  }

  .card-body {
    padding: 1.5rem;
  }

  .table thead th,
  .table tbody td {
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.75rem;
  }

  .quick-filters {
    flex-direction: column;
    align-items: center;
  }

  .quick-filter-btn {
    width: 100%;
    max-width: 200px;
    justify-content: center;
  }

  .date-filter-section {
    padding: 1.5rem;
  }

  .summary-card {
    padding: 1rem;
  }

  .card-body {
    padding: 1rem;
  }
}

.invoice-create-page .installment-amount-container .input-group {
    min-width: 150px;
}

.invoice-create-page .installment-amount-container .input-group-text {
    background-color: #f8f9fa;
    border-color: #ced4da;
    color: #6c757d;
    font-size: 0.875rem;
}

/* Responsive styles for invoice create page */
@media (max-width: 900px) {
    .invoice-create-page .preview-table th,
    .invoice-create-page .preview-table td {
        font-size: 0.95rem;
        min-width: 70px;
    }
}

@media (max-width: 768px) {
    .invoice-create-page #category_sidebar {
        margin-left: 0 !important;
        margin-bottom: 10px;
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .invoice-create-page .category-btn {
        width: auto;
        flex: 1 1 40%;
        min-width: 120px;
    }

    .invoice-create-page .category-product-row {
        flex-direction: column-reverse !important;
    }

    .invoice-create-page .btn-modern.btn-modern-primary.sticky-print-btn {
        position: sticky;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 10;
        border-radius: 0 0 10px 10px;
    }

    .invoice-create-page .customer-info-section {
        padding: 15px;
        margin-bottom: 20px;
    }

    .invoice-create-page .customer-info-section .form-control {
        padding: 10px 12px;
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .invoice-create-page .preview-table th,
    .invoice-create-page .preview-table td {
        font-size: 0.85rem;
        min-width: 60px;
        padding: 0.5rem 0.3rem;
    }

    .invoice-create-page .table-responsive {
        border-radius: 8px;
        box-shadow: none;
    }
}
.meal-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    border: 1px solid #e5e5e5;
    overflow: hidden;
}

.meal-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.meal-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.btn-modern {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-modern-primary {
    background: #000;
    color: white;
    border: 1px solid #000;
}

.btn-modern-primary:hover {
    background: #333;
    border-color: #333;
    color: white;
}

.btn-modern-outline {
    background: white;
    color: #000;
    border: 1px solid #000;
}

.btn-modern-outline:hover {
    background: #000;
    color: white;
}

.btn-group[dir="rtl"] .btn:not(:last-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

.btn-group[dir="rtl"] .btn:not(:first-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.btn-group[dir="rtl"] .btn {
    margin-right: -1px;
}

.table th {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

.badge-modern {
    background: #000;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.btn-edit {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.btn-edit:hover {
    background: #218838;
    border-color: #1e7e34;
    color: white;
}

.btn-delete {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.btn-delete:hover {
    background: #c82333;
    border-color: #bd2130;
    color: white;
}

.stats-card {
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
nav.w-100{
    position: sticky;
    top: 0;
    z-index: 5;
    background-color: rgba(255, 255, 255, 0.68);
}
.properties-section {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 8px;
    margin-top: 8px;
}
.property-row {
    background-color: white;
    border-radius: 4px;
    padding: 4px 8px;
    border: 1px solid #dee2e6;
}
.property-row:hover {
    background-color: #f8f9fa;
}
.property-real-qty:focus,
.property-reason:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Mobile Performance Optimizations */
@media (max-width: 768px) {
    
    /* Simplify hover effects on mobile */
    .btn:hover,
    .card:hover,
    .modal:hover,
    .feature-card:hover,
    .info-card:hover {
        transform: none !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    }
    
    /* Remove complex gradients on mobile */
    .btn-gradient-primary,
    .btn-gradient-secondary,
    .filter-btn {
        background: #007bff !important;
    }
    
    /* Simplify box shadows on mobile */
    .card,
    .modal,
    .form-control {
        box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    }
}
