body {
    background-color: #F7F9FC;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1A1A1A;
}

.app-wrapper {
    max-width: 480px;
    margin: 0 auto;
    padding-bottom: 150px;
    padding-top: 0px ! important;
    min-height: 100vh;
}

.modern-card {
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    padding: 24px;
    margin: 16px;
    border: none;
    font-family: 'Poppins-Regular';
}

/* --- Typography --- */
h2.title {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

h3.subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin-bottom: 16px;
}

p.desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* --- Empty State --- */
.empty-state-icon {
    width: 120px;
    height: 120px;
    background: #FDE8E9;
    border-radius: 50%;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.empty-state-icon i {
    font-size: 40px;
    color: #E5474F;
}

.qr-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #fff;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* --- Header & Timeline --- */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin-bottom: 20px;
}

.t-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #E0E0E0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 5px;
    font-size: 14px;
}

.t-label {
    font-size: 10px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* --- Chef Card --- */
.chef-card {
    background: #FFFBF0;
    border: 1px solid #FFF5D6;
    display: flex;
    align-items: flex-start;
}

.chef-icon-circle {
    width: 40px;
    height: 40px;
    background: #FFE082;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

/* --- Ready To Pay Banner --- */
.ready-pay-banner {
    background: #E6F7ED;
    border-radius: 16px;
    padding: 16px;
    margin: 16px;
    display: flex;
    align-items: flex-start;
    border-left: 4px solid #28a745;
}

.pay-check {
    color: #28a745;
    font-size: 20px;
    margin-right: 12px;
    margin-top: 2px;
}

/* --- Bill Details --- */
.bill-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
    color: #333;
    font-family: "Poppins-Regular";
}

.bill-row.item-row {
    font-weight: 600;
}

.bill-row.summary {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-family: "Poppins-Regular";
}

.bill-divider {
    border-bottom: 1px dashed #ddd;
    margin: 15px 0;
}

.grand-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 800;
    color: #111;
    margin-top: 5px;
}

/* --- Tip Grid --- */
.tip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.tip-card {
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    padding: 0;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.tip-card.active {
    border-color: #E5474F;
    background: #FFF0F1;
    color: #E5474F;
}

.tip-input {
    width: 100%;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: bold;
    outline: none;
}

/* --- Footer --- */
.table-qr-pay .sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 15px 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    z-index: 100;
}

.pay-btn-modern {
    background: #E5474F;
    color: white;
    width: 100%;
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pay-btn-modern:disabled {
    background: #E0E0E0;
    color: #999;
}

.payable-label {
    font-size: 12px;
    color: #666;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.payable-amt {
    font-size: 20px;
    color: #111;
    font-weight: 800;
}

.helper-link {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #666;
    display: block;
    text-decoration: none;
}


[ng-cloak] {
    display: none !important;
}


.custom-payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    /* Compact padding */
    background: #FFFFFF;
    /* White background like a navbar */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* Subtle shadow */
    margin-bottom: 20px;
    position: sticky;
    /* Optional: Stays at top while scrolling */
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    max-width: 70%;
    /* Prevent overlapping */
}

.brand-logo-wrap img {
    max-height: 45px;
    /* Adjusted height to fit navbar */
    max-width: 150px;
    object-fit: contain;
    display: block;
}

/* Text Styling (When logo is hidden) */
.brand-text-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.brand-title {
    font-size: 18px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0;
    line-height: 1.2;
    font-family: 'Poppins-Bold', sans-serif;
}

.brand-subtitle {
    font-size: 11px;
    color: #888;
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-right {
    flex-shrink: 0;
}

.table-badge {
    background: #E5474F;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #E0E0E0;
    display: inline-block;
    white-space: nowrap;
    font-family: 'Poppins-Regular', sans-serif;
}