body.pharmacy-page {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #0A1C40 0%, #126233 100%);
    font-family: Arial, sans-serif;
}

.pharmacy-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 25px;
    background-color: rgba(10, 28, 64, 0.6);
    backdrop-filter: blur(4px);
}

.pharmacy-topbar .header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pharmacy-topbar img.logo-circular {
    height: 42px;
    width: auto;
    border-radius: 50%;
    background-color: #ffffff;
    padding: 3px;
}

.pharmacy-topbar img.logo-cross {
    height: 34px;
    width: auto;
}

.pharmacy-topbar h1 {
    color: #ffffff;
    font-size: 1.2rem;
    margin: 0;
}

.pharmacy-content {
    display: flex;
    justify-content: center;
    padding: 30px 15px 50px 15px;
}

.pharmacy-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 35px 30px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.pharmacy-card.wide {
    max-width: 720px;
}

.pharmacy-card h2 {
    color: #0A1C40;
    font-size: 1.4rem;
    margin: 0 0 22px 0;
}

.pharmacy-card h3 {
    color: #0A1C40;
    font-size: 1.1rem;
    margin: 25px 0 15px 0;
}

.pharmacy-field {
    text-align: left;
    margin-bottom: 18px;
}

.pharmacy-field label {
    display: block;
    color: #0A1C40;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 6px;
}

.pharmacy-card input,
.pharmacy-card select,
.pharmacy-card textarea {
    width: 100%;
    border: 1.5px solid #e2e5eb;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 1rem;
    color: #0A1C40;
    background-color: #f9fafb;
    box-sizing: border-box;
}

.pharmacy-card input:focus,
.pharmacy-card select:focus,
.pharmacy-card textarea:focus {
    outline: none;
    border-color: #126233;
    background-color: #ffffff;
}

.pharmacy-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, #0A1C40, #126233);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
}

.pharmacy-btn:hover {
    background: linear-gradient(90deg, #061127, #0d4a26);
    color: #ffffff;
}

.pharmacy-alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.pharmacy-alert.success {
    background-color: #eafaf0;
    border: 1px solid #126233;
    color: #126233;
}

.pharmacy-alert.error {
    background-color: #fdecea;
    border: 1px solid #b00020;
    color: #b00020;
}

.pharmacy-alert.info {
    background-color: #eaf1fb;
    border: 1px solid #0A1C40;
    color: #0A1C40;
}

.pharmacy-table-wrap {
    overflow-x: auto;
    margin-bottom: 20px;
}

.pharmacy-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.pharmacy-table th,
.pharmacy-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #e2e5eb;
    font-size: 0.92rem;
    color: #0A1C40;
}

.pharmacy-table th {
    background-color: #0A1C40;
    color: #ffffff;
}

.pharmacy-totals {
    font-weight: bold;
    color: #0A1C40;
    margin: 4px 0;
}

.pharmacy-finish-link {
    display: block;
    text-align: center;
    margin-top: 18px;
    color: #126233;
    font-weight: bold;
    text-decoration: none;
}

.pharmacy-finish-link:hover {
    text-decoration: underline;
}

.pharmacy-complete-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #126233, #0A1C40);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px auto;
}


/* =================================================================== */
/*                        Sale List                                  */


.filter-form {
    margin-bottom: 25px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-row .pharmacy-field {
    flex: 1 1 150px;
    margin-bottom: 12px;
}

.filter-btn {
    width: auto;
    padding: 12px 24px;
    margin-right: 15px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.pagination a {
    color: #126233;
    font-weight: bold;
    text-decoration: none;
}

.pagination a:hover {
    text-decoration: underline;
}

.pagination-current {
    color: #0A1C40;
    font-weight: bold;
}

/* =================================================================== */
/*                        Sale List                                  */

.receipt-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 30px;
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(10, 28, 64, 0.08);
    box-sizing: border-box;
}
.receipt-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #e2e5eb;
}

.receipt-logo {
    height: 50px;
    margin-bottom: 10px;
}

.receipt-header h2 {
    color: #0A1C40;
    margin: 0;
}

.receipt-subtitle {
    color: #6b7280;
    margin: 4px 0 0 0;
}

.receipt-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    margin-bottom: 25px;
    color: #0A1C40;
    font-size: 0.92rem;
}

.receipt-totals {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #e2e5eb;
    text-align: right;
    color: #0A1C40;
}

.receipt-totals div {
    margin-bottom: 6px;
}

.receipt-grand-total {
    font-size: 1.2rem;
    font-weight: bold;
    color: #126233;
}

.sale-link {
    color: #126233;
    font-weight: bold;
    text-decoration: none;
}

.sale-link:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .receipt-meta {
        grid-template-columns: 1fr;
    }
}