/* rx-platadmin.css — the Platform admin screen, made calm and easy (owner, 2026-11-19).
 *
 * The screen is the app's own (it carries the "Platform admin" badge); nothing
 * here is a rebuild, only spacing, size and hierarchy, so a redraw of the app
 * can never break it. Every rule is scoped to body.rx-pa, which
 * js/rx-platadmin.js sets only on that screen - the store console and the
 * storefront are untouched.
 */

/* ---- the frame ---------------------------------------------------------- */
body.rx-pa .ms-topbar{
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(10, 7, 18, .88);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
body.rx-pa .ms-topbar-in{
    max-width: 1180px;
    margin: 0 auto;
    padding: 10px 18px;
    gap: 12px;
}
/* a running clock on a tool screen is noise: the date is in the invoices */
body.rx-pa .ms-clock{ display: none !important; }

body.rx-pa .ms-wrap{
    max-width: 1180px;
    margin: 0 auto;
    padding: 26px 18px 64px;
}

body.rx-pa .ms-page-head{
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}
body.rx-pa .ms-h1{
    margin: 0;
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.15;
    letter-spacing: -.01em;
}
body.rx-pa .ms-lead{
    margin: 6px 0 0;
    max-width: 62ch;
    font-size: 14px;
    line-height: 1.55;
    color: #a9a3bd;
}

/* ---- tabs --------------------------------------------------------------- */
body.rx-pa .ms-tabs{
    position: sticky;
    top: 56px;
    z-index: 50;
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    background: rgba(255, 255, 255, .04);
    overflow-x: auto;
    scrollbar-width: none;
}
body.rx-pa .ms-tabs::-webkit-scrollbar{ display: none; }
body.rx-pa .ms-tab{
    border: 0;
    padding: 9px 15px;
    border-radius: 10px;
    background: transparent;
    color: #cfc8e0;
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}
body.rx-pa .ms-tab:hover{ background: rgba(255, 255, 255, .06); color: #fff; }
body.rx-pa .ms-tab.is-on{
    background: linear-gradient(135deg, #FF7A18, #FFA53C);
    color: #12050A;
}

/* ---- the numbers -------------------------------------------------------- */
body.rx-pa .ms-kpis{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(172px, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}
body.rx-pa .ms-kpi{
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    background: rgba(255, 255, 255, .04);
}
body.rx-pa .ms-kpi-k{
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #a9a3bd;
}
body.rx-pa .ms-kpi > div:not(.ms-kpi-k):not(.ms-kpi-sub){
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
}
body.rx-pa .ms-kpi-sub{ font-size: 12px; color: #a9a3bd; }

/* ---- a store: one card, three visible actions, the rest tidy ------------ */
body.rx-pa .ms-rows{
    display: flex;
    flex-direction: column;
    gap: 12px;
}
body.rx-pa .ms-row{
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    background: rgba(255, 255, 255, .035);
}
body.rx-pa .ms-row:hover{ border-color: rgba(255, 165, 60, .35); }
body.rx-pa .ms-row-head{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
body.rx-pa .ms-row-main{ display: flex; align-items: center; gap: 12px; min-width: 0; }
body.rx-pa .ms-row-title{ font-size: 16px; font-weight: 700; }
body.rx-pa .ms-row-sub,
body.rx-pa .ms-row-meta{ font-size: 12.5px; color: #a9a3bd; }
body.rx-pa .ms-row-actions{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}
body.rx-pa .ms-row-actions .ms-btn,
body.rx-pa .ms-row-actions .ms-btn-sm{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
}
body.rx-pa .ms-row-actions [data-act="open"]{ box-shadow: 0 6px 18px rgba(255, 122, 24, .22); }
body.rx-pa .ms-row-actions [data-act="toggle"],
body.rx-pa .ms-row-actions [data-act="pos"]{ opacity: .92; }

/* ---- cards, forms, the domain panel ------------------------------------ */
body.rx-pa .ms-card{
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    background: rgba(255, 255, 255, .035);
}
body.rx-pa .ms-card-head{ margin-bottom: 14px; }
body.rx-pa .ms-card-title{ font-size: 15.5px; font-weight: 700; }
body.rx-pa .ms-form-grid{ gap: 12px; }
body.rx-pa .ms-label{ font-size: 12.5px; font-weight: 600; color: #cfc8e0; }
body.rx-pa .ms-input,
body.rx-pa .ms-select{ min-height: 40px; border-radius: 10px; }
body.rx-pa .ms-hint{ font-size: 11.5px; line-height: 1.5; color: #948da8; }
body.rx-pa .ms-dns-row{ align-items: center; }
body.rx-pa .ms-dns-copy{ min-height: 30px; }

/* ---- tables (customers) ------------------------------------------------ */
body.rx-pa .ms-inv-scroll{
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    overflow: auto;
}
body.rx-pa .ms-inv-table,
body.rx-pa .ms-cu-table{ width: 100%; border-collapse: collapse; font-size: 13px; }
body.rx-pa .ms-inv-table th,
body.rx-pa .ms-cu-table th{
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 10px 12px;
    background: #141020;
    text-align: start;
    font-size: 11px;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #a9a3bd;
}
body.rx-pa .ms-inv-table td,
body.rx-pa .ms-cu-table td{ padding: 10px 12px; border-top: 1px solid rgba(255, 255, 255, .06); }

/* ---- keyboard ---------------------------------------------------------- */
body.rx-pa .ms-btn:focus-visible,
body.rx-pa .ms-tab:focus-visible,
body.rx-pa .ms-input:focus-visible,
body.rx-pa .ms-select:focus-visible{ outline: 2px solid #FFA53C; outline-offset: 2px; }

/* ---- a phone ----------------------------------------------------------- */
@media (max-width: 720px){
    body.rx-pa .ms-wrap{ padding: 18px 14px 56px; }
    body.rx-pa .ms-topbar-in{ padding: 8px 14px; }
    body.rx-pa .ms-tabs{ top: 50px; }
    body.rx-pa .ms-kpis{ grid-template-columns: 1fr 1fr; gap: 10px; }
    body.rx-pa .ms-kpi{ padding: 13px 14px; }
    body.rx-pa .ms-kpi > div:not(.ms-kpi-k):not(.ms-kpi-sub){ font-size: 21px; }
    body.rx-pa .ms-row{ padding: 12px; }
    body.rx-pa .ms-row-head{ flex-direction: column; align-items: stretch; }
    body.rx-pa .ms-row-actions{
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        justify-content: stretch;
    }
    body.rx-pa .ms-row-actions > *{ width: 100%; }
    body.rx-pa .ms-card{ padding: 14px; }
}
