@font-face {
    font-family: 'Room-Regular';
    src: url('../Room.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'OpenSansSoft-CndLight';
    src: url('../OpenSansSoft-CndLight.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Room-Black';
    src: url('../Room-Black.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --dark-green: #2D4920;
    --mustard: #93733B;
    --white: #F5F4F5;
    --text-color: #2D4920;
    --background: #F5F4F5;
    --card-bg: #FFFFFF; 
    --light-beige: #F0EFE9;
    --table-header: #EBEAE4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'OpenSansSoft-CndLight', sans-serif;
    background-color: var(--white);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#app {
    width: 100%;
    max-width: 420px; /* Slightly wider for better comfort */
    background: #FAFAF9;
    min-height: 600px;
    position: relative;
    border: 1px solid var(--mustard);
    border-radius: 30px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* --- Layout & Animation --- */

.screen, .step {
    display: none;
    flex-direction: column;
    width: 100%;
    animation: fadeIn 0.3s ease-in-out;
}

.screen { height: 100%; }
.screen.active, .step.active { display: flex; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Typography --- */

h1, h2, h3, h4, .subtitle, .screen-title {
    font-family: 'OpenSansSoft-CndLight', sans-serif;
    color: var(--dark-green);
    text-transform: uppercase;
    font-weight: normal;
}

h2, .screen-title { font-size: 24px; margin: 0; font-weight: bold; }
h3, .subtitle { font-size: 18px; margin-bottom: 15px; }
.main-menu-title { font-family: 'Room-Regular', sans-serif; font-size: 18px; margin-bottom: 30px; letter-spacing: 0.5px; text-align: center; }

.brand-subtitle {
    font-family: 'OpenSansSoft-CndLight', sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--mustard);
    margin-bottom: 5px;
    font-weight: bold;
}

/* --- Components --- */

/* Logo */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 40px;
}
.logo-icon { width: 80px; height: auto; margin-bottom: 15px; }
.logo-text { width: 220px; height: auto; margin-bottom: 30px; }

/* Header Nav */
.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 25px;
    position: relative;
}
.header-nav h2 { text-align: right; flex-grow: 1; }

/* Buttons */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.btn {
    font-family: 'Room-Regular', sans-serif;
    border: none;
    border-radius: 10px;
    padding: 18px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    letter-spacing: 1px;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
    background-color: var(--dark-green);
    color: var(--white);
    border: 1px solid var(--mustard);
}
.btn-primary:hover { background-color: white; color: var(--mustard); }

.btn-back {
    font-family: 'Room-Regular', sans-serif;
    background-color: transparent;
    border: 1px solid var(--mustard);
    color: var(--dark-green);
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 12px;
    width: auto;
    margin: 0;
}

.btn-outline {
    background-color: var(--dark-green);
    border: 1px solid var(--mustard);
    color: var(--white);
    margin-top: 20px;
}
.btn-outline:hover { background-color: white; color: var(--mustard); }

.btn-outline-small {
    background-color: transparent;
    border: 1px solid var(--mustard);
    color: var(--dark-green);
    font-family: 'Room-Regular', sans-serif;
    padding: 5px 15px;
    border-radius: 10px;
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
    width: auto;
}

#add-replenish-btn { width: 100%; }

.btn-delete {
    background-color: transparent;
    border: 1px solid var(--mustard);
    color: var(--mustard);
    font-family: 'Room-Regular', sans-serif;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
    width: auto;
}

/* Copy button style: mustard outline on app background */
.btn-copy {
    background-color: transparent;
    border: 1px solid var(--mustard);
    color: var(--mustard);
}

/* Calendar Widget */
.calendar-widget-container {
    border: 1px solid var(--mustard);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
    background-color: #FBFBF9;
}

.date-input-row { display: flex; align-items: center; margin-bottom: 15px; }
.date-label, .date-display-text {
    font-family: 'Room-Regular', sans-serif;
    font-size: 20px;
    font-weight: normal;
    color: var(--dark-green);
}
.date-label { margin-right: 15px; text-transform: uppercase; }
.date-input-field { display: none; }

.calendar-widget {
    border: 1px solid var(--mustard);
    border-radius: 15px;
    padding: 15px;
    background: #F5F4F5;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 5px;
}
.calendar-header span {
    font-family: 'Room-Regular', sans-serif;
    font-size: 14px;
    color: var(--dark-green);
    text-transform: uppercase;
}

.calendar-nav { display: flex; gap: 10px; }
.calendar-nav button {
    background: white;
    border: 1px solid var(--mustard);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--mustard);
    cursor: pointer;
    font-size: 12px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    text-align: center;
}

.calendar-day-name { font-size: 12px; color: #888; margin-bottom: 10px; font-family: 'Room-Regular', sans-serif; }
.calendar-day {
    width: 30px; height: 30px;
    display: flex; justify-content: center; align-items: center;
    font-size: 14px; cursor: pointer;
    border-radius: 8px; margin: 0 auto;
    font-family: 'Room-Regular', sans-serif;
    color: var(--dark-green);
}
.calendar-day:hover { background-color: #e0e0e0; }
.calendar-day.selected { background-color: var(--dark-green); color: var(--white); border-radius: 8px; }
.calendar-day.today { border: 1px solid var(--dark-green); }

/* Search */
.search-section { margin-bottom: 20px; }
.search-box input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--dark-green);
    border-radius: 10px;
    font-family: 'OpenSansSoft-CndLight', sans-serif;
    background: #F0F0F0;
    outline: none;
    font-size: 16px;
}
.search-results {
    margin-top: 5px;
    border: 1px solid var(--mustard);
    border-radius: 10px;
    background: white;
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    width: calc(100% - 90px); /* Caution with calc */
    z-index: 100;
    display: none;
}

/* Tables */
.section-header-row {
    margin-bottom: 15px;
    justify-content: space-between;
    align-items: center;
    display: flex;
}
.section-header-row h3, .section-header-row .subtitle { margin-bottom: 0; }

.data-table-container {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    background: #F0EFE9;
    margin-bottom: 10px;
    overflow-x: auto; /* Enable scroll on small screens */
}

.data-table { width: 100%; border-collapse: collapse; min-width: 300px; table-layout: fixed; }
.data-table th {
    background-color: #EBEAE4;
    color: var(--dark-green);
    font-weight: bold;
    padding: 8px 6px;
    font-size: 10px;
    text-transform: uppercase;
    text-align: left;
    font-family: 'Room-Regular', sans-serif;
    white-space: nowrap;
}
.data-table td {
    padding: 8px 6px;
    border-top: 1px solid white;
    font-size: 12px;
    color: var(--dark-green);
    vertical-align: middle;
    line-height: 1.2;
}
.data-table th:first-child, .data-table td:first-child { width: 60%; }
.data-table th:nth-child(2), .data-table td:nth-child(2) { width: 20%; }
.data-table th:nth-child(3), .data-table td:nth-child(3) { width: 20%; }
.data-table th:first-child { padding-left: 12px; }
.data-table td:first-child { padding-left: 12px; }
.data-table td:nth-child(3) { text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.data-table tr.section-row td:nth-child(3) { overflow: visible; text-overflow: clip; }
.data-table tr.section-row {
    background-color: var(--dark-green);
    border-bottom: 1px solid var(--white);
}
.data-table tr.section-row td {
    background-color: transparent;
    color: var(--white);
    font-weight: normal;
    text-transform: uppercase;
    border-top: none;
}
.section-header-cell {
    font-family: 'Room-Black', sans-serif;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
}
.section-header-cell span {
    font-family: 'Room-Black', sans-serif;
}
.section-header-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 6px 0;
    width: 100%;
}
.data-table tr.section-row td.section-header-actions { padding-right: 0; }
.section-toggle-btn {
    background: var(--dark-green);
    border: 1px solid var(--white);
    color: var(--white);
    font-family: 'Room-Regular', sans-serif;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 11px;
    text-transform: uppercase;
    cursor: pointer;
    height: 26px;
    line-height: 1;
    margin-right: 0;
}
.data-table input {
    width: 100%;
    padding: 5px;
    border: 1px solid var(--mustard);
    border-radius: 8px;
    background: var(--white);
    text-align: center;
    font-family: 'OpenSansSoft-CndLight', sans-serif;
    font-weight: bold;
    color: var(--dark-green);
    min-width: 48px;
    height: 26px;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}
.readonly { color: #555; text-transform: uppercase; font-weight: bold; }

/* Replenish table width adjustments */
#replenish-items .data-table th:first-child, 
#replenish-items .data-table td:first-child { width: 58%; }
#replenish-items .data-table th:nth-child(2), 
#replenish-items .data-table td:nth-child(2) { width: 20%; }
#replenish-items .data-table th:nth-child(3), 
#replenish-items .data-table td:nth-child(3) { width: 22%; }

/* Smaller delete button for space economy */
.btn-delete {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
}

/* Utilities */
.flex-row { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.mb-20 { margin-bottom: 20px; }
.replenish-separator { height: 1px; background-color: var(--mustard); margin: 20px 0; opacity: 0.5; width: 100%; }
.existing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--mustard);
    border-radius: 15px;
    padding: 12px 14px;
    background: #FBFBF9;
    color: var(--dark-green);
    font-family: 'Room-Regular', sans-serif;
}
#edit-stock-btn, #edit-replenish-btn { margin-top: 10px; }

/* Notifications & Reports */
.notification {
    position: fixed;
    top: 20px; left: 50%; transform: translateX(-50%);
    background-color: var(--mustard); color: var(--white);
    padding: 15px 30px; border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    font-family: 'Room-Regular', sans-serif;
    display: none; width: 90%; max-width: 350px; text-align: center;
}
.notification.show { display: block; animation: slideDown 0.3s ease-out; }
@keyframes slideDown { from { transform: translate(-50%, -100%); } to { transform: translate(-50%, 0); } }

.report-id-text, .report-info-box {
    border: 1px solid var(--mustard);
    border-radius: 25px;
    padding: 18px 20px;
    display: flex; justify-content: space-between; align-items: center;
    font-family: 'Room-Regular', sans-serif;
    color: var(--dark-green);
    font-size: 16px;
    width: 100%;
    background-color: transparent;
    margin-bottom: 10px;
}

/* Order Preview */
.order-preview-container {
    background: #FBFBF9;
    border: 1px solid var(--mustard);
    border-radius: 15px;
    padding: 20px;
    font-family: 'Room-Regular', sans-serif;
    margin-bottom: 20px;
    margin-top: 20px;
    color: var(--dark-green);
    max-height: 300px;
    overflow-y: auto;
}
.order-preview-header { text-align: left; margin-bottom: 20px; font-size: 14px; line-height: 1.5; font-weight: bold; }
.order-preview-subtitle {
    font-family: 'OpenSansSoft-CndLight', sans-serif;
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-weight: bold;
    color: var(--dark-green);
}
.order-preview-content { font-size: 14px; line-height: 1.6; }

.center-title { text-align: center; }

#stock-address-selection .subtitle,
#stock-category-selection .subtitle,
#replenish-address-selection .subtitle,
#replenish-category-selection .subtitle { 
    text-align: center;
    font-size: 20px;
}

/* Store catalog */
.catalog-top-row {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    width: 100%;
    margin-bottom: 8px;
}

.catalog-back-button {
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-back-icon {
    width: 18px;
    height: 18px;
}

.catalog-logo {
    height: 22px;
    object-fit: contain;
    justify-self: center;
}

.catalog-divider {
    width: 100%;
    height: 1px;
    background-color: var(--mustard);
    margin-bottom: 12px;
    opacity: 0.4;
}

.catalog-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.catalog-title-row .catalog-title {
    font-family: 'Room-Regular', sans-serif;
    font-size: 24px;
}

.catalog-address-chip {
    border: 1px solid var(--mustard);
    border-radius: 12px;
    padding: 6px 12px;
    font-family: 'Room-Regular', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--dark-green);
    white-space: nowrap;
}

.catalog-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.cart-title-row {
    margin-bottom: 12px;
}

.cart-title {
    font-family: 'Room-Regular', sans-serif;
    font-size: 24px;
}

.cart-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-bottom: 16px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background-color: #FBFBF9;
    border-radius: 16px;
    border: 1px solid #E0DED5;
}

.cart-item-image-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 10px;
}

.cart-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cart-item-title {
    font-family: 'Room-Regular', sans-serif;
    font-size: 14px;
}

.cart-item-price {
    font-family: 'Room-Regular', sans-serif;
    font-size: 14px;
    margin-bottom: 2px;
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0 16px;
    font-family: 'Room-Regular', sans-serif;
    font-size: 16px;
}

.cart-summary-label {
    color: var(--dark-green);
}

.cart-summary-value {
    font-weight: bold;
    color: var(--dark-green);
}

.cart-submit-btn {
    width: 100%;
    margin-top: 4px;
}

.checkout-title-row {
    margin: 12px 0;
}

.checkout-title {
    font-family: 'Room-Regular', sans-serif;
    font-size: 24px;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkout-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #E0DED5;
    font-family: 'Room-Regular', sans-serif;
    font-size: 14px;
}

.checkout-divider {
    width: 100%;
    height: 1px;
    background-color: #E0DED5;
    margin: 4px 0 8px;
}

.checkout-item {
    padding: 12px 12px 14px 12px;
    border-radius: 16px;
    border: 1px solid #E0DED5;
    background-color: #FBFBF9;
    margin-bottom: 10px;
}

.checkout-item-main {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.checkout-item-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.checkout-toggle {
    display: flex;
    border-radius: 999px;
    border: 1px solid var(--mustard);
    padding: 2px;
    margin-bottom: 10px;
}

.checkout-toggle-option {
    flex: 1;
    border: none;
    background: transparent;
    border-radius: 999px;
    padding: 6px 0;
    font-family: 'Room-Regular', sans-serif;
    font-size: 13px;
    color: var(--dark-green);
    cursor: pointer;
}

.checkout-toggle-option.active {
    background-color: var(--dark-green);
    color: var(--white);
}

.checkout-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 6px;
}

.checkout-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.checkout-time-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.checkout-label {
    font-family: 'Room-Regular', sans-serif;
    font-size: 14px;
    color: var(--dark-green);
}

.checkout-date-input {
    font-family: 'Room-Regular', sans-serif;
    font-size: 14px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #E0DED5;
    background-color: #FBFBF9;
}

.checkout-time-select {
    font-family: 'Room-Regular', sans-serif;
    font-size: 13px;
    padding: 4px 6px;
    border-radius: 8px;
    border: 1px solid #E0DED5;
    width: 60px;
    max-height: 30px;
}

.checkout-textarea {
    width: 100%;
    min-height: 60px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #E0DED5;
    font-family: 'Room-Regular', sans-serif;
    font-size: 14px;
    resize: vertical;
}

.checkout-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Room-Regular', sans-serif;
    font-size: 14px;
    color: var(--dark-green);
}

.checkout-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid var(--mustard);
    background-color: #FBFBF9;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    display: inline-block;
    position: relative;
}

.checkout-checkbox input[type="checkbox"]:checked {
    background-color: var(--dark-green);
    border-color: var(--dark-green);
}

.checkout-checkbox input[type="checkbox"]:checked::after {
    content: '✔';
    color: #FFFFFF;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -52%);
}

.required-star {
    color: #D64545;
    margin-left: 2px;
}

.consent-link {
    text-decoration: underline;
    cursor: pointer;
}

.checkout-submit-btn {
    width: 100%;
    margin-top: 8px;
}

.consent-content {
    margin-top: 16px;
    font-family: 'Room-Regular', sans-serif;
    font-size: 14px;
    color: var(--dark-green);
    white-space: pre-wrap;
}

.order-confirm-content {
    max-height: 320px;
    overflow-y: auto;
    text-align: left;
    margin-bottom: 12px;
    font-family: 'Room-Regular', sans-serif;
    font-size: 14px;
    color: var(--dark-green);
}

.order-confirm-block {
    margin-bottom: 10px;
}

.order-confirm-section-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.checkout-success {
    margin-top: 40px;
    text-align: center;
    font-family: 'Room-Regular', sans-serif;
    color: var(--dark-green);
}

.checkout-success-main {
    font-size: 20px;
    margin-bottom: 8px;
}

.checkout-success-sub {
    font-size: 14px;
}

.catalog-item {
    background-color: #FBFBF9;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #E0DED5;
}

.catalog-image-wrapper {
    width: 100%;
    overflow: hidden;
}

.catalog-image {
    width: 100%;
    display: block;
}

.catalog-info {
    padding: 12px 14px 14px 14px;
}

.catalog-info .catalog-title {
    font-family: 'Room-Regular', sans-serif;
    font-size: 18px;
    margin-bottom: 4px;
}

.catalog-price {
    font-family: 'Room-Regular', sans-serif;
    font-size: 20px;
    margin-bottom: 10px;
}

.catalog-qty-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.qty-button {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--mustard);
    background-color: #EBEAE4;
    color: var(--dark-green);
    font-family: 'Room-Regular', sans-serif;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.qty-button:disabled {
    opacity: 0.4;
    cursor: default;
}

.qty-button-plus {
    background-color: var(--dark-green);
    color: var(--white);
}

.qty-value {
    min-width: 32px;
    text-align: center;
    font-family: 'Room-Regular', sans-serif;
    font-size: 16px;
}

.cart-button {
    width: 36px;
    height: 36px;
    border-radius: 18px;
    border: 1px solid var(--mustard);
    background-color: #FBFBF9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
}

#replenish-items .subtitle { 
    font-size: 19px;
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.modal-box {
    background: #FBFBF9;
    border: 1px solid var(--mustard);
    border-radius: 15px;
    padding: 20px;
    width: 90%;
    max-width: 360px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.modal-message {
    font-family: 'Room-Regular', sans-serif;
    color: var(--dark-green);
    font-size: 16px;
    margin-bottom: 15px;
    text-align: center;
}
.modal-actions { display: flex; gap: 10px; justify-content: center; align-items: center; }
.modal-actions .btn { width: auto; flex: 1 1 0; height: 56px; padding: 14px 20px; font-size: 16px; display: flex; align-items: center; justify-content: center; margin: 0; }
.modal-box { text-align: center; }

.store-spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.4);
    border-top-color: var(--mustard);
    margin: 0 auto 15px;
    animation: store-spin 1s linear infinite;
}

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

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--mustard); border-radius: 3px; }

/* --- RESPONSIVE MOBILE STYLES --- */
@media (max-width: 480px) {
    body {
        padding: 0;
        background-color: #FAFAF9; /* Match app bg to avoid borders visible */
        align-items: flex-start; /* Top align */
    }

    #app {
        max-width: 100%;
        width: 100%;
        min-height: 100vh;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 20px;
    }

    /* Adjust Logo for Mobile */
    .logo-container { margin-top: 20px; margin-bottom: 15px; }
    .logo-icon { width: 60px; }
    .logo-text { width: 180px; }

    /* Adjust Calendar */
    .calendar-widget-container { padding: 15px; }
    .calendar-day { width: 32px; height: 32px; } /* Slightly larger touch target */
    .calendar-grid { gap: 4px; } /* Reduce gap to fit */

    /* Adjust Buttons */
    .btn { padding: 15px; font-size: 14px; }
    
    /* Adjust Search Results Width */
    .search-results { width: 100%; position: relative; margin-top: 5px; }
    
    /* Header text adjustments */
    h2, .screen-title { font-size: 18px; }
    .date-label, .date-display-text { font-size: 18px; }
}

/* Specific spacing for send report buttons */
#send-order-btn,
#send-replenish-btn {
    margin-top: 12px;
}
