#order-app {
    font-family: sans-serif;
}
#order-app {
    position: fixed;      /* VERY IMPORTANT */
    inset: 0;             /* top:0 right:0 bottom:0 left:0 */
    overflow: hidden;
    background: #fff;
    z-index: 9999;        /* above theme */
}

.mwt-header {
    display: flex;
    text-align: center;
    background-color: rgb(201, 56, 56);
    color: white;
    font-size: 32px;
    padding: 12px;
}
.mwt-tabs {
    display: flex;
    margin-bottom: 2px;
    text-align: center;
}
.mwt-tabs span {
    display: block;
    width: 100%;
    font-size: 14px;
    height: 20px;
    letter-spacing: 1px;
}
.mwt-tabs span.dashicons {
    font-size: 22px;
}
.dashicons-calendar:before {
    font-size: 20px;
}
.dashicons-list-view:before {
    font-size: 18px;
}
.mwt-tabs .mwt-tab {
    flex: 1;
    padding: 2px;
    cursor: pointer;
    background: #2d9982;
    color: #fff;
    border: none;
    border-radius: 0!important;
}
.mwt-tabs .mwt-tab.active {
    background: #215348;
}
.order-item {
    padding: 5px;
    border-bottom: 2px dashed #bbb;
}
.no-records {
    text-align: center;
    padding: 30px;
    color: #888;
}
.loading {
    text-align: center;
    padding: 20px;
    color: #555;
}
#order-log {
    margin-top: 10px;
    font-size: 12px;
    color: #555;
    position: fixed;
    bottom: 0;
    padding: 16px;
    display: none;
}
.admin-bar #order-app {
  top: 46px;
}
/* #order-app {
  position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -10px;
    background-color: white;
    z-index: 100;
} */

/* CSS */
.mwt-order-card {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    background-color: #f8f8f8;
    padding: 10px 10px 10px 5px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 10px 0;
    font-family: Arial, sans-serif;
    cursor: pointer;
}
.mwt-order-card:hover {
    background: #f5f5f5;
}

.mwt-order-status {
    font-size: 30px; /* size of check mark */
    color: #28a745;  /* green */
    margin-right: 10px;
    display: flex;
    flex-direction: column;
}
.mwt-order-status.dashicons-clock {
    color: #c0392b;
}
.mwt-order-status.dashicons-no-alt {
    color: #c0392b;
}
.mwt-order-info {
   /*  display: flex;
    flex-direction: column; */
    margin-left: 12px;
    margin-right: 6px;
    flex-grow: 1;
}

.mwt-order-number {
    font-size: 24px;
    padding-left: 3px;
    margin-bottom: 0px;
}
.mwt-order-number span {
  font-weight: bold;
}
.mwt-order-time {
    display: flex;
    align-items: center;
    color: #c0392b; /* reddish color for timestamp */
    font-size: 14px;
    margin-left: 0;
    width: 180px;
}

.mwt-order-time .dashicons {
    font-size: 16px;
    margin-top: 2px;
    margin-right: 5px;
    color: #f1c40f; /* goldish for clock */
}

.mwt-order-detail {
    text-align: right;
}
.mwt-od-dtype {
    text-transform: uppercase;
}
.mwt-od-cname {
    font-size: 12px;
    line-height: 12px;
}
.hidden {
    display: none!important;
}

.order-detail-header {
    background: #c62828;
    color: #fff;
    padding: 10px;
    display: flex;
    align-items: center;   
    gap: 10px;
}

.order-heading {
    font-size: 10px;
}
.order-items .order-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0 0;
    border-bottom: 1px solid #eee;
}
.order-item .meta-label {
    font-size: 10px;
}

.order-summary {
    margin-top: 10px;
}

.order-summary .total {
    font-weight: bold;
    font-size: 18px;
}

.order-actions {
    display: flex;
    position: sticky;
    bottom: 0;
    width: 100%;
}

.order-actions button {
    flex: 1;
    padding: 15px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.accept {
    background: green;
    color: #fff;
}
.reject {
    background: red;
    color: #fff;
}

#app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 30px;
    background: rgb(201, 56, 56);
    color: #fff;
    padding: 0 12px;
    gap: 10px;
    font-size: 14px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.app-header-left,
.app-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
#header-back {
    padding: 0 20px;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    border: none;
    background: none;
}
#header-print-preview {
    font-size: 10px;
    margin: 0;
    padding: 0;
    border: solid 0;
    background-color: unset;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff0 !important;
    color: #d4d4d4;
    border: 1px solid rgba(255, 255, 255, 0) !important;
    font-weight: normal;
    cursor: pointer;
}
.dashicons-search:before {
    font-size: 16px;
}
/* Common view styles */
.view {
    position: absolute;   /* MUST be absolute */
    top: 30px;
    left: 0;
    width: 100%;
    height: calc(100% - 80px);
    background: #fff;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    will-change: transform;
}
#order-detail-view.view {
  height: calc(100% - 80px);
}
/* Initial positions */
#order-list-view {
    transform: translateX(0%);
    z-index: 1;
}

#order-detail-view {
    transform: translateX(100%);
    z-index: 2;
    overflow-y: auto;
}

/* ACTIVE STATES (FULL SLIDE) */
#order-list-view.slide-left {
    transform: translateX(-100%);
}

#order-detail-view.slide-in {
    transform: translateX(0%);
}
#order-list {
  /* height: calc(100% - 285px); */
  height: 100%;
  overflow: hidden;
  overflow-y: auto;
  padding-bottom: 100px;
}
@media (min-width: 768px) {
    #order-app {
        max-width: none;
        margin: 0;
    }
}


/* OVERLAY */
#accept-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 9998;
}

/* MODAL */
#accept-modal {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

/* ACTIVE STATE */
#accept-modal.show {
    transform: translateY(0);
}

/* HEADER */
.modal-header {
    background: #c62828;
    color: #fff;
    text-align: center;
    padding: 14px;
    font-size: 18px;
    font-weight: bold;
}

/* BODY */
.modal-body {
    overflow-y: auto;
    flex: 1;
}

.radio-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
}

/* FOOTER */
.modal-footer {
    display: flex;
    height: 50px;
}

.modal-footer button {
    flex: 1;
    border: none;
    font-size: 16px;
    color: #fff;
}

.confirm {
    background: #2e7d32;
}

.cancel {
    background: #c62828;
}

/* HIDE */
.hidden {
    display: none;
}


/** Bottom Line **/
.bottom-list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* LEFT */
.bottom-list-left {
    flex: 1;
    font-size: 14px;
}

/* RIGHT */
.bottom-list-right {
    font-weight: 600;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .bottom-list {
        display: flex !important;
        flex-direction: row !important;
    }
}



.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.2s ease;
    z-index: 9999;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.modal-popup {
    width: 90%;
    max-width: 400px;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;

    transform: scale(0.9);
    transition: transform 0.2s ease;
}

.modal-overlay.active .modal-popup {
    transform: scale(1);
}

.modal-popup {
    width: 90%;
    max-width: 400px;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    animation: popupScale 0.2s ease;
}

@keyframes popupScale {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    padding: 14px;
    text-align: center;
    font-weight: 600;
    color: #fff;
}

.modal-header.red {
    background: #e53935;
}

.modal-body {
    padding: 12px;
}

.radio-row {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.radio-row input {
    margin-right: 10px;
}

.modal-footer {
    display: flex;
}

.modal-footer button {
    flex: 1;
    padding: 14px;
    font-size: 15px;
    border: none;
    cursor: pointer;
}

.btn-confirm {
    background: #009688;
    color: #fff;
}

.btn-cancel {
    background: #e53935;
    color: #fff;
}


.order-date-filter {
     width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    box-sizing: border-box;
    flex: 0 0 100%;
}
.order-date-filter select {
    width: 25%;
  background-color: #f8f8f8;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border: unset;
}
.order-date-filter select,
.order-date-filter button {
    height: 34px;
    border-radius: 4px;
    border: 1px solid #ccc;
    padding: 0 8px;
}

.order-date-filter button {
    font-size: 18px;
    width: 36px;
}
.mwt-border {
    border-bottom: 1px solid #eee;
    display: block;
    margin-top:5px;
    margin-bottom: 5px;
}
.dashicons.online {
    cursor: pointer;
    font-size: 18px;
    margin-right: 12px;
}
button.op-hamburger {
    font-size: unset;
    padding: 4px 0 0 0;
	border: 0;
	background-color: #c93838;
}
button.op-hamburger:hover {
  background-color: #c93838;
}

#refresh-btn {
  background-color: #fff;
  border-radius: 6px;
	border: 1px solid #888;
	padding: 4px 10px;
}
button.next {
  background: white;
	border: unset;
}
button.next:hover {
  background: white;
}
button.prev {
  background: white;
	border: unset;
}
button.prev:hover {
  background: white;
}

.op-hamburger {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 18px;
}
.op-dropdown {
    position: absolute;
    padding-top: 14px;
    padding-bottom: 14px;
    top: 40px;
    left: 8px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 6px 18px rgba(0,0,0,.2);
    min-width: 220px;
    z-index: 9999;
}
.op-dropdown a {
    display:block;
    font-size: 13px;
    padding: 5px 14px;
	color: #515151;
    text-decoration:none;
  

}
.op-dropdown a:hover {
    background:#f2f2f2;
}
