/* =========================================================
   SHAMBA - SHARED STYLES
   Loaded on phones, tablets, and desktop.
   Device-specific overrides live in shamba-mobile.css
   and shamba-desktop.css.
   ========================================================= */

.dev-banner {
    position: sticky;
    top: 0;
    z-index: 10000;

    background: #ffd54f;
    color: #000;
    padding: 10px 15px;
    text-align: center;
    font-size: 15px;
    line-height: 1.4;
}

.dev-banner strong {
    display: block;
    font-size: 16px;
}

.dev-banner a {
    display: inline-block;
    margin-left: 8px;
    font-weight: bold;
    color: #000;
    text-decoration: underline;
}

:root {
    /* Fonts */
    --font-family: Arial, sans-serif;

    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-md: 16px;
    --font-size-lg: 20px;
    --font-size-xl: 24px;

    /* Colors */
    --color-primary: #315b3a;
    --color-primary-hover: #284b30;

    --color-text: #222;
    --color-text-muted: #666;

    --color-background: #f5f4ef;
    --color-card: #ffffff;

    --color-border: #dddddd;

    --color-danger: #a12626;
    --color-warning: #66500a;
    --color-success: #27582d;

    /* Cards */
    --card-padding: 18px;
    --card-margin-bottom: 14px;
    --card-radius: 12px;
    --card-border: 1px solid var(--color-border);
    --card-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);

    /* Inputs */
    --input-padding: 12px;
    --input-radius: 8px;
    --input-border: 1px solid #cccccc;
    --input-font-size: 16px;

    /* Buttons */
    --button-padding-y: 10px;
    --button-padding-x: 16px;
    --button-radius: 8px;
    --button-font-size: 14px;
    --button-font-weight: 600;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 24px;
}

.nowrap {
    white-space: nowrap;
}

.width100 {
    width: 100%;
}

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.table-link-new {
    color: inherit;
    text-decoration: none;
}

.table-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.table-link strong {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.date-column {
    text-align: left !important;
}

.float-right {
    float: right;
    color: red;
}

/* DATA TABLE */

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 0.82rem;
}

table.data-table th,
table.data-table td {
    padding: 8px 10px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #ddd;
}

table.data-table th {
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    background: #f5f5f5;
}

table.data-table tbody tr:hover {
    background: #fafafa;
}

table.data-table td {
    text-align: left;
}

table.data-table .date {
    white-space: nowrap;
}

table.data-table .money {
    white-space: nowrap;
    text-align: right !important;
}

table.data-table .center {
    text-align: center;
}

table.data-table .nowrap {
    white-space: nowrap;
}

.dt-container {
    width: 100%;
}

.dt-container .dt-search,
.dt-container .dt-length {
    margin-bottom: 10px;
}

.dt-container .dt-search input,
.dt-container .dt-length select {
    border: var(--input-border);
    border-radius: var(--input-radius);
    background: #fff;
}

.dt-container .dt-info {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.dt-container .dt-paging {
    margin-top: 10px;
}

.dt-container .dt-paging .dt-paging-button {
    border-radius: var(--button-radius) !important;
}

.dt-container {
    width: 100%;
}

.dt-layout-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0.75rem 0;
}

.dt-search {
    margin-left: auto;
}

.dt-search input,
.dt-length select {
    padding: 0.45rem 0.6rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    background: white;
}

.dt-search input {
    min-width: 220px;
}

.dt-length select {
    margin: 0 0.35rem;
}

.dt-info {
    font-size: 0.9rem;
    color: #666;
}

.dt-paging {
    display: flex;
    gap: 0.25rem;
}

/* ACTION ICON */
.action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    padding: 0;

    border: 1px solid #ccc;
    border-radius: 7px;

    background: #f5f5f5;
    color: #333;

    font-family: inherit;
    line-height: 1;

    cursor: pointer;
    flex-shrink: 0;
    text-decoration: none;
}

.round-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    margin-left: 0.35rem;
    padding: 0;

    border: 1px solid #ccc;
    border-radius: 50%;

    background: #f5f5f5;
    color: #333;

    font-family: inherit;
    line-height: 1;

    text-decoration: none;
    cursor: pointer;
}

.action-icon.action-icon-s {
    width: 32px;
    height: 32px;
}

.action-icon.action-icon-s::before {
    font-size: 16px;
}

.action-icon.action-icon-m {
    width: 42px;
    height: 42px;
}

.action-icon.action-icon-m::before {
    font-size: 24px;
}

.action-icon.action-icon-l {
    width: 52px;
    height: 52px;
}

.action-icon.action-icon-l::before {
    font-size: 30px;
}

.action-icon:hover {
    background: #e8e8e8;
}

.action-icon:hover,
.action-icon:focus {
    text-decoration: none;
}

.action-icon::before {
    display: inline-block;

    font: var(--fa-font-solid);
    content: var(--action-icon);

    text-rendering: auto;
    -webkit-font-smoothing: antialiased;

    font-size: 24px;
}

.icon-remove  {
    --action-icon: "\f00d";
    color: var(--color-danger);}
.icon-refresh { --action-icon: "\f2f9"; }
.icon-edit { --action-icon: "\f044"; }
.icon-add { --action-icon: "\2b"; color: darkblue !important;}
.icon-minus { --action-icon: "\f068"; color: darkred !important;}
.icon-settings { --action-icon: "\f013"; }
.icon-info { --action-icon: "\f05a"; }
.icon-search { --action-icon: "\f002"; }
.icon-calendar { --action-icon: "\f073"; }
.icon-history {--action-icon: "\f1da";}
.icon-trash {--action-icon: "\f2ed";}

.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.display-none {
    display: none !important;
}

.logout-form {
    margin: 0 0 16px;
    text-align: right;
}

.logout-button {
    padding: 8px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: white;
    color: #555;
    font-size: 14px;
    cursor: pointer;
}

.text-input {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #bbb;
    border-radius: 8px;
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    background: #f5f4ef;
    color: #222;
    font-family: Arial, Helvetica, sans-serif;
}

.page {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 18px 14px 40px;
}

.page-wide {
    max-width: 1200px;
}

.page-header {
    margin-bottom: 20px;
}

.page-header h1 {
    margin: 0;
    font-size: 28px;
}

.page-header p {
    margin: 6px 0 0;
    color: #666;
}

/* ---------------------------------------------------------
   INVENTORY ADJUSTMENT
   --------------------------------------------------------- */

.inventory-filters {
    margin-bottom: 1rem;
}

.inventory-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.inventory-filter-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;
    padding: 0.5rem 0.8rem;

    border: 1px solid #cbd4cc;
    border-radius: 8px;

    background: white;
    color: #315b3a;

    font-weight: 600;
    text-decoration: none;
}

.inventory-filter-button.selected {
    background: #315b3a;
    border-color: #315b3a;
    color: white;
}

.inventory-subcategory-filters {
    padding-top: 0.25rem;
}

.inventory-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.inventory-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.inventory-count {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-bottom: 8px;
}

.inventory-count-number {
    font-size: 36px;
    line-height: 1;
    font-weight: 700;
}

.inventory-count-label {
    font-size: 16px;
    color: #555;
}

.inventory-updated {
    font-size: 13px;
    color: #777;
    margin-bottom: 16px;
}

.inventory-price {
    margin-top: 0.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #555;
}

.card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.button {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 13px 12px;

    border-radius: 8px;
    border: none;

    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;

    cursor: pointer;
}

.button-primary {
    background: #315b3a;
    color: white;
    margin-top: 10px;
}

.button-secondary,
.button-cancel {
    background: #e8ece8;
    color: #294b30;
    border: 1px solid #cbd4cc;
    margin-top: 10px;
}

.button-delete,
.button-remove{
    background: #b23b3b;
    color: white;
    margin-top: 10px;
}

.top-link {
    display: block;
    margin-bottom: 18px;
    padding: 13px;

    background: white;
    border: 1px solid #d7d7d7;
    border-radius: 8px;

    color: #315b3a;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.success-message {
    padding: 12px;
    margin-bottom: 16px;

    background: #e8f4e8;
    border: 1px solid #b9d5bb;
    border-radius: 8px;

    color: #27582d;
}

.inventory-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;

    margin-bottom: 12px;
    padding: 12px;

    background: #f5f4ef;
    border-radius: 10px;
}

.inventory-metric-link {
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.inventory-metric {
    text-align: center;
}

.inventory-metric-number {
    display: block;

    font-size: 28px;
    line-height: 1;
    font-weight: 700;

    margin-bottom: 6px;
}

.inventory-metric-label {
    display: block;

    font-size: 11px;
    color: #666;
    text-transform: uppercase;
}

.inventory-count-low {
    color: #c62828;
}

.red-text {
    color: #c62828;
}

.field-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.detail-label {
    font-weight: bold;
}

.subscription-row-error {
    background: #f7dada !important;
}

.subscription-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 5px;

    font-size: 0.75rem;
    font-weight: 700;

    white-space: nowrap;
}

.subscription-status-active {
    background: #e6f4ea;
    color: #1e6b36;
}

.subscription-status-error {
    background: #fde8e8;
    color: #9b1c1c;
}

.subscription-status-cancelled,
.subscription-status-inactive {
    background: #eeeeee;
    color: #555555;
}


.inventory-landscape {
    display: none;
}


.inventory-landscape-header,
.inventory-landscape-row {
    display: grid;
    grid-template-columns:
        minmax(135px, 2fr)
        minmax(65px, 0.8fr)
        42px
        42px
        48px
        38px
        38px;

    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.65rem;
}

.inventory-landscape-header {
    font-weight: 700;
    border-bottom: 1px solid #ccc;
}

.inventory-landscape-row {
    border-bottom: 1px solid #ddd;
}

.inventory-landscape-row:nth-child(even) {
    background: rgba(0, 0, 0, 0.04);
}

.inventory-landscape-name {
    font-weight: 600;
}

.inventory-landscape-action {
    text-align: center;
}


/* ---------------------------------------------------------
   INVENTORY ADJUSTMENT COMPACT
   --------------------------------------------------------- */
/* Compact Inventory Adjustment */

.inventory-adjust-card {
    padding: 12px;
}

.inventory-adjust-card .adjust-item-name {
    font-size: 20px;
    margin-bottom: 2px;
}

.inventory-adjust-card .current-count {
    margin-bottom: 10px;
    font-size: 14px;
}

.inventory-adjust-card .current-count strong {
    font-size: 16px;
}

.inventory-adjust-card .field-label {
    margin-bottom: 4px;
    font-size: 14px;
}

.inventory-adjust-card .adjust-controls {
    grid-template-columns: 48px 1fr 48px;
    gap: 8px;
    margin-bottom: 10px;
}

.inventory-adjust-card .sign-button {
    min-height: 44px;
    font-size: 24px;
}

.inventory-adjust-card .adjust-amount {
    min-height: 44px;
    font-size: 22px;
}

.inventory-adjust-card .new-count-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    margin-bottom: 10px;
    text-align: left;
}

.inventory-adjust-card .new-count-label {
    margin-bottom: 0;
    font-size: 14px;
}

.inventory-adjust-card .new-count-number {
    font-size: 26px;
}

.inventory-adjust-card .adjust-note-select {
    min-height: 42px;
    margin-bottom: 8px;
    font-size: 15px;
}

.inventory-adjust-card .notes-field {
    min-height: 110px;
    padding: 8px 10px;
    font-size: 15px;
}

.inventory-adjust-form .form-actions {
    display: block;
    margin-top: 10px;
}

.inventory-adjust-form .button {
    min-height: 44px;
    padding: 9px 10px;
    font-size: 15px;
}

.inventory-adjust-form .button-cancel {
    margin-top: 8px;
}


.inventory-report {
    width: 100%;
}

.inventory-report-header,
.inventory-report-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px 44px 48px;
    gap: 0.35rem;
    align-items: center;
    padding: 0.7rem 0.5rem;
}

.inventory-report-header {
    font-weight: 700;
    border-bottom: 1px solid #bbb;
}

.inventory-report-row {
    border-bottom: 1px solid #ddd;
}

.inventory-report-item {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    min-width: 0;
}

.inventory-report-number {
    text-align: center;
    white-space: nowrap;
}

.inventory-report-price,
.inventory-report-updated {
    display: none;
}

.inventory-report-edit {
    flex: 0 0 auto;
}


/* ---------------------------------------------------------
   INVENTORY ADJUSTMENT
   --------------------------------------------------------- */

.adjust-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.adjust-item-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
}

.current-count {
    margin-bottom: 24px;
    color: #555;
    font-size: 16px;
}

.current-count strong {
    color: #222;
    font-size: 20px;
}

.adjust-controls {
    display: grid;
    grid-template-columns: 64px 1fr 64px;
    gap: 10px;
    align-items: stretch;
    margin-bottom: 24px;
}

.sign-button {
    min-height: 58px;
    border: 2px solid #ccc;
    border-radius: 10px;
    background: #f4f4f4;
    color: #333;

    font-size: 32px;
    font-weight: 700;
    cursor: pointer;
}

.sign-button.selected {
    background: #315b3a;
    border-color: #315b3a;
    color: white;
}

.adjust-amount {
    width: 100%;
    min-height: 58px;

    border: 2px solid #ccc;
    border-radius: 10px;

    font-size: 28px;
    font-weight: 700;
    text-align: center;
}

.new-count-box {
    padding: 18px;
    margin-bottom: 24px;

    background: #f0f4f0;
    border-radius: 10px;

    text-align: center;
}

.new-count-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.new-count-number {
    font-size: 42px;
    line-height: 1;
    font-weight: 700;
}

.notes-field {
    width: 100%;
    min-height: 110px;
    padding: 12px;

    border: 1px solid #bbb;
    border-radius: 8px;

    font-family: inherit;
    font-size: 16px;
    resize: vertical;
}

.form-actions {
    margin-top: 24px;
}

.form-actions-bump {
    margin-top: 6px;
}

.button-save {
    background: #315b3a;
    color: white;
    font-size: 18px;
}

.button-cancel {
    margin-top: 10px;
}

.error-message {
    padding: 12px;
    margin-bottom: 16px;

    background: #fbeaea;
    border: 1px solid #e0b8b8;
    border-radius: 8px;

    color: #8a2525;
}

.negative-count {
    color: #a12626;
}

.button-committed {
    grid-column: 1 / -1;
    margin-top: 10px;

    background: #fff4d6;
    color: #66500a;

    border: 1px solid #e6d28e;
}

/* ---------------------------------------------------------
   INVENTORY ADJUSTMENT HISTORY
   --------------------------------------------------------- */

.history-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.history-item-name {
    font-size: 20px;
    font-weight: 700;
}

.history-change {
    min-width: 64px;
    font-size: 20px;
    line-height: 1;
    font-weight: 700;
    text-align: right;
}

.history-change.positive {
    color: #315b3a;
}

.history-change.negative {
    color: #a12626;
}

.history-counts {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;

    padding: 14px;
    margin-bottom: 14px;

    background: #f5f4ef;
    border-radius: 8px;
}

.history-count {
    text-align: center;
}

.history-count-label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: #777;
    text-transform: uppercase;
}

.history-count-number {
    font-size: 24px;
    font-weight: 700;
}

.history-arrow {
    color: #888;
    font-size: 22px;
}

.history-details {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

.history-notes {
    margin-top: 12px;
    padding: 12px;

    background: #f7f7f7;
    border-left: 4px solid #315b3a;
    border-radius: 4px;

    color: #333;
}

.empty-message {
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 24px;

    text-align: center;
    color: #666;
}

:root {
    --vendor-nav-height: 50px;
}


/* Inventory History Report */



.inventory-history-report {
    min-width: 0;
}

.inventory-history-report thead {
    display: none;
}

.inventory-history-report,
.inventory-history-report tbody,
.inventory-history-report tr,
.inventory-history-report td {
    display: block;
    width: 100%;
}

.inventory-history-report tr {
    padding: 0.7rem 0.8rem;
    border-bottom: 1px solid #e5e5e5;
}

.inventory-history-report td {
    padding: 0;
    border: 0;
}

.inventory-history-report .history-date {
    font-size: 0.70rem;
    margin-bottom: 0.25rem;
}

.inventory-history-report .history-item {
    display: inline-block;
    font-weight: 600;
}

.inventory-history-report .history-change {
    float: right;
    width: auto;
    text-align: right !important;
    font-weight: 700;
}

.history-reference {
    clear: both;
    padding-top: 0.25rem;
}

.history-reference {
    margin-top: 0.2rem;
    font-size: 0.9rem;
    font-weight: 400;
}

.inventory-history-row {
    padding: 0.75rem 0.8rem;
    border-bottom: 1px solid #ddd;
}

.inventory-history-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.inventory-history-date {
    font-size: 0.9rem;
}

.inventory-history-change {
    font-weight: 700;
    white-space: nowrap;
}

.inventory-history-note {
    margin-top: 0.2rem;
    font-size: 0.95rem;
}



.report-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
}

.report-table th,
.report-table td {
    padding: 0.7rem 0.8rem;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
    vertical-align: middle;
    width: auto !important;
}

.report-table th {
    font-weight: 700;
}

.report-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.04);
}

.report-table tbody tr:last-child td {
    border-bottom: 0;
}

.number-column {
    text-align: right !important;
}

.history-date {
    white-space: nowrap;
}

/* ---------------------------------------------------------
   SHOP
   --------------------------------------------------------- */

.shop-card {
    background: var(--color-card);
    border: var(--card-border);
    border-radius: var(--card-radius);
    padding: var(--card-padding);
    margin-bottom: var(--card-margin-bottom);
    box-shadow: var(--card-shadow);
}

.shop-item-name {
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 8px;
}

.shop-description {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 14px;
}

.shop-price {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.shop-availability {
    margin-bottom: 16px;
    font-size: 14px;
    color: #555;
}

.shop-low-inventory {
    display: inline-block;

    margin-bottom: 14px;
    padding: 6px 10px;

    background: #fff4d6;
    border: 1px solid #e6d28e;
    border-radius: 6px;

    color: #66500a;
    font-size: 14px;
    font-weight: 700;
}

.shop-price-per-pound {
    margin-left: 5px;
    font-size: 0.78rem;
    font-weight: 400;
    color: #666;
}

.shop-price-note {
    margin-top: 1px;
    font-size: 0.7rem;
    font-weight: 400;
    color: #777;
}

/* ---------------------------------------------------------
   VENDOR NAV
   --------------------------------------------------------- */
.vendor-nav {
    position: sticky;
    top: 62px;
    z-index: 1000;
    width: 100%;
    background: #315b3a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.vendor-nav-inner {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 10px 14px;
    box-sizing: border-box;
}

.vendor-nav-brand-old {
    margin-bottom: 8px;

    color: white;
    font-size: 18px;
    font-weight: 700;
    text-transform: capitalize;
}

.vendor-nav-brand-name {
    color: white;
}

.vendor-nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;

    width: 100%;
}

.header-cart-empty {
    pointer-events: none;
}

.header-cart {
    display: inline-flex;
    align-items: center;
    gap: 4px;

    margin-left: auto;
    flex-shrink: 0;

    color: white;
    text-decoration: none;

    font-size: 20px;
    font-weight: 700;
}

.header-cart-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: white;
    font-size: 22px;
    line-height: 1;
}

.header-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 22px;
    height: 22px;
    padding: 0 5px;

    background: white;
    color: #315b3a;

    border-radius: 11px;

    font-size: 13px;
    font-weight: 700;
}

.vendor-nav-group {
    position: relative;
}

.vendor-nav-group > summary {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;
    padding: 8px 12px;

    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 7px;

    background: rgba(255, 255, 255, 0.12);
    color: white;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    white-space: nowrap;
    cursor: pointer;
    list-style: none;
}

.vendor-nav-group > summary::-webkit-details-marker {
    display: none;
}

.vendor-nav-group > summary::after {
    content: "▼";
    margin-left: 7px;
    font-size: 9px;
}

.vendor-nav-group[open] > summary {
    background: rgba(255, 255, 255, 0.22);
}

.vendor-nav-submenu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;

    z-index: 1100;

    display: flex;
    flex-direction: column;
    gap: 6px;

    min-width: 190px;
    padding: 8px;

    background: #315b3a;
    border-radius: 8px;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.vendor-nav-submenu a,
.vendor-nav-submenu button {
    width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
}


/* DESKTOP NAV */

.vendor-nav-links {
    display: flex;
    gap: 8px;
}

.vendor-nav-links a,
.vendor-nav-links button,
.vendor-nav-mobile-links a,
.vendor-nav-mobile-links button {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;
    padding: 8px 12px;

    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 7px;

    background: rgba(255, 255, 255, 0.12);
    color: white;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.vendor-nav-links form,
.vendor-nav-mobile-links form {
    margin: 0;
}

.vendor-nav-links a:hover,
.vendor-nav-links button:hover,
.vendor-nav-mobile-links a:hover,
.vendor-nav-mobile-links button:hover {
    background: rgba(255, 255, 255, 0.22);
}


/* MOBILE MENU HIDDEN ON DESKTOP */

.vendor-nav-mobile {
    display: none;
}


/* PHONE */


/* ---------------------------------------------------------
   ORDERS
   --------------------------------------------------------- */
.order-items-header {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #ddd;
    font-size: 14px;
    font-weight: 700;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #eee;
}

.order-item-row:last-child {
    border-bottom: none;
}

.order-item-name {
    font-weight: 600;
}

.order-pickup-date {
    margin-top: 0.35rem;
    font-weight: 600;
}

.order-item-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: baseline;
    padding: 0.25rem 0;
}

.order-item-description {
    min-width: 0;
}

.order-item-description,
.order-item-price {
    font-size: 1rem;
}


.order-item-price {
    text-align: right;
    font-weight: 600;
    white-space: nowrap;
}

.order-totals {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #ddd;
}

.order-total-row,
.order-total-row span {
    font-size: 1rem;
}

.order-total-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    padding: 0.2rem 0;
}

.order-total-row span:last-child {
    text-align: right;
    white-space: nowrap;
}

.order-total-final {
    margin-top: 0.25rem;
    padding-top: 0.4rem;
    border-top: 1px solid #ddd;
    font-weight: 700;
    font-size: 1.05rem;
}
.complete-order-item-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) auto 36px;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.complete-order-item-name {
    font-weight: 600;
}

.complete-order-item-detail {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.delete-icon {
    border: none;
    background: transparent;
    padding: 0;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.65;
}

.delete-icon:hover {
    opacity: 1;
}

/* Complete / Edit Order */
.order-edit-row {
    align-items: center;
    padding: 0.65rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.order-edit-description {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.order-edit-weight-group {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 400;
}

.order-edit-fixed-price {
    font-weight: 400;
}

.order-weight-input {
    width: 75px;
    min-width: 50px;
    padding: 0.45rem 0.5rem;
}

.order-edit-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.7rem;
    white-space: nowrap;
}

.delete-icon {
    border: 0;
    background: transparent;
    padding: 0.15rem;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.65;
}

.delete-icon:hover {
    opacity: 1;
}

.order-edit-totals {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 2px solid #ddd;
}

.order-edit-total-final {
    margin-top: 0.25rem;
    padding-top: 0.45rem;
    border-top: 1px solid #ddd;
}


.order-item-remove {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.75rem;
}

/* ---------------------------------------------------------
   CATAGORIES
   --------------------------------------------------------- */


.category-card {
    margin-bottom: 1rem;
}

.subcategory-list {
    margin-top: 1rem;
}

.subcategory-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #ddd;
}

.subcategory-row:last-child {
    border-bottom: none;
}

.subcategory-name {
    font-weight: 500;
}

.category-actions {
    margin-top: 1rem;
}

.subcategory-list {
    margin-top: 1rem;
}

.subcategory-row {
    padding: 0.65rem 0;
    border-bottom: 1px solid #ddd;
}

.subcategory-row:last-child {
    border-bottom: none;
}

.subcategory-name-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.subcategory-name {
    font-weight: 500;
}

.subcategory-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    font-size: 1.05rem;
    text-decoration: none;
    border-radius: 50%;

    color: #555;
    background: #f2f2f2;
}

.subcategory-edit:hover {
    background: #e2e2e2;
}

.category-actions {
    margin-top: 1rem;
}

.category-name-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.edit-s,
.edit-m,
.edit-l {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
    color: #555;
    cursor: pointer;
}

.edit-s::before,
.edit-m::before,
.edit-l::before {
    content: "\270E";
}

.edit-s {
    font-size: 0.8rem;
}

.edit-m {
    font-size: 1rem;
}

.edit-l {
    font-size: 1.2rem;
}

.edit-s:hover,
.edit-m:hover,
.edit-l:hover {
    color: #222;
}

/* ---------------------------------------------------------
   CART
   --------------------------------------------------------- */

.cart-item-actions {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: nowrap;
}

.cart-item-actions form {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin: 0;
}

.cart-quantity-input {
    width: 70px;
    padding: 9px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.cart-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    padding: 0;

    border: 1px solid #ccc;
    border-radius: 7px;

    background: #f5f5f5;
    color: #333;

    font-size: 21px;
    line-height: 1;

    cursor: pointer;
    flex-shrink: 0;
}

.cart-icon-button:hover {
    background: #e8e8e8;
}

.cart-remove-button {
    color: #a12626;
}

.cart-quantity-input {
    width: 70px;
    padding: 0.55rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.cart-item-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.cart-item-thumbnail {
    flex: 0 0 80px;
}

.cart-item-thumbnail img {
    display: block;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-content {
    flex: 1;
    min-width: 0;
}

.cart-item-detail-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.cart-item-detail-link:hover {
    text-decoration: none;
}

.cart-item-detail-link .cart-item-detail {
    cursor: pointer;
}

/* ---------------------------------------------------------
   ANALYTICS
   --------------------------------------------------------- */

.analytics-table {
    width: 100%;
    overflow-x: auto;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.analytics-header,
.analytics-row {
    display: grid;
    grid-template-columns:
            minmax(140px, 2fr)
            repeat(4, minmax(65px, 0.75fr));
    align-items: center;
    column-gap: 0.5rem;
    padding: 0.75rem;
}

.analytics-header {
    font-weight: 700;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.analytics-row:nth-child(odd) {
    background: rgba(0, 0, 0, 0.04);
}

.analytics-row {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.analytics-row:last-child {
    border-bottom: none;
}

.analytics-item {
    font-weight: 600;
}

.analytics-number {
    text-align: center;
}

.analytics-total {
    font-weight: 700;
    font-size: 1.05rem;
}

.analytics-body .analytics-row:nth-child(even) {
    background: rgba(0, 0, 0, 0.04);
}

.revenue-header,
.revenue-row {
    grid-template-columns:
            minmax(160px, 2fr)
            minmax(70px, 0.75fr)
            minmax(100px, 1fr);
}

.analytics-summary-row {
    border-top: 2px solid #bbb;
    background: transparent !important;
    font-weight: 700;
}

/* ---------------------------------------------------------
   DASHBOARD
   --------------------------------------------------------- */

.dashboard-filter {
    margin-bottom: 0.75rem;
}

.dashboard-filter form {
    display: block;
}

.dashboard-filter .text-input {
    width: 100%;
    margin: 0;
}

.dashboard-period {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

.dashboard-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dashboard-metric {
    padding: 1.4rem 1rem;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: white;
}

.dashboard-label {
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
}

.dashboard-metric-value {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.1;
}

.text-notification-option {
    padding: 0.8rem;
    background: #f5f4ef;
    border-radius: 8px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-weight: 600;
    cursor: pointer;
}

.checkbox-label input {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
}

.text-notification-option .field-help {
    margin-top: 0.4rem;
    margin-left: 1.65rem;
}

.pickup-schedule {
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}

.pickup-schedule-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    padding: 0.2rem 0;
}

.pickup-schedule-day {
    font-weight: 600;
}

.pickup-schedule-hours {
    text-align: right;
    white-space: nowrap;
}

.vendor-schedule-row {
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
}

.vendor-schedule-row:last-child {
    border-bottom: 0;
}

.vendor-schedule-day {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.vendor-schedule-check {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-right: 1.25rem;
    margin-bottom: 0.75rem;
}

.vendor-schedule-times {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.vendor-schedule-times .text-input {
    width: 100%;
    box-sizing: border-box;
}

.vendor-pickup-cutoff {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vendor-schedule-times .vendor-pickup-cutoff-days {
    width: 70px;
    flex: 0 0 70px;
}

.pickup-cutoff-message {
    margin-top: 10px;
    color: red;
}

.delivery-rate-header,
.delivery-rate-row {
    display: grid;
    grid-template-columns: 80px 100px 95px;
    gap: 0.75rem;
    align-items: center;
}

.delivery-rate-header {
    margin-bottom: 0.4rem;
    font-weight: 700;
}

.delivery-rate-row {
    margin-bottom: 0.6rem;
}

.delivery-rate-miles,
.delivery-rate-fee {
    width: 100%;
    min-width: 0;
}

.delivery-fee-input {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.delivery-rate-remove {
    width: 90px;
    padding: 0.45rem 0.65rem;
    white-space: nowrap;
}

/* ---------------------------------------------------------
   VENDOR DELIVERY DAYS
   --------------------------------------------------------- */

.vendor-delivery-day-row {
    padding: 14px 0;
    border-bottom: 1px solid #ddd;
}

.vendor-delivery-day-row:last-child {
    border-bottom: none;
}

.vendor-delivery-day-settings {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 12px;
    margin-top: 10px;
}

.vendor-delivery-cutoff {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vendor-delivery-cutoff-days {
    width: 70px;
}

.vendor-delivery-cutoff-time {
    width: 130px;
}


/* Item Image */

.item-image-card {
    margin-top: 1rem;
}

.item-image-preview {
    max-width: 400px;
}

.item-image-preview img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Shop Item Image */

.shop-item-image {
    margin: -18px -18px 16px -18px;
    padding-top: 16px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    text-align: center;
}

.shop-item-image img {
    display: inline-block;
    width: 75%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 8px;
}



/* Shop Item Detail */

.shop-detail-card {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.shop-detail-image {
    margin-bottom: 20px;
    text-align: center;
}

.shop-detail-image img {
    max-width: 100%;
    max-height: 500px;
    height: auto;
    border-radius: 8px;
}

.shop-detail-description {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.5;
}

.shop-detail-price {
    margin-top: 0.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #555;
}

.shop-detail-description {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.5;
}

.shop-detail-description p {
    margin: 0 0 8px 0;
}

.shop-detail-description ul,
.shop-detail-description ol {
    margin: 4px 0 10px 22px;
    padding: 0;
}

.shop-detail-description li {
    margin-bottom: 3px;
}

/* Description Editor */

.description-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.description-editor-button {
    min-height: 34px;
    padding: 6px 10px;

    border: 1px solid #ccc;
    border-radius: 6px;

    background: #f5f5f5;
    color: #333;

    font-family: inherit;
    font-size: 14px;

    cursor: pointer;
}

.description-editor-button:hover {
    background: #e8e8e8;
}

/* Description Preview */

.description-preview {
    margin-top: 12px;
    padding: 16px;

    border: 1px solid #ccc;
    border-radius: 8px;

    background: #fafafa;

    font-size: 16px;
    line-height: 1.5;
}

.description-preview h2 {
    margin: 10px 0 6px 0;
    font-size: 20px;
}

.description-preview ul,
.description-preview ol {
    margin: 4px 0 10px 22px;
    padding: 0;
}

.description-preview li {
    margin-bottom: 3px;
}

.shop-detail-cart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Compact Shop Card */

.shop-compact-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.shop-compact-image {
    flex: 0 0 90px;
}

.shop-compact-image img {
    display: block;
    width: 90px;
    height: 90px;

    object-fit: cover;
    border-radius: 8px;
}

.shop-compact-content {
    flex: 1;
    min-width: 0;
}

.shop-compact-name {
    display: block;

    margin-bottom: 5px;

    color: inherit;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.shop-compact-name:hover {
    text-decoration: underline;
}

.shop-compact-content form {
    margin-top: 10px;
}

.shop-compact-content > .button-secondary {
    margin-top: 10px;
}

/* ---------------------------------------------------------
   SHOP FILTER
   --------------------------------------------------------- */
.filter {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 14px;
}

.filter-menu {
    position: relative;
}

.filter-toggle {
    min-width: 110px;
    padding: 9px 14px;

    border: 1px solid #cbd4cc;
    border-radius: 8px;

    background: white;
    color: #315b3a;

    font-size: 15px;
    font-weight: 600;

    text-align: center;
    cursor: pointer;
    list-style: none;
}

.filter-toggle::-webkit-details-marker {
    display: none;
}

.filter-toggle::after {
    content: " \25BE";
}

.filter-options {
    position: absolute;
    top: 46px;
    right: 0;
    z-index: 100;

    display: flex;
    flex-direction: column;

    width: 190px;
    padding: 8px;

    background: white;
    border: 1px solid #d5d5d5;
    border-radius: 8px;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.filter-option {
    width: 100%;
    padding: 10px 12px;

    border: 0;
    border-radius: 6px;

    background: transparent;
    color: #333;

    font-family: inherit;
    font-size: 15px;
    text-align: left;

    cursor: pointer;
}

.filter-option:hover {
    background: #f2f4f2;
}

.filter-option.selected {
    background: #e8ece8;
    color: #315b3a;
    font-weight: 700;
}

.filter-subcategory {
    padding-left: 28px;
    font-size: 14px;
}
.filter-item[hidden] {
    display: none !important;
}

.cart-control {
    width: 100%;
}

.shop-compact-content .cart-control {
    margin-top: 10px;
}

.shop-detail-card .cart-control {
    margin-top: 20px;
    margin-bottom: 20px;
}

.shop-detail-card .button-secondary {
    margin-top: 20px;
}

.cart-control-add-form {
    margin: 0;
}

.cart-stepper {
    display: grid;
    grid-template-columns: 52px 1fr 52px;
    align-items: center;

    width: 100%;
    min-height: 48px;

    background: var(--color-primary);
    color: white;

    border-radius: var(--button-radius);
    overflow: hidden;
}

.cart-stepper-button {
    align-self: stretch;

    border: 0;
    background: transparent;
    color: white;

    font-family: inherit;
    font-size: 24px;
    font-weight: 700;

    cursor: pointer;
}

.cart-stepper-minus .fa-trash-can {
    color: white !important;
    opacity: 1;
}

.cart-stepper-button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
}

.cart-stepper-button:disabled {
    opacity: 0.35;
    cursor: default;
}

.cart-stepper-quantity {
    text-align: center;

    font-size: 18px;
    font-weight: 700;
}

.vendor-nav-brand-identity {
    display: flex;
    align-items: center;
    gap: 8px;

    min-width: 0;
}

.vendor-nav-logo {
    width: 36px;
    height: 36px;

    object-fit: contain;
    flex-shrink: 0;

    filter: brightness(0) invert(1);
}

.vendor-nav-brand-name {
    color: white;
    font-weight: 700;
}

.vendor-logo-preview {
    margin: 12px 0 18px;
}

.vendor-logo-preview img {
    display: block;

    width: auto;
    max-width: 220px;
    max-height: 140px;

    object-fit: contain;
}

.checkout-item-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;

    padding: 6px 0;
}

.checkout-item-name {
    min-width: 0;
}

.checkout-item-detail {
    white-space: nowrap;
    text-align: right;
}

.error-page {
    max-width: 520px;
    margin: 60px auto;
    text-align: center;
}

.error-page h1 {
    margin-top: 0;
}

.error-page .button {
    margin-top: 24px;
}

.header-login {
    flex-shrink: 0;
    padding: 7px 10px;

    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 7px;

    background: rgba(255, 255, 255, 0.12);
    color: white;

    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.header-login:hover {
    background: rgba(255, 255, 255, 0.22);
}

.error-log-card {
    display: block;
    padding: 14px 16px;
    margin-bottom: 10px;

    background: var(--color-card);
    border: var(--card-border);
    border-radius: var(--card-radius);

    color: inherit;
    text-decoration: none;
}

.error-log-card:hover {
    text-decoration: none;
}

.error-log-date {
    margin-bottom: 4px;
    font-size: 12px;
    color: #777;
}

.error-log-summary {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 4px;
    font-size: 15px;
}

.error-log-request {
    margin-bottom: 5px;

    font-size: 14px;
    font-weight: 600;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.error-log-message {
    font-size: 13px;
    color: #666;

    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.error-detail-message {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.error-stack-trace {
    margin: 0;
    padding: 12px;

    max-height: 350px;
    overflow: auto;

    background: #f7f7f7;
    border-radius: 6px;

    font-size: 12px;
    line-height: 1.4;

    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.error-resolution-notes {
    margin-top: 12px;
    padding: 12px;

    background: #f7f7f7;
    border-radius: 6px;

    white-space: pre-wrap;
}

.error-detail-card h2 {
    margin: 0 0 6px 0;
}

.error-detail-card {
    padding: 12px 14px;
}

.vendor-admin-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.vendor-inactive {
    color: #a12626;
}

.promotion-item-note {
    margin-top: 0.15rem;
    font-size: 0.8rem;
    font-weight: 400;
    color: #666;
}

.promotion-free {
    font-weight: 700;
}

.promotion-legacy-action {
    flex-basis: 100%;
    width: 100%;
    margin-top: 8px;
}

/* =========================================================
   ORDER DETAIL
   ========================================================= */

.order-detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.order-detail-section {
    padding: 16px;

    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;

    box-sizing: border-box;
}

.order-detail-section h2 {
    margin: 0 0 14px;
    font-size: 1.15rem;
}

.order-detail-section h3 {
    margin: 18px 0 8px;
    font-size: 1rem;
}

.order-detail-highlight {
    margin-bottom: 5px;
    font-weight: 700;
}

.order-detail-note {
    margin-top: 3px;
    font-size: 0.85rem;
    color: #666;
}

.order-detail-info-list {
    margin-top: 18px;
}

.order-detail-info-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;

    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.order-detail-info-row:last-child {
    border-bottom: 0;
}

.order-detail-info-row strong {
    text-align: right;
}

.order-detail-payment-status {
    margin-bottom: 12px;
    font-weight: 700;
}

.order-detail-balance {
    margin-top: 5px;
    padding-top: 8px;
    border-top: 1px solid #ccc;
}

.order-detail-payment-history {
    margin-top: 18px;
}

.order-payment-history-row {
    padding: 7px 0;
    border-bottom: 1px solid #eee;
}

.order-payment-history-row:last-child {
    border-bottom: 0;
}

.order-payment-history-row > div:last-child {
    margin-top: 2px;
}

.order-payment-history-row strong {
    margin-left: 5px;
}

.order-detail-actions {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}



.vendor-delivery-day-settings.vendor-schedule-times {
    grid-template-columns: 1fr 1fr;
}

.herd-animal-link {
    display: block;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.herd-animal-link[hidden] {
    display: none !important;
}

.herd-animal-card {
    cursor: pointer;
}

.herd-animal-header {
    margin-bottom: 12px;
}

.herd-animal-header strong {
    display: block;
    font-size: 1.2rem;
}

.herd-animal-header span {
    display: block;
    margin-top: 3px;
}

.herd-location-search {
    margin-bottom: 1rem;
}

.herd-location-group {
    margin-bottom: 1rem;
}

.herd-location-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.herd-location-header h2 {
    margin: 0;
}

.herd-location-header span {
    font-size: 0.9rem;
}

.herd-location-animals {
    display: flex;
    flex-direction: column;
}

.herd-move-animal-row {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 8px 4px;
    gap: 12px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}

.herd-move-animal-row:last-child {
    border-bottom: none;
}

.herd-move-animal-row input,
.herd-group-checkbox{
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.herd-move-ear-tag {
    font-size: 1.1rem;
    font-weight: 700;
}

.herd-move-animal-name {
    margin-left: auto;
    font-size: 0.9rem;
}

.herd-move-bar {
    position: sticky;
    bottom: 0;
    z-index: 1000;

    padding: 12px;
    margin-top: 20px;

    background: white;
    border-top: 1px solid #ccc;
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.12);
}

.herd-selected-count {
    margin-bottom: 8px;
    font-weight: 700;
}

.herd-move-bar select {
    width: 100%;
    margin-bottom: 8px;
}

.herd-move-bar button {
    width: 100%;
}

.herd-move-animal-row[hidden] {
    display: none !important;
}

.herd-location-group[hidden] {
    display: none !important;
}

.subscription-run-card {
    margin-bottom: 18px;
}

.subscription-run-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    margin-bottom: 8px;
    border-bottom: 1px solid #ddd;
}

.subscription-run-status {
    font-weight: 700;
}

.subscription-run-error {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
    font-size: 0.9rem;
}

.subscription-payment-id {
    overflow-wrap: anywhere;
}

