/* portal/assets/css/portal.css */
/* =====================================================================
   Our Wedding Hub — /portal/ stylesheet
   One CSS file for this area, per Blue Logic convention.

   Colours are Mel's confirmed palette (light latte, sage, white) —
   the exact hex values below are a reasonable placeholder, NOT
   confirmed swatches. Swap these three variables once Mel gives
   exact hex codes; nothing else needs to change.
   ===================================================================== */

:root {
    --color-latte: #F3EAD9;   /* placeholder — confirm exact hex */
    --color-sage:  #A3AD8C;   /* placeholder — confirm exact hex */
    --color-white: #FFFFFF;
    --color-text:  #33312E;
    --color-error: #B3413C;

    /* One deliberate exception to the 3-colour palette: a genuinely
       bright, attention-grabbing green for the "online" dot only, so
       it reads as "live" at a glance rather than blending into the
       sage/white pill it sits on. Not used anywhere else. */
    --color-online: #22C55E;

    /* A darker shade of the same sage, for text that needs to stand
       out against the latte background without leaving the palette's
       green family — e.g. the couple's name in the Management View
       heading. */
    --color-sage-dark: #59663D;

    --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-base);
    background: var(--color-latte);
    color: var(--color-text);
}

a { color: inherit; }

/* ---- header / wordmark -------------------------------------------- */
/* No logo image yet (still waiting on the file from Mel) — plain text
   wordmark for now. Swap this block for an <img> once LOGO_PATH in
   config.php is set; nothing else in the layout needs to change. */
.site-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-sage);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header .wordmark {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.site-header .wordmark-link {
    text-decoration: none;
}

.site-header nav a {
    margin-left: 1.5rem;
    text-decoration: none;
    font-size: 0.95rem;
}

/* ---- "Management View" banner (admin viewing a couple's portal) ------- */
.managing-banner {
    background: var(--color-sage);
    color: var(--color-white);
    padding: 0.7rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.managing-banner i {
    font-size: 1.15rem;
}

/* the couple's name in "Managing X & Y as Mel" — darker sage so it
   stands out from the heading's own dark text colour. */
.managed-couple-name {
    color: var(--color-sage-dark);
}

/* Couple online/offline indicator — no pill/badge chrome, just a
   dot + text, right-aligned on the "Managing X as Mel" heading line
   (page-header-row) rather than inside the sage managing-banner, so
   it needs a colour that reads on the plain latte page background
   rather than white. Always shown while Mel is managing — green dot
   when the couple is active in their portal, red when they're not
   (re-using --color-error rather than a new one-off red). */
.online-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-sage-dark);
}

.online-pill i {
    font-size: 0.85rem;
    color: var(--color-online);
}

.online-pill-offline i {
    color: var(--color-error);
}

/* ---- layout ---------------------------------------------------------- */
.page-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.auth-wrap {
    max-width: 380px;
    margin: 4rem auto;
    background: var(--color-white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.auth-wrap h1 {
    margin-top: 0;
    font-size: 1.4rem;
}

/* ---- forms ------------------------------------------------------------ */
label { display: block; margin: 1rem 0 0.35rem; font-size: 0.9rem; }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--color-sage);
    border-radius: 6px;
    font-size: 1rem;
    background: var(--color-white);
}

textarea {
    font-family: var(--font-base);
    resize: vertical;
}

button, .btn {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 0.65rem 1.25rem;
    background: var(--color-sage);
    color: var(--color-white);
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
}

button:hover, .btn:hover { opacity: 0.9; }

.error {
    background: #FBEAE9;
    color: var(--color-error);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.success {
    background: #EAF3E5;
    color: #3f6b2c;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.muted {
    color: #8a8a86;
    font-size: 0.9rem;
}

/* generic "hide this" utility — e.g. a form field only shown once a
   dropdown picks the option that needs it (Tasks' owner and task
   type "+ Add new…" fields are the first uses, task-form.js toggles
   it), reusable anywhere else the same show/hide-on-choice pattern
   comes up. */
.is-hidden {
    display: none;
}

/* generic "?" info icon with a hover/focus explanation bubble — a
   small, reusable way to explain a field without crowding the label
   itself. Works without JS (plain CSS :hover/:focus-within) and
   without a mouse (the icon itself is focusable, so Tab + the bubble
   shows). The icon also carries its own aria-label with the same
   text, so screen reader users get it immediately on focus without
   needing the visual bubble at all — which is why the bubble itself
   is aria-hidden. Tasks' Task type field is the first use. */
.info-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.3rem;
    color: var(--color-sage-dark);
    cursor: help;
}

.info-tooltip-bubble {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0.4rem;
    width: 16rem;
    max-width: 60vw;
    padding: 0.6rem 0.75rem;
    border-radius: 0.5rem;
    background: var(--color-text);
    color: var(--color-white);
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
    z-index: 5;
}

.info-tooltip:hover .info-tooltip-bubble,
.info-tooltip:focus .info-tooltip-bubble,
.info-tooltip:focus-within .info-tooltip-bubble {
    display: block;
}

/* the task type's icon (Font Awesome, auto-picked from the label by
   WeddingTaskTypeModel::iconFor() — no longer a typed-in emoji, which
   was more fiddly to enter from a desktop than it was worth), shown
   beside the label both on the Tasks list and in Setup's list of
   configured task types — the one style shared by both, so it lives
   here rather than tasks.css. */
.task-type-icon {
    margin-right: 0.3rem;
    color: var(--color-sage-dark);
}

/* ---- page header row (title + a primary action button) ----------------- */
.page-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.page-header-row h1 { margin: 0; }

.page-header-row .btn { margin-top: 0; }

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-sage);
}

.back-link {
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--color-text);
}

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

/* ---- dashboard: one-time welcome banner (first login only) -------------- */
.welcome-banner {
    background: var(--color-white);
    border: 1px solid var(--color-sage);
    border-radius: 10px;
    padding: 1.5rem 1.75rem;
    margin: 1.25rem 0 1.75rem;
}

.welcome-banner h2 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
}

.welcome-banner p {
    margin: 0.5rem 0 0;
    line-height: 1.5;
}

.welcome-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.welcome-banner-actions .btn { margin-top: 0.5rem; }

/* ---- dashboard: card grid, one card per module --------------------------- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.dashboard-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background: var(--color-white);
    border-radius: 10px;
    padding: 1.25rem;
    text-decoration: none;
    color: var(--color-text);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.dashboard-card-disabled {
    opacity: 0.65;
    box-shadow: none;
}

.dashboard-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 8px;
    background: var(--color-latte);
    color: var(--color-sage);
    font-size: 1.1rem;
}

.dashboard-card-disabled .dashboard-card-icon {
    color: #8a8a86;
}

.dashboard-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.dashboard-card-title {
    font-weight: 600;
    font-size: 1.02rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dashboard-card-desc {
    font-size: 0.85rem;
    color: #8a8a86;
}

.dashboard-card-stat {
    font-size: 0.88rem;
    margin-top: 0.15rem;
}

.dashboard-card-cta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-sage);
}

.coming-soon-badge {
    display: inline-block;
    background: var(--color-latte);
    color: #8a8a86;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}

/* ---- dashboard: admin-only "Couple account" card (Manage mode only) ---- */
.dashboard-card-account {
    border: 1px solid #8a6d1f;
}

.admin-only-badge {
    display: inline-block;
    background: #FBF0DC;
    color: #8a6d1f;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}

/* ---- filters (guest list, and future list pages) ------------------------ */
.filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

/* select/input inside a filter bar were inheriting the shared
   width: 100% rule meant for stacked form fields (card-form,
   item-form), which forced every filter control onto its own full
   width line. Sized to content instead so a filter row with several
   controls (Tasks: status, owner, bucket, a date range) stays one
   compact line and only wraps if the screen is genuinely too narrow. */
.filters select,
.filters input[type="date"] {
    width: auto;
}

/* ---- data tables (guest list, and future list pages) --------------------- */
/* Every list page wraps its <table class="data-table"> in this so a
   table wider than the screen scrolls sideways instead of squashing
   illegibly or breaking the page's own layout — same pattern as /admin/. */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.25rem;
}

.table-scroll table.data-table {
    min-width: 640px;
    margin-bottom: 0;
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
}

table.data-table th,
table.data-table td {
    text-align: left;
    padding: 0.65rem 0.9rem;
    border-bottom: 1px solid var(--color-latte);
    font-size: 0.92rem;
}

table.data-table th {
    background: var(--color-sage);
    color: var(--color-white);
    font-weight: 600;
}

table.data-table tr:last-child td { border-bottom: none; }

table.data-table td.actions-cell {
    white-space: nowrap;
    width: 1%;
}

/* ---- sortable column headers (Tasks, and any future list page) ----------- */
/* A plain GET link per header — toggling sort/dir and reloading the
   page, same pattern as the filter bar above, rather than a separate
   client-side sort that would disagree with it. Every header looks
   clickable, even ones that aren't the active sort, via the faded
   neutral icon .sortable-th-icon-inactive supplies. */
table.data-table th a.sortable-th {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: inherit;
    text-decoration: none;
}

table.data-table th a.sortable-th:hover {
    text-decoration: underline;
}

.sortable-th-icon {
    font-size: 0.78rem;
}

.sortable-th-icon-inactive {
    opacity: 0.45;
}

/* ---- status badges (guest RSVP, and future list pages) ------------------- */
.status-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.status-awaiting {
    background: #FBF0DC;
    color: #8a6d1f;
}

.status-badge.status-attending {
    background: var(--color-sage);
    color: var(--color-white);
}

.status-badge.status-not-attending {
    background: #FBEAE9;
    color: var(--color-error);
}

/* Couple account status (admin-only "Couple account" card) — same
   three colours as the identical badges on the admin Couples list. */
.status-badge.status-pending {
    background: #FBF0DC;
    color: #8a6d1f;
}

.status-badge.status-active {
    background: var(--color-sage);
    color: var(--color-white);
}

.status-badge.status-suspended {
    background: #FBEAE9;
    color: var(--color-error);
}

/* Vendor status (Vendors list) — confirmed/in-progress reuse the same
   sage/amber meaning as elsewhere; shortlisted and not-selected are
   new, deliberately quieter states (still deciding / decided against)
   rather than a straight "good/bad" read. */
.status-badge.status-confirmed {
    background: var(--color-sage);
    color: var(--color-white);
}

.status-badge.status-in-progress {
    background: #FBF0DC;
    color: #8a6d1f;
}

.status-badge.status-shortlisted {
    background: rgba(163, 173, 140, 0.25);
    color: var(--color-text);
}

.status-badge.status-not-selected {
    background: #EFEDE9;
    color: #8a8a86;
}

/* Task status (Tasks list) — in-progress reuses the exact rule above
   (same meaning, same class name). completed reads as success (same
   sage as confirmed/attending/active); not-started/cancelled share
   the quiet neutral grey used for shortlisted/not-selected; on-hold
   gets its own muted beige-grey so a paused task doesn't read as
   either "still going" (amber) or "done" (grey). */
.status-badge.status-not-started {
    background: var(--color-latte);
    color: var(--color-text);
}

.status-badge.status-on-hold {
    background: #EAE6DD;
    color: #7a7566;
}

.status-badge.status-completed {
    background: var(--color-sage);
    color: var(--color-white);
}

.status-badge.status-cancelled {
    background: #EFEDE9;
    color: #8a8a86;
}

/* inline "Overdue" flag — started as Budget-only (budget.css), now
   also used by Tasks, so it's promoted here as genuinely shared
   chrome rather than duplicated in two module stylesheets. */
.overdue-flag {
    color: var(--color-error);
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* ---- icon links (guest row actions: edit, remove) ------------------------ */
.icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 6px;
    color: var(--color-sage);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.icon-link:hover {
    background: var(--color-latte);
    color: var(--color-text);
}

.icon-link.icon-danger:hover {
    background: #FBEAE9;
    color: var(--color-error);
}

/* icon-link used on a <button> (e.g. the remove-guest action) — strip
   the default button chrome the global button rule above would add. */
button.icon-link {
    margin-top: 0;
    padding: 0;
    background: none;
    border: none;
    font: inherit;
}

/* a mini one-button form sitting inline next to other row actions */
.inline-form {
    display: inline-block;
    margin: 0;
}

/* ---- stat chips (guest list summary: total, attending, …) --------------- */
.stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}

.stat-chip {
    background: var(--color-white);
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    min-width: 110px;
    text-align: center;
}

.stat-chip .stat-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
}

.stat-chip .stat-label {
    font-size: 0.78rem;
    color: #8a8a86;
}

/* ---- guest edit form: card layout + checkboxes --------------------------- */
.card-form {
    max-width: 560px;
    background: var(--color-white);
    border-radius: 10px;
    padding: 1.75rem 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.card-form textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--color-sage);
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--font-base);
    background: var(--color-white);
    resize: vertical;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
}

.form-actions button,
.form-actions .btn {
    margin-top: 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0 0.35rem;
    font-size: 0.9rem;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* a cluster of checkboxes (guest form's "Attending" extra-event list) */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin: 0.5rem 0 1rem;
}

.checkbox-group .checkbox-label {
    margin: 0;
    flex: 0 0 auto;
}

/* ---- setup page -------------------------------------------------------- */
.setup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.setup-card {
    background: var(--color-white);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}

.setup-card h2 {
    margin-top: 0;
    font-size: 1.05rem;
}

.setup-card .muted {
    color: #8a8a86;
    font-size: 0.9rem;
}

.item-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--color-latte);
    font-size: 0.92rem;
}

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

.item-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
    min-width: 0;
}

.item-form input[type="text"],
.item-form input[type="number"],
.item-form input[type="date"] {
    width: auto;
    flex: 1;
    min-width: 0;
    padding: 0.45rem 0.6rem;
}

.btn-small {
    margin-top: 0;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    background: var(--color-sage);
    color: var(--color-white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.btn-danger {
    background: transparent;
    color: var(--color-error);
    font-size: 1.1rem;
    line-height: 1;
    padding: 0.2rem 0.5rem;
}

.btn-danger:hover { opacity: 0.7; }

/* ---- mood board: palette swatches + inspiration image galleries ---------- */

/* explicit width/height for the mood statement box — belt-and-braces
   on top of the shared textarea rule above, so it reads as a proper
   full-width paragraph box rather than a default-sized HTML textarea. */
.palette-statement {
    width: 100%;
    min-height: 7rem;
}

.palette-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0 0.25rem;
}

.palette-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    font-size: 0.8rem;
    color: #8a8a86;
}

.palette-swatch input[type="color"] {
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 1px solid var(--color-sage);
    border-radius: 8px;
    background: none;
    cursor: pointer;
}

.moodboard-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.moodboard-image-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-latte);
}

.moodboard-image-card img {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.moodboard-image-label {
    display: block;
    padding: 0.35rem 0.5rem;
    font-size: 0.8rem;
    background: var(--color-white);
}

.moodboard-image-delete {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    margin: 0;
}

.moodboard-image-delete .icon-link {
    background: rgba(255, 255, 255, 0.85);
    width: 1.75rem;
    height: 1.75rem;
}

.moodboard-upload-form {
    flex-wrap: wrap;
}

.moodboard-upload-form input[type="file"] {
    flex: 1 1 220px;
    width: auto;
    padding: 0.4rem 0;
    border: none;
}

/* ---- narrow screens: stack things that are wider on desktop --------------- */
@media (max-width: 600px) {
    .page-wrap { padding: 1.25rem 1rem; }

    .page-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filters button { margin-top: 0; }

    .card-form { padding: 1.25rem; }

    .item-form {
        flex-wrap: wrap;
    }

    .item-form input[type="text"],
    .item-form input[type="number"],
    .item-form input[type="date"] {
        flex: 1 1 100%;
    }

    .welcome-banner-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .stat-row { gap: 0.6rem; }
    .stat-chip { flex: 1 1 45%; min-width: 0; }
}

/* ---- dietary chips (Guests list + Catering's dietary page) ------------- */
.diet-chip {
    display: inline-block;
    margin: 0 0.25rem 0.2rem 0;
    padding: 0.05rem 0.55rem;
    border-radius: 999px;
    background: var(--color-latte);
    color: var(--color-sage-dark);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.diet-other {
    display: block;
    font-size: 0.82rem;
    color: #8a8a86;
}

/* text for screen readers only (a field whose visible label is its tick-box) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---- dashboard: rearranging the cards (dashboard-arrange.js) ------------ */
.dashboard-arrange-bar {
    margin-top: 1rem;
    min-height: 2rem;
}

.dashboard-arrange-active {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 0.9rem;
}

.dashboard-arrange-active.is-hidden {
    display: none;
}

.dashboard-grid.is-arranging {
    margin-top: 0.75rem;
}

.dashboard-grid.is-arranging [data-card-key] {
    position: relative;
    outline: 2px dashed var(--color-sage);
    outline-offset: 2px;
    cursor: grab;
}

.dashboard-grid.is-arranging a.dashboard-card:hover {
    transform: none;
}

.dashboard-grid.is-arranging [data-card-key].is-dragging {
    opacity: 0.45;
    cursor: grabbing;
}

/* the arrows are only ever added by JS, and only shown while arranging */
.dashboard-card-move {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: none;
    gap: 0.3rem;
}

.dashboard-grid.is-arranging .dashboard-card-move {
    display: flex;
}

.dashboard-card-move button {
    width: 34px;
    height: 34px;
    border: 1px solid var(--color-sage);
    border-radius: 6px;
    background: var(--color-white);
    color: var(--color-sage-dark);
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
}

.dashboard-card-move button:hover,
.dashboard-card-move button:focus-visible {
    background: var(--color-sage);
    color: var(--color-white);
}

/* "Saved ✓" / error text beside autosaving controls (Catering's tasting and meal
   pages, the Dashboard card arranger) */
.autosave-status {
    font-size: 0.8rem;
}

.autosave-status.is-error {
    color: var(--color-error);
}
