/* =========================================================
   RideMonkey Bike Settings — Hub Page

   This page is now a simple hub linking into dedicated
   sub-pages (Service Setup, Service History Report) rather
   than holding all their content directly — see
   service-setup.css for the schedule/coverage styling that
   used to live in this file.
   ========================================================= */

.rm-bike-settings {
    width: 100%;
}

.rm-bike-settings .rm-page-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}


/* ---------------------------------------------------------
   Hub link row — same visual pattern as the Dashboard's own
   link rows, copied here (rather than depending on
   dashboard.css being loaded) so this page stays self-
   contained, matching this project's per-page CSS pattern.
   --------------------------------------------------------- */

.rm-bike-settings .rm-dashboard-link {
    display: flex;

    align-items: center;
    gap: 12px;

    padding: 14px 20px;

    border-bottom: 1px solid #f0f0f0;

    color: #222222;
    text-decoration: none;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;

    transition: color 0.15s ease, background 0.15s ease;
}

.rm-bike-settings .rm-dashboard-link:last-child {
    border-bottom: none;
}

.rm-bike-settings .rm-dashboard-link:hover,
.rm-bike-settings .rm-dashboard-link:focus {
    background: #faf9f6;

    color: #ff4b00;
}

.rm-bike-settings .rm-dashboard-link-icon {
    font-size: 18px;
    line-height: 1;
}

.rm-bike-settings .rm-dashboard-link-text {
    display: flex;
    flex: 1;
    flex-direction: column;

    gap: 2px;
}

.rm-bike-settings .rm-dashboard-link-label {
    line-height: 1.2;
}

.rm-bike-settings .rm-dashboard-link-meta {
    color: #666666;

    font-size: 12px;
    font-weight: 600;
}

.rm-bike-settings .rm-dashboard-link .rm-card-arrow {
    color: #ff4b00;

    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 767px) {

    .rm-bike-settings .rm-dashboard-link {
        padding: 12px 16px;

        font-size: 14px;
    }

}


/* ---------------------------------------------------------
   Archive / Delete — same row pattern as the link rows
   above, but expandable in place (<details>) rather than
   navigating to another page. The toggle arrow points down
   instead of right, and flips on open, to visually signal
   "expands here" rather than "leads elsewhere".
   --------------------------------------------------------- */

.rm-dashboard-link-expand summary {
    list-style: none;

    cursor: pointer;
}

.rm-bike-settings .rm-dashboard-link-expand:last-child .rm-dashboard-link {
    border-bottom: none;
}

.rm-dashboard-link-expand summary::-webkit-details-marker {
    display: none;
}

.rm-dashboard-link-toggle {
    flex-shrink: 0;

    color: #ff4b00;

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

.rm-dashboard-link-toggle::after {
    content: '▾';
}

.rm-dashboard-link-expand[open] .rm-dashboard-link-toggle::after {
    content: '▴';
}

.rm-dashboard-link-delete .rm-dashboard-link-label {
    color: #c0392b;
}

.rm-dashboard-link-meta-warning {
    color: #c0392b !important;
}

.rm-dashboard-link-expand-content {
    padding: 4px 20px 18px;
}

.rm-dashboard-link-expand-warning {
    margin: 0 0 12px;

    color: #666666;

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

.rm-bike-archive-button,
.rm-bike-unarchive-button {
    display: block;
    width: 100%;
    padding: 11px;

    background: #faf9f6;

    border: 1px solid #dddddd;
    border-radius: 20px;

    color: #222222;

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

    cursor: pointer;
}

.rm-bike-archive-button:hover,
.rm-bike-unarchive-button:hover {
    border-color: #ff4b00;

    color: #ff4b00;
}

.rm-bike-delete-button {
    display: block;
    width: 100%;
    padding: 11px;

    background: #ffffff;

    border: 1px solid #c0392b;
    border-radius: 20px;

    color: #c0392b;

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

    cursor: pointer;
}

.rm-bike-delete-button:hover {
    background: #c0392b;

    color: #ffffff;
}


@media (max-width: 767px) {

    .rm-dashboard-link-expand-content {
        padding: 4px 16px 14px;
    }

}