.head-title {
    position: absolute;
    top: 10px;
    right: 10px;
}
/* --------------------------------------- */
.aside-receipt {
    width: 320px;
    min-height: 100vh;
    position: relative;
    background-color: #fff;
    padding: 10px;
    box-shadow: 20px 0px 120px #1234560d;
}
.receipt-downies {
    width: 100%;
    position: absolute;
    left: 0px;
    bottom: 10px;
    padding: 10px;
    z-index: 2;
}
/* --------------------------------------- */
.item-view {
    width: 120px;
    height: 120px;
    text-align: center;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 7px 20px #1234564b;
    transition: 0.15s ease-in-out;
    cursor: pointer;
}
.item-view:active {
    color: var(--emerald);
    scale: 0.95;
}

/* --------------------------------------- */
#order-type {
    position: absolute;
    top: 250px;
    right: 10px;
    direction: rtl;
}
#order-type .align {
    font-size: 26;
    opacity: 0.6;
    transition: 0.2s ease-in-out;
}
#order-type .active {
    font-size: 42px;
    opacity: 1;
}
/* --------------------------------------- */
.orders, #order-history {
    padding: 10px;
}

.card {
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#order-history {
    width: 100%;
    min-height: 60vh;
    max-height: 60vh;
    padding: 10px;
    overflow-y: auto;
    overflow-x: hidden;
}

.history-item {
    background: #fff;
    border-radius: 10px;
    padding: 15px 20px;
    margin: 10px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    align-items: center;
}
.history-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}
.history-main p.text {
    margin: 0;
    font-size: 1.55rem;
    color: #333;
}
.history-total {
    font-weight: bold;
    font-size: 1rem;
    color: #0077ff;
    align-self: center;
}
.order-info-btn {
    background: #0077ff;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease;
}
.order-info-btn:hover {
    background: #005fcc;
}

#order-modal {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    display: none; /* default hidden */
    justify-content: center;
    align-items: center;
}

.modal-content {
    width: 350px;
    max-height: 90vh;
    position: relative;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    border-radius: 15px;
    overflow-y: auto;
    animation: popIn 0.25s ease-out;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    color: #444;
    font-size: 20px;
    cursor: pointer;
    transition: 0.2s;
}
.modal-close:hover {
    color: #3395ff;
    transform: scale(1.1);
}

.order-header {
    text-align: center;
}
.order-title {
    font-size: 20px;
    font-weight: bold;
    color: #222;
}
.order-time, .order-type {
    font-size: 14px;
    color: #666;
}

.order-details .offer {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}
.order-details .offer:last-child {
    border-bottom: none;
}
.order-details .text {
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    color: #333;
}
.order-details .price {
    font-weight: bold;
    color: #27ae60;
}
.order-details .content {
    font-size: 13px;
    color: #777;
    margin-left: 10px;
}

.order-comment {
    font-size: 14px;
    color: #444;
    font-style: italic;
}

.order-total {
    font-size: 16px;
    font-weight: bold;
    color: var(--emerald);
    text-align: right;
}

@keyframes popIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
/* --------------------------------------- */
.change-password-modal {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    display: none; /* default hidden */
    justify-content: center;
    align-items: center;
}
.change-password-content {
    width: 350px;
    max-height: 90vh;
    position: relative;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    border-radius: 15px;
    overflow-y: auto;
    animation: popIn 0.25s ease-out;
}
.change-password-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    color: #444;
    font-size: 20px;
    cursor: pointer;
    transition: 0.2s;
}
.change-password-close:hover {
    color: #3395ff;
    transform: scale(1.1);
}

#password-modal {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    display: none; /* default hidden */
    justify-content: center;
    align-items: center;
}
.modal-password-content {
    width: 350px;
    max-height: 90vh;
    position: relative;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    border-radius: 15px;
    overflow-y: auto;
    animation: popIn 0.25s ease-out;
}
.modal-password-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    color: #444;
    font-size: 20px;
    cursor: pointer;
    transition: 0.2s;
}
.modal-password-close:hover {
    color: #3395ff;
    transform: scale(1.1);
}
/* --------------------------------------- */
.control-bar {
    width: calc(100% - 320px);
    position: absolute;
    left: 320px;
    bottom: 0px;
    padding: 20px;
    transition: 0.2s ease-in-out;
}

@media print {
  body * { visibility: hidden !important; }
  #__print-area, #__print-area * { visibility: visible !important; }
  #__print-area { 
      position: absolute; left: 0; top: 0; 
      width: 100%; padding: 5mm; 
      font-family: monospace; /* الخط أحسن للطباعة الحرارية */
      font-size: 14px; /* ممكن تزود شوي حسب الطابعة */
      color: #000;
  }

  .print-receipt {
      width: 350px; 
      margin: 0 auto; 
      page-break-after: always; 
  }

  .order-header {
      text-align: center;
      font-weight: bold;
      font-size: 16px;
  }

  .order-details .text {
      font-size: 14px;
      display: flex;
      justify-content: space-between;
      margin: 2px 0;
  }

  .order-details .content {
      font-size: 12px;
      margin-left: 5px;
  }

  hr {
      border: none;
      border-top: 1px dashed #000;
      margin: 4px 0;
  }

  .order-total {
      font-size: 16px;
      font-weight: bold;
      text-align: right;
      margin-top: 6px;
  }

  .order-comment {
      font-size: 12px;
      font-style: italic;
      margin-top: 4px;
  }

  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { size: auto; margin: 5mm; }
}