/* Shared card workspace for CCC and authenticated standalone staff. */
.store-workspace-page .ccc-store-shell {
    height: 100dvh;
    min-height: 0;
    padding: 4px;
}
.store-workspace-page .ccc-store-tool {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1904px;
    height: 100%;
    min-height: 0;
    padding: 4px 6px 6px;
    border-radius: 6px;
}
.store-workspace-page [hidden] { display: none !important; }
.store-workspace-page .store-picker-option[aria-disabled=true] {
    color: #64748b;
    background: #f1f5f9;
    cursor: default;
}
.ccc-store-header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 4px 6px 8px;
}
.ccc-store-header h1 {
    flex: 0 1 auto;
    min-width: 0;
    margin: 0;
    color: var(--color-brand-primary);
    font-size: 22px;
    line-height: 1.2;
}
.ccc-store-header .store-navigation-title { flex: 1 1 auto; justify-content: flex-start; }
.ccc-store-header .btn { flex-shrink: 0; min-height: 44px; }
.ccc-store-header .ccc-store-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    max-width: min(45%, 360px);
    padding: 6px 12px;
    color: var(--color-brand-primary);
    font-size: 16px;
    font-weight: 700;
}
.ccc-store-back svg { flex: 0 0 28px; width: 28px; height: 28px; }
.ccc-store-back-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccc-store-header .ccc-store-back:disabled {
    opacity: 1;
    color: #64748b;
    background: #e9edf2;
    border-color: #b7c2ce;
}
.store-workspace-page .store-system-status {
    flex: 0 0 auto;
    min-height: 34px;
    margin-bottom: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
}
.ccc-store-workspace, .ccc-store-panel { min-width: 0; min-height: 0; }
.ccc-store-workspace { display: flex; flex-direction: column; flex: 1 1 auto; }
.ccc-store-panel {
    flex: 1 1 auto;
    width: 100%;
    padding: 16px;
    overflow: auto;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-section-card);
    background: #f8fafc;
}
.ccc-store-panel h2 { margin: 0 0 12px; color: var(--color-brand-primary); font-size: 22px; }
.store-workspace-page #store-staff-menu {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0;
}
/* Navigation lives on the title line; tiles fill the entire card evenly. */
.store-workspace-page .menu-tiles {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    margin: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: clamp(8px, 1.4vw, 20px);
}
.store-workspace-page .menu-tile { min-width: 0; min-height: 0; }
.store-workspace-page .menu-tile-title {
    flex: 0 0 auto;
    font-size: clamp(14px, 1.8vw, 24px);
    overflow-wrap: anywhere;
}
.store-workspace-page .menu-tile img,
.store-workspace-page .menu-tile svg {
    flex: 1 1 auto;
    min-height: 0;
    height: 0;
    padding: 10px 12px;
}
.store-workspace-page .store-transaction-screen { margin-top: 0; }
.store-workspace-page #store-launch-form { max-width: 840px; }
.store-workspace-page .my-staff-form { margin: 0; }
.store-workspace-page .my-staff-layout { grid-template-columns: 200px minmax(0, 1fr) 230px; gap: 16px; }
.store-workspace-page .my-staff-fields { grid-template-columns: 135px minmax(0, 1fr); }
.store-workspace-page .my-staff-actions button:disabled {
    background: #e9edf2; color: #64748b; border-color: #b7c2ce; box-shadow: none; cursor: default;
}
@media (max-width: 1100px) {
    .store-workspace-page .my-staff-layout { grid-template-columns: 165px minmax(0, 1fr) 195px; gap: 12px; }
    .store-workspace-page .my-staff-fields { grid-template-columns: 115px minmax(0, 1fr); }
}
@media (max-width: 750px) {
    .store-workspace-page .my-staff-layout { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .ccc-store-header { gap: 8px; }
    .ccc-store-header h1 { font-size: 19px; }
    .ccc-store-panel { padding: 12px; }
}
