.fpm-app {
    --fpm-ink: #17212b;
    --fpm-muted: #657383;
    --fpm-line: #e4e9ee;
    --fpm-bg: #f4f7f9;
    --fpm-card: #fff;
    --fpm-primary: #0b766e;
    --fpm-primary-dark: #075c56;
    --fpm-green: #14845c;
    --fpm-red: #c83c47;
    --fpm-orange: #e88428;
    --fpm-blue: #2c66bd;
    --fpm-purple: #6c55b5;
    box-sizing: border-box;
    width: 100%;
    max-width: 1180px;
    margin: 24px auto;
    color: var(--fpm-ink);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.65;
}

.fpm-app *,
.fpm-app *::before,
.fpm-app *::after { box-sizing: border-box; }
.fpm-app h1,
.fpm-app h2,
.fpm-app h3,
.fpm-app p { margin-top: 0; }
.fpm-app a { text-decoration: none; }
.fpm-worker-app { max-width: 800px; }
.fpm-admin-wrap { margin-top: 16px; }
.fpm-admin-wrap .fpm-app { margin-right: 0; }

.fpm-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    overflow: hidden;
    min-height: 180px;
    margin-bottom: 18px;
    padding: 30px 32px;
    border-radius: 24px;
    color: #fff;
    background:
        radial-gradient(circle at 8% 20%, rgba(255,255,255,.16), transparent 25%),
        linear-gradient(135deg, #0a6d66 0%, #124d55 55%, #172f42 100%);
    box-shadow: 0 18px 45px rgba(20, 49, 59, .16);
}

.fpm-hero::after {
    content: "";
    position: absolute;
    left: -52px;
    bottom: -85px;
    width: 220px;
    height: 220px;
    border: 34px solid rgba(255,255,255,.06);
    border-radius: 50%;
}

.fpm-hero > * { position: relative; z-index: 1; }
.fpm-hero h1 { margin: 4px 0 8px; color: #fff; font-size: clamp(26px, 4vw, 38px); line-height: 1.25; font-weight: 900; }
.fpm-hero p { max-width: 670px; margin-bottom: 0; color: rgba(255,255,255,.82); font-size: 15px; }
.fpm-eyebrow { display: block; color: #8fe5d7; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.fpm-version,
.fpm-today { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; padding: 8px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: #fff; background: rgba(255,255,255,.10); backdrop-filter: blur(8px); font-size: 12px; font-weight: 700; }
.fpm-hero-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.fpm-stats-hero { background: linear-gradient(135deg, #563c9b, #2d3c72 57%, #18364b); }
.fpm-stats-hero .fpm-eyebrow { color: #d8cbff; }

.fpm-panel,
.fpm-store-card,
.fpm-route-panel {
    margin-bottom: 18px;
    padding: 24px;
    border: 1px solid var(--fpm-line);
    border-radius: 20px;
    background: var(--fpm-card);
    box-shadow: 0 7px 22px rgba(38, 55, 72, .055);
}

.fpm-section-title { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.fpm-section-title h2 { margin: 0 0 2px; color: var(--fpm-ink); font-size: 19px; font-weight: 900; }
.fpm-section-title p { margin: 0; color: var(--fpm-muted); font-size: 12px; }
.fpm-section-icon { display: grid; flex: 0 0 42px; height: 42px; place-items: center; border-radius: 13px; color: var(--fpm-primary); background: #e7f6f3; font-size: 20px; font-weight: 900; }

.fpm-grid { display: grid; gap: 14px; }
.fpm-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fpm-grid--icon-name { grid-template-columns: 90px 1fr; gap: 12px; }
.fpm-field { display: flex; flex-direction: column; gap: 7px; margin: 0 0 15px; }
.fpm-field > span { color: #31404d; font-size: 13px; font-weight: 800; }
.fpm-field > span b { color: var(--fpm-red); }
.fpm-field small { color: #7a8793; font-size: 11px; line-height: 1.5; }
.fpm-app input[type="text"],
.fpm-app input[type="search"],
.fpm-app input[type="url"],
.fpm-app input[type="number"],
.fpm-app select,
.fpm-app textarea {
    width: 100%;
    min-height: 48px;
    max-width: none;
    margin: 0;
    padding: 10px 13px;
    border: 1px solid #d5dce3;
    border-radius: 11px;
    outline: none;
    color: var(--fpm-ink);
    background: #fff;
    box-shadow: none;
    font: inherit;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.fpm-app textarea { min-height: 90px; resize: vertical; }
.fpm-app input:focus,
.fpm-app select:focus,
.fpm-app textarea:focus { border-color: #45a79c; box-shadow: 0 0 0 3px rgba(31, 142, 130, .12); }
.fpm-app input::placeholder,
.fpm-app textarea::placeholder { color: #a1abb4; opacity: 1; }
.fpm-store-picker { padding: 14px; border: 1px dashed #9bcfc8; border-radius: 14px; background: #f5fbfa; }
.fpm-store-picker select { border-color: #78bcb3; }
.fpm-auto-user { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 12px; margin-bottom: 15px; padding: 12px 14px; border: 1px solid #d7e7e3; border-radius: 12px; background: #f3faf8; }
.fpm-auto-user span { color: #62716e; font-size: 11px; font-weight: 800; }
.fpm-auto-user strong { color: var(--fpm-primary); font-size: 14px; }
.fpm-auto-user small { width: 100%; color: #7b8986; font-size: 10px; }
.fpm-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.fpm-date-shortcuts { display: flex; flex-wrap: wrap; gap: 6px; }
.fpm-date-shortcuts button { padding: 3px 9px; border: 1px solid #d4dce2; border-radius: 999px; color: #455562; background: #f7f9fa; font-family: inherit; font-size: 11px; cursor: pointer; }
.fpm-date-shortcuts button:hover { border-color: #7dbdb5; color: var(--fpm-primary); background: #edf8f6; }

.fpm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 9px 15px;
    border: 0;
    border-radius: 11px;
    color: var(--fpm-ink);
    background: #eef2f4;
    box-shadow: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    cursor: pointer;
    transition: transform .12s, filter .12s, box-shadow .12s;
}
.fpm-btn:hover { transform: translateY(-1px); filter: brightness(.98); }
.fpm-btn:focus { outline: 3px solid rgba(44,102,189,.18); outline-offset: 2px; }
.fpm-btn--primary { color: #fff !important; background: linear-gradient(135deg, #0e8a7f, #08645e); box-shadow: 0 8px 20px rgba(9,117,108,.19); }
.fpm-btn--dark { color: #fff !important; background: #263744; }
.fpm-btn--wide { width: 100%; min-height: 52px; font-size: 15px; }
.fpm-btn--light { border: 1px solid #dce2e7; color: #3d4c58 !important; background: #fff; }
.fpm-btn--map { min-height: 39px; color: #2259a7 !important; background: #eaf2ff; }
.fpm-btn--bought { min-height: 39px; color: #fff !important; background: #16835e; }
.fpm-btn--store-done { min-height: 48px; color: #fff !important; background: linear-gradient(135deg, #19845f, #0f6c4c); font-size: 14px; }
.fpm-btn--export { color: #41337b !important; background: #fff; }
.fpm-btn--small { min-height: 34px; padding: 6px 10px; font-size: 11px; }
.fpm-btn--danger-light { color: #a92e39 !important; background: #fff0f1; }
.fpm-btn--success-light { color: #0d7351 !important; background: #e8f8f1; }

.fpm-alert { margin-bottom: 16px; padding: 13px 15px; border: 1px solid; border-radius: 12px; font-weight: 700; }
.fpm-alert--success { border-color: #9bd9bf; color: #0c6648; background: #eaf9f2; }
.fpm-alert--error { border-color: #efb6bc; color: #a12835; background: #fff0f1; }
.fpm-login-box,
.fpm-empty { padding: 38px 24px; border: 1px dashed #ccd5dc; border-radius: 18px; text-align: center; background: #fff; }
.fpm-login-box h2,
.fpm-empty h2 { margin-bottom: 8px; font-size: 20px; }
.fpm-login-box p,
.fpm-empty p { color: var(--fpm-muted); }
.fpm-empty-icon { margin-bottom: 8px; font-size: 38px; }

.fpm-history-list { display: grid; gap: 10px; }
.fpm-history-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px; border: 1px solid #e5eaee; border-radius: 14px; background: #fbfcfd; }
.fpm-history-main { display: flex; align-items: center; min-width: 0; gap: 11px; }
.fpm-history-icon { display: grid; flex: 0 0 40px; height: 40px; place-items: center; border-radius: 11px; background: #edf3f5; font-size: 20px; }
.fpm-history-main h3 { overflow: hidden; margin: 0 0 2px; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.fpm-history-main p { margin: 0; color: var(--fpm-muted); font-size: 11px; }
.fpm-history-side { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-end; gap: 5px; }
.fpm-history-side small { color: #8a959f; font-size: 10px; }
.fpm-manager-link { display: flex; justify-content: center; margin: 20px auto; color: var(--fpm-primary) !important; font-weight: 900; }

.fpm-status { display: inline-flex; align-items: center; justify-content: center; padding: 5px 9px; border-radius: 999px; white-space: nowrap; font-size: 10px; font-weight: 900; }
.fpm-status--pending { color: #8b5b08; background: #fff2cd; }
.fpm-status--approved { color: #235ba5; background: #e7f0ff; }
.fpm-status--shopping { color: #6445a3; background: #eee8ff; }
.fpm-status--purchased { color: #0b704e; background: #e4f7ef; }
.fpm-status--postponed { color: #a34e17; background: #fff0df; }
.fpm-status--rejected { color: #a52f3a; background: #ffeaec; }

.fpm-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.fpm-summary-grid--stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fpm-summary-card { display: flex; align-items: center; gap: 10px; padding: 15px 17px; border: 1px solid var(--fpm-line); border-radius: 15px; background: #fff; }
.fpm-summary-card strong { color: var(--fpm-ink); font-size: 25px; line-height: 1; }
.fpm-summary-card span { color: var(--fpm-muted); font-size: 12px; font-weight: 700; }
.fpm-summary-card--open { border-color: #f0d096; background: #fffaf0; }
.fpm-summary-card--shopping { border-color: #cabcf2; background: #faf8ff; }
.fpm-summary-card--done { border-color: #9bd8bf; background: #f3fcf8; }

.fpm-status-tabs,
.fpm-range-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 13px; padding: 5px; border: 1px solid var(--fpm-line); border-radius: 14px; background: #fff; scrollbar-width: thin; }
.fpm-status-tabs a,
.fpm-range-tabs a { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; min-height: 37px; padding: 7px 11px; border-radius: 10px; color: #52616e !important; font-size: 11px; font-weight: 800; }
.fpm-status-tabs a b { display: inline-grid; min-width: 20px; height: 20px; padding: 0 5px; place-items: center; border-radius: 999px; color: #64727e; background: #edf1f3; font-size: 9px; }
.fpm-status-tabs a.is-active,
.fpm-range-tabs a.is-active { color: #fff !important; background: #263743; }
.fpm-status-tabs a.is-active b { color: #263743; background: #fff; }

.fpm-filter-bar { display: grid; grid-template-columns: minmax(250px, 1fr) 220px auto auto; align-items: center; gap: 9px; margin-bottom: 16px; padding: 12px; border: 1px solid var(--fpm-line); border-radius: 15px; background: #fff; }
.fpm-search { position: relative; display: block; }
.fpm-search > span { position: absolute; z-index: 1; top: 7px; right: 12px; color: #7a8792; font-size: 22px; }
.fpm-search input { padding-right: 40px !important; }
.fpm-filter-bar .fpm-btn { min-height: 48px; }
.fpm-clear-filter { color: var(--fpm-red) !important; font-size: 11px; font-weight: 800; }

.fpm-route-panel { display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 18px; padding: 18px; border-color: #cfdce6; background: linear-gradient(135deg, #f8fbfd, #fff); }
.fpm-route-title { display: flex; align-items: center; gap: 10px; }
.fpm-route-title > span { font-size: 28px; }
.fpm-route-title h2 { margin: 0; font-size: 14px; }
.fpm-route-title p { margin: 2px 0 0; color: var(--fpm-muted); font-size: 10px; }
.fpm-route-list { display: flex; gap: 8px; overflow-x: auto; padding: 2px; }
.fpm-route-list a { display: grid; flex: 0 0 auto; grid-template-columns: 24px auto; gap: 0 7px; min-width: 145px; padding: 9px 11px; border: 1px solid #dbe3e9; border-radius: 11px; color: var(--fpm-ink) !important; background: #fff; }
.fpm-route-list a b { grid-row: 1 / 3; display: grid; align-self: center; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: #fff; background: var(--fpm-primary); font-size: 10px; }
.fpm-route-list a span { font-size: 11px; font-weight: 900; }
.fpm-route-list a small { color: var(--fpm-muted); font-size: 9px; }

.fpm-store-card { overflow: hidden; padding: 0; scroll-margin-top: 40px; }
.fpm-store-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 20px; border-bottom: 1px solid var(--fpm-line); background: #f8fafb; }
.fpm-store-heading { display: flex; align-items: center; min-width: 0; gap: 12px; }
.fpm-store-icon { display: grid; flex: 0 0 48px; height: 48px; place-items: center; border-radius: 14px; background: #e9eff2; font-size: 25px; }
.fpm-store-heading h2 { margin: 0 0 2px; font-size: 19px; }
.fpm-store-heading p { overflow: hidden; margin: 0; color: var(--fpm-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.fpm-request-list { padding: 6px 18px; }
.fpm-request-card { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 16px 0; border-bottom: 1px solid #e9edf0; }
.fpm-request-card:last-child { border-bottom: 0; }
.fpm-request-card::before { content: ""; position: absolute; top: 19px; right: -18px; width: 3px; height: 34px; border-radius: 4px; background: #c8d0d6; }
.fpm-request-card--high::before { background: var(--fpm-orange); }
.fpm-request-card--urgent::before { background: var(--fpm-red); }
.fpm-request-check { display: grid; width: 28px; height: 28px; margin-top: 2px; place-items: center; border: 2px solid #d2dae0; border-radius: 9px; color: #fff; background: #fff; font-weight: 900; }
.fpm-request-status--purchased .fpm-request-check { border-color: var(--fpm-green); background: var(--fpm-green); }
.fpm-request-content { min-width: 0; }
.fpm-request-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.fpm-request-topline > div { display: flex; min-width: 0; align-items: baseline; gap: 7px; }
.fpm-request-topline h3 { overflow-wrap: anywhere; margin: 0; font-size: 16px; font-weight: 900; }
.fpm-request-id { color: #88949e; font-size: 10px; }
.fpm-request-quantity { display: flex; align-items: baseline; gap: 5px; margin: 8px 0; }
.fpm-request-quantity strong { color: var(--fpm-primary); font-size: 22px; line-height: 1; }
.fpm-request-quantity > span { color: #42515d; font-size: 12px; font-weight: 800; }
.fpm-request-quantity small { margin-right: 7px; color: #89949d; font-size: 9px; }
.fpm-request-meta { display: flex; flex-wrap: wrap; gap: 5px 13px; color: #5c6b77; font-size: 11px; }
.fpm-urgency { font-weight: 800; }
.fpm-urgency--normal { color: #64727d; }
.fpm-urgency--high { color: #c26618; }
.fpm-urgency--urgent { color: #be2f3c; }
.fpm-request-details,
.fpm-manager-note { margin-top: 9px; padding: 9px 11px; border-radius: 9px; color: #394752; background: #f5f7f8; font-size: 11px; }
.fpm-manager-note { color: #624b16; background: #fff8e7; }
.fpm-request-footnote { margin-top: 8px; color: #98a1a9; font-size: 9px; }
.fpm-request-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.fpm-request-actions form { margin: 0; }
.fpm-manage-details { position: relative; }
.fpm-manage-details > summary { color: #54636f; font-size: 11px; font-weight: 800; cursor: pointer; }
.fpm-manage-details[open] { width: 100%; margin-top: 5px; padding: 12px; border: 1px solid #dfe5ea; border-radius: 12px; background: #fafbfc; }
.fpm-manage-details form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.fpm-manage-details label { display: flex; flex-direction: column; gap: 4px; color: #53616d; font-size: 10px; font-weight: 700; }
.fpm-manage-details input,
.fpm-manage-details select { min-height: 40px; }
.fpm-manage-note-field { grid-column: 1 / -1; }
.fpm-manage-details .fpm-btn { justify-self: start; }
.fpm-store-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 20px; border-top: 1px solid #cde4da; background: #f1faf6; }
.fpm-store-footer small { color: #608071; font-size: 10px; }
.fpm-bottom-links { display: flex; justify-content: center; gap: 20px; margin: 20px; }
.fpm-bottom-links a { color: var(--fpm-primary) !important; font-weight: 800; }

.fpm-admin-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.fpm-admin-links a { padding: 8px 11px; border: 1px solid var(--fpm-line); border-radius: 9px; color: #345267 !important; background: #fff; font-size: 11px; font-weight: 800; }
.fpm-settings-layout { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(470px, 1.2fr); gap: 16px; }
.fpm-form-buttons { display: flex; gap: 8px; }
.fpm-store-admin-list { display: grid; gap: 8px; }
.fpm-store-admin-row { display: grid; grid-template-columns: 42px 1fr auto auto; align-items: center; gap: 10px; padding: 11px; border: 1px solid #e3e8ec; border-radius: 12px; background: #fbfcfc; }
.fpm-store-admin-row.is-inactive { opacity: .58; background: #f4f4f4; }
.fpm-store-admin-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 11px; background: #e9eff1; font-size: 21px; }
.fpm-store-admin-info h3 { margin: 0; font-size: 13px; }
.fpm-store-admin-info p { margin: 2px 0 0; color: var(--fpm-muted); font-size: 10px; }
.fpm-active-state { padding: 4px 8px; border-radius: 999px; color: #0d704f; background: #e6f6ef; font-size: 9px; font-weight: 900; }
.is-inactive .fpm-active-state { color: #6e757a; background: #e4e7e9; }
.fpm-store-admin-actions { display: flex; gap: 5px; }
.fpm-store-admin-actions form { margin: 0; }

.fpm-range-tabs { width: max-content; max-width: 100%; margin-bottom: 15px; }
.fpm-stats-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; }
.fpm-stats-table-wrap { overflow-x: auto; }
.fpm-stats-table { width: 100%; min-width: 680px; border-collapse: collapse; text-align: right; }
.fpm-stats-table th { padding: 9px 10px; border-bottom: 2px solid #dce2e6; color: #697782; font-size: 10px; font-weight: 900; }
.fpm-stats-table td { padding: 11px 10px; border-bottom: 1px solid #e8ecef; color: #485762; font-size: 11px; }
.fpm-stats-table td strong { color: var(--fpm-ink); font-size: 12px; }
.fpm-rank { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 8px; color: #564290; background: #eee9ff; font-weight: 900; }
.fpm-store-stat-list { display: grid; gap: 8px; }
.fpm-store-stat-list > div { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid #e4e9ed; border-radius: 11px; }
.fpm-store-stat-icon { display: grid; flex: 0 0 38px; height: 38px; place-items: center; border-radius: 10px; background: #edf2f4; font-size: 19px; }
.fpm-store-stat-list p { display: flex; flex-direction: column; margin: 0; }
.fpm-store-stat-list strong { font-size: 12px; }
.fpm-store-stat-list small { color: var(--fpm-muted); font-size: 10px; }
.fpm-data-note { margin-top: 0; padding: 13px 15px; border: 1px solid #bed5e5; border-radius: 12px; color: #36596f; background: #f0f8fd; font-size: 11px; }

@media (max-width: 782px) {
    .fpm-admin-wrap { margin-left: 10px; }
    .fpm-admin-wrap .fpm-app { margin-top: 12px; }
}

@media (max-width: 720px) {
    .fpm-app { margin: 12px auto; font-size: 14px; }
    .fpm-hero { min-height: 0; padding: 22px 19px; border-radius: 18px; }
    .fpm-hero h1 { font-size: 26px; }
    .fpm-hero p { font-size: 12px; }
    .fpm-version { position: absolute; top: -8px; left: 0; }
    .fpm-manager-hero { align-items: flex-start; }
    .fpm-manager-hero .fpm-hero-actions { position: absolute; top: 0; left: 0; align-items: flex-end; }
    .fpm-manager-hero .fpm-version { position: static; }
    .fpm-manager-hero .fpm-today { display: none; }
    .fpm-panel { padding: 17px; border-radius: 16px; }
    .fpm-grid--2,
    .fpm-grid--icon-name { grid-template-columns: 1fr; gap: 0; }
    .fpm-grid--icon-name .fpm-field:first-child { max-width: 100px; }
    .fpm-qty-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .fpm-history-item { align-items: flex-start; flex-direction: column; }
    .fpm-history-side { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
    .fpm-history-main { width: 100%; }
    .fpm-summary-grid,
    .fpm-summary-grid--stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fpm-summary-card { align-items: flex-start; flex-direction: column; gap: 4px; padding: 12px; }
    .fpm-summary-card strong { font-size: 22px; }
    .fpm-filter-bar { grid-template-columns: 1fr 1fr; }
    .fpm-search { grid-column: 1 / -1; }
    .fpm-filter-bar .fpm-clear-filter { text-align: center; }
    .fpm-route-panel { grid-template-columns: 1fr; }
    .fpm-route-list { margin: 0 -3px; }
    .fpm-store-header { align-items: flex-start; padding: 14px; }
    .fpm-store-heading { align-items: flex-start; }
    .fpm-store-icon { flex-basis: 42px; height: 42px; font-size: 21px; }
    .fpm-store-heading h2 { font-size: 16px; }
    .fpm-store-heading p { white-space: normal; }
    .fpm-btn--map { flex: 0 0 auto; overflow: hidden; width: 42px; padding: 0; }
    .fpm-btn--map .fpm-map-label { display: none; }
    .fpm-request-list { padding: 4px 13px; }
    .fpm-request-card::before { right: -13px; }
    .fpm-request-card { grid-template-columns: 27px 1fr; gap: 8px; }
    .fpm-request-topline { align-items: flex-start; }
    .fpm-request-topline > div { display: block; }
    .fpm-request-id { display: block; margin-bottom: 1px; }
    .fpm-request-topline h3 { font-size: 14px; }
    .fpm-request-meta { display: grid; grid-template-columns: 1fr 1fr; }
    .fpm-manage-details form { grid-template-columns: 1fr; }
    .fpm-manage-note-field { grid-column: auto; }
    .fpm-store-footer { align-items: stretch; flex-direction: column; padding: 13px; }
    .fpm-store-footer .fpm-btn { width: 100%; }
    .fpm-settings-layout,
    .fpm-stats-layout { grid-template-columns: 1fr; }
    .fpm-store-admin-row { grid-template-columns: 38px 1fr auto; }
    .fpm-store-admin-icon { width: 38px; height: 38px; }
    .fpm-store-admin-actions { grid-column: 1 / -1; justify-content: flex-end; }
    .fpm-stats-hero .fpm-btn--export { position: absolute; left: 0; bottom: -3px; min-height: 36px; padding: 7px 9px; font-size: 10px; }
}

@media (max-width: 420px) {
    .fpm-filter-bar { grid-template-columns: 1fr; }
    .fpm-search { grid-column: auto; }
    .fpm-request-meta { grid-template-columns: 1fr; }
    .fpm-request-actions { align-items: stretch; flex-direction: column; }
    .fpm-request-actions > form,
    .fpm-request-actions .fpm-btn { width: 100%; }
    .fpm-manage-details { width: 100%; }
    .fpm-bottom-links { align-items: center; flex-direction: column; gap: 8px; }
}

/* نسخه ۱۰۷: نمای ساده روزمره */
.fpm-worker-app,
.fpm-manager-app {
    max-width: 680px;
    margin: 12px auto;
    color: #20262b;
}

.fpm-simple-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 4px 2px;
}

.fpm-simple-head h1 {
    margin: 0;
    color: #20262b;
    font-size: 23px;
    font-weight: 900;
    line-height: 1.4;
}

.fpm-simple-head p {
    margin: 1px 0 0;
    color: #7a838a;
    font-size: 11px;
}

.fpm-user-chip {
    overflow: hidden;
    max-width: 46%;
    padding: 6px 9px;
    border-radius: 999px;
    color: #52605e;
    background: #edf4f2;
    font-size: 10px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fpm-simple-card {
    margin-bottom: 12px;
    padding: 16px;
    border: 1px solid #e2e6e8;
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
}

.fpm-worker-app .fpm-field {
    gap: 5px;
    margin-bottom: 11px;
}

.fpm-worker-app .fpm-field > span {
    color: #4d565d;
    font-size: 11px;
}

.fpm-worker-app input[type="text"],
.fpm-worker-app select,
.fpm-worker-app textarea {
    min-height: 46px;
    padding: 9px 11px;
    border-color: #dce1e4;
    border-radius: 9px;
    font-size: 14px;
}

.fpm-worker-app textarea {
    min-height: 68px;
}

.fpm-worker-app .fpm-btn--wide {
    min-height: 48px;
    margin-top: 2px;
    border-radius: 9px;
    background: #16835e;
    box-shadow: none;
    font-size: 14px;
}

.fpm-simple-history {
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid #e2e6e8;
    border-radius: 12px;
    background: #fff;
}

.fpm-simple-history > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 13px;
    color: #4d575e;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.fpm-simple-history > summary::-webkit-details-marker {
    display: none;
}

.fpm-simple-history > summary::after {
    content: "⌄";
    margin-right: auto;
    padding-right: 8px;
    color: #8c969d;
}

.fpm-simple-history[open] > summary::after {
    content: "⌃";
}

.fpm-simple-history > summary span {
    display: grid;
    min-width: 22px;
    height: 22px;
    margin-right: 7px;
    padding: 0 5px;
    place-items: center;
    border-radius: 999px;
    color: #55706a;
    background: #edf4f2;
    font-size: 9px;
}

.fpm-simple-history .fpm-history-list {
    gap: 0;
    padding: 0 13px 5px;
    border-top: 1px solid #edf0f1;
}

.fpm-simple-history .fpm-history-item {
    min-height: 52px;
    padding: 9px 0;
    border: 0;
    border-bottom: 1px solid #edf0f1;
    border-radius: 0;
    background: transparent;
}

.fpm-simple-history .fpm-history-item:last-child {
    border-bottom: 0;
}

.fpm-simple-history .fpm-history-main h3 {
    font-size: 13px;
}

.fpm-simple-history .fpm-history-main p {
    font-size: 10px;
}

.fpm-simple-history .fpm-status {
    font-size: 8px;
}

.fpm-simple-empty {
    margin: 0;
    padding: 22px 14px;
    color: #7b858c;
    text-align: center;
    font-size: 12px;
}

.fpm-worker-app .fpm-manager-link {
    margin: 12px 0;
    font-size: 11px;
}

.fpm-manager-app .fpm-list-head {
    margin-bottom: 7px;
}

.fpm-simple-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 8px;
}

.fpm-simple-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid #e1e5e7;
    border-radius: 9px;
    color: #5f696f !important;
    background: #fff;
    font-size: 10px;
    font-weight: 800;
}

.fpm-simple-tabs a b {
    color: #8a9398;
    font-size: 9px;
}

.fpm-simple-tabs a.is-active {
    border-color: #27564a;
    color: #fff !important;
    background: #27564a;
}

.fpm-simple-tabs a.is-active b {
    color: #dcece7;
}

.fpm-simple-filter {
    margin-bottom: 10px;
    border-bottom: 1px solid #e5e8ea;
}

.fpm-simple-filter > summary {
    width: max-content;
    margin-bottom: 8px;
    color: #778188;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.fpm-simple-filter form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(130px, .65fr) minmax(130px, .65fr) auto auto;
    gap: 6px;
    padding-bottom: 10px;
}

.fpm-simple-filter input[type="search"],
.fpm-simple-filter select {
    min-height: 38px;
    padding: 6px 9px;
    border-radius: 8px;
    font-size: 11px;
}

.fpm-simple-filter .fpm-btn {
    min-height: 38px;
    padding: 6px 11px;
    border-radius: 8px;
    font-size: 10px;
}

.fpm-simple-filter .fpm-clear-filter {
    align-self: center;
    padding: 6px;
}

.fpm-manager-app .fpm-store-card {
    overflow: hidden;
    margin-bottom: 11px;
    padding: 0;
    border: 1px solid #dfe4e6;
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
}

.fpm-manager-app .fpm-store-header {
    align-items: center;
    min-height: 52px;
    padding: 9px 11px;
    border-bottom: 1px solid #e6eaec;
    background: #f7f9f9;
}

.fpm-manager-app .fpm-store-heading {
    align-items: center;
    gap: 7px;
}

.fpm-manager-app .fpm-store-icon {
    display: inline;
    flex: 0 0 auto;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    font-size: 18px;
    line-height: 1;
}

.fpm-manager-app .fpm-store-heading h2 {
    margin: 0;
    color: #252b2f;
    font-size: 15px;
    font-weight: 900;
}

.fpm-store-count {
    display: grid;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    place-items: center;
    border-radius: 999px;
    color: #69756f;
    background: #e5ece9;
    font-size: 9px;
    font-weight: 800;
}

.fpm-store-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.fpm-store-actions form {
    margin: 0;
}

.fpm-icon-link {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border-radius: 8px;
    color: #344b66 !important;
    background: #eaf0f6;
    font-size: 14px;
}

.fpm-store-done {
    min-height: 31px;
    padding: 5px 8px;
    border: 0;
    border-radius: 8px;
    color: #13704f;
    background: #e4f4ed;
    font-family: inherit;
    font-size: 9px;
    font-weight: 900;
    cursor: pointer;
}

.fpm-manager-app .fpm-request-list {
    padding: 0 11px;
}

.fpm-manager-app .fpm-request-card {
    position: relative;
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr);
    gap: 9px;
    min-height: 59px;
    padding: 11px 0;
    border-bottom: 1px solid #edf0f1;
}

.fpm-manager-app .fpm-request-card:last-child {
    border-bottom: 0;
}

.fpm-manager-app .fpm-request-card::before {
    display: none;
}

.fpm-quick-buy {
    margin: 0;
}

.fpm-manager-app .fpm-request-check {
    display: grid;
    width: 28px;
    height: 28px;
    margin: 1px 0 0;
    padding: 0;
    place-items: center;
    border: 2px solid #cfd6da;
    border-radius: 8px;
    color: #fff;
    background: #fff;
    box-shadow: none;
    font-family: inherit;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.fpm-quick-buy .fpm-request-check:hover,
.fpm-quick-buy .fpm-request-check:focus {
    border-color: #16835e;
    outline: 3px solid rgba(22, 131, 94, .12);
    outline-offset: 1px;
}

.fpm-quick-buy .fpm-request-check::after {
    content: "";
    width: 8px;
    height: 4px;
    border-right: 2px solid transparent;
    border-bottom: 2px solid transparent;
    transform: rotate(45deg);
}

.fpm-quick-buy .fpm-request-check:hover::after {
    border-color: #16835e;
}

.fpm-request-status--purchased .fpm-request-check {
    border-color: #16835e;
    background: #16835e;
}

.fpm-request-status--rejected .fpm-request-check {
    border-color: #d7dcdf;
    color: #8c969c;
    background: #eef1f2;
}

.fpm-manager-app .fpm-request-content {
    min-width: 0;
}

.fpm-manager-app .fpm-request-content h3 {
    margin: 0;
    color: #252a2e;
    font-size: 15px;
    font-weight: 850;
    line-height: 1.55;
}

.fpm-request-status--purchased .fpm-request-content > h3,
.fpm-request-status--purchased .fpm-item-heading h3 {
    color: #7b858b;
    text-decoration: line-through;
}

.fpm-item-note,
.fpm-item-manager-note {
    margin: 2px 0 0;
    color: #5e686e;
    font-size: 11px;
    line-height: 1.65;
}

.fpm-item-manager-note {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 6px;
    border-radius: 5px;
    color: #775b17;
    background: #fff7df;
    font-size: 9px;
}

.fpm-manager-app .fpm-manage-details {
    width: auto;
    margin-top: 3px;
}

.fpm-manager-app .fpm-manage-details > summary {
    width: max-content;
    color: #9aa2a7;
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
}

.fpm-manager-app .fpm-manage-details[open] {
    width: 100%;
    margin-top: 7px;
    padding: 8px 0 0;
    border: 0;
    border-top: 1px dashed #dfe4e6;
    border-radius: 0;
    background: transparent;
}

.fpm-hidden-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 9px;
    margin-bottom: 7px;
    color: #747e84;
    font-size: 9px;
}

.fpm-hidden-meta small {
    color: #9aa2a7;
    font-size: 8px;
}

.fpm-hidden-meta .fpm-status {
    padding: 3px 6px;
    font-size: 8px;
}

.fpm-manager-app .fpm-manage-details form {
    display: grid;
    grid-template-columns: minmax(120px, .7fr) minmax(180px, 1.3fr) auto;
    align-items: end;
    gap: 6px;
    margin-top: 0;
}

.fpm-manager-app .fpm-manage-details label {
    gap: 2px;
    font-size: 9px;
}

.fpm-manager-app .fpm-manage-details select,
.fpm-manager-app .fpm-manage-details textarea {
    min-height: 37px;
    padding: 6px 8px;
    border-radius: 7px;
    font-size: 10px;
}

.fpm-manager-app .fpm-manage-details textarea {
    height: 37px;
    resize: vertical;
}

.fpm-manager-app .fpm-manage-note-field {
    grid-column: auto;
}

.fpm-manager-app .fpm-manage-details .fpm-btn {
    min-height: 37px;
    padding: 6px 10px;
    border-radius: 7px;
    font-size: 9px;
}

.fpm-manager-app .fpm-bottom-links {
    gap: 14px;
    margin: 14px 0;
}

.fpm-manager-app .fpm-bottom-links a {
    color: #65716f !important;
    font-size: 10px;
    font-weight: 700;
}

.fpm-worker-app .fpm-alert,
.fpm-manager-app .fpm-alert {
    margin-bottom: 10px;
    padding: 9px 11px;
    border-radius: 9px;
    font-size: 11px;
}

@media (max-width: 720px) {
    .fpm-worker-app,
    .fpm-manager-app {
        width: 100%;
        margin: 7px auto;
    }

    .fpm-simple-head h1 {
        font-size: 21px;
    }

    .fpm-simple-filter form {
        grid-template-columns: 1fr 1fr;
    }

    .fpm-simple-filter input[type="search"] {
        grid-column: 1 / -1;
    }

    .fpm-manager-app .fpm-store-header {
        align-items: center;
        padding: 9px 10px;
    }

    .fpm-manager-app .fpm-store-heading {
        align-items: center;
    }

    .fpm-manager-app .fpm-store-heading h2 {
        font-size: 14px;
    }

    .fpm-manager-app .fpm-manage-details form {
        grid-template-columns: 1fr;
    }

    .fpm-manager-app .fpm-manage-note-field {
        grid-column: auto;
    }

    .fpm-simple-history .fpm-history-item {
        align-items: center;
        flex-direction: row;
    }

    .fpm-simple-history .fpm-history-main {
        width: auto;
    }

    .fpm-simple-history .fpm-history-side {
        width: auto;
        flex-direction: row;
    }
}

@media (max-width: 420px) {
    .fpm-simple-card {
        padding: 13px;
    }

    .fpm-simple-tabs {
        width: 100%;
    }

    .fpm-simple-tabs a {
        flex: 1;
        justify-content: center;
        padding-right: 5px;
        padding-left: 5px;
    }

    .fpm-simple-filter form {
        grid-template-columns: 1fr;
    }

    .fpm-simple-filter input[type="search"] {
        grid-column: auto;
    }

    .fpm-manager-app .fpm-store-header {
        gap: 6px;
    }

    .fpm-store-done {
        padding: 5px 6px;
        font-size: 8px;
    }

    .fpm-manager-app .fpm-request-actions {
        display: block;
    }

}

/* نسخه ۱۰۸: ویرایش درخواست و بانک نام استاندارد کالا */
.fpm-item-input-wrap {
    position: relative;
    display: block;
    width: 100%;
}

.fpm-item-input-wrap > input {
    width: 100%;
}

.fpm-item-suggestions {
    position: absolute;
    z-index: 50;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    overflow: hidden;
    border: 1px solid #d9e1e4;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 9px 24px rgba(28, 48, 57, .16);
}

.fpm-item-suggestions[hidden] {
    display: none !important;
}

.fpm-item-suggestions button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    padding: 7px 10px;
    border: 0;
    border-bottom: 1px solid #edf0f1;
    color: #20292d;
    background: #fff;
    font-family: inherit;
    text-align: right;
    cursor: pointer;
}

.fpm-item-suggestions button:last-child {
    border-bottom: 0;
}

.fpm-item-suggestions button:focus,
.fpm-item-suggestions button:hover {
    outline: 0;
    background: #eef8f4;
}

.fpm-item-suggestions strong {
    font-size: 11px;
}

.fpm-item-suggestions small {
    flex: 0 0 auto;
    color: #758188;
    font-size: 8px;
}

.fpm-my-requests {
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid #e2e6e8;
    border-radius: 12px;
    background: #fff;
}

.fpm-my-requests-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 10px 13px;
    border-bottom: 1px solid #edf0f1;
}

.fpm-my-requests-head h2 {
    margin: 0;
    color: #30383d;
    font-size: 13px;
    font-weight: 900;
}

.fpm-my-requests-head > span {
    display: grid;
    min-width: 23px;
    height: 23px;
    padding: 0 6px;
    place-items: center;
    border-radius: 999px;
    color: #55706a;
    background: #edf4f2;
    font-size: 9px;
    font-weight: 800;
}

.fpm-my-requests .fpm-history-list {
    gap: 0;
    padding: 0 13px 5px;
}

.fpm-my-requests .fpm-history-item {
    display: block;
    padding: 11px 0;
    border: 0;
    border-bottom: 1px solid #edf0f1;
    border-radius: 0;
    background: transparent;
}

.fpm-my-requests .fpm-history-item:last-child {
    border-bottom: 0;
}

.fpm-history-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.fpm-my-requests .fpm-history-main {
    width: auto;
}

.fpm-my-requests .fpm-history-main h3 {
    margin: 0 0 1px;
    font-size: 13px;
}

.fpm-my-requests .fpm-history-main p {
    margin: 0;
    color: #788289;
    font-size: 9px;
}

.fpm-my-requests .fpm-history-side {
    width: auto;
}

.fpm-history-note {
    margin: 5px 0 0;
    color: #5e686e;
    font-size: 10px;
    line-height: 1.65;
}

.fpm-own-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 7px;
}

.fpm-own-edit {
    min-width: 0;
}

.fpm-own-edit > summary,
.fpm-own-delete button {
    padding: 0;
    border: 0;
    color: #748087;
    background: transparent;
    font-family: inherit;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
}

.fpm-own-delete {
    margin: 0;
}

.fpm-own-delete button {
    color: #b54a52;
}

.fpm-own-edit[open] {
    width: 100%;
    margin-top: 5px;
    padding-top: 9px;
    border-top: 1px dashed #dde3e5;
}

.fpm-own-edit form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 7px;
}

.fpm-own-edit label {
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: #677279;
    font-size: 9px;
    font-weight: 700;
}

.fpm-own-edit input[type="text"],
.fpm-own-edit select,
.fpm-own-edit textarea {
    min-height: 39px;
    padding: 6px 8px;
    border-radius: 7px;
    font-size: 11px;
}

.fpm-own-edit textarea {
    min-height: 58px;
}

.fpm-own-details-field {
    grid-column: 1 / -1;
}

.fpm-own-edit .fpm-btn {
    min-height: 38px;
    justify-self: start;
    padding: 6px 10px;
    border-radius: 7px;
    font-size: 9px;
}

.fpm-item-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.fpm-requester-visible {
    flex: 0 0 auto;
    color: #526168;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.fpm-manager-app .fpm-manage-details form {
    grid-template-columns: minmax(115px, .7fr) minmax(115px, .7fr) minmax(170px, 1.2fr) auto;
}

.fpm-catalog-app {
    max-width: 980px;
}

.fpm-catalog-filter {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 7px;
    margin-bottom: 10px;
}

.fpm-catalog-filter input[type="search"] {
    min-height: 42px;
    border-radius: 9px;
}

.fpm-catalog-filter .fpm-btn {
    min-height: 42px;
}

.fpm-catalog-list {
    display: grid;
    gap: 9px;
}

.fpm-catalog-row {
    padding: 13px;
    border: 1px solid #e1e6e8;
    border-radius: 12px;
    background: #fff;
}

.fpm-catalog-row.is-approved {
    border-color: #b8dece;
}

.fpm-catalog-row > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.fpm-catalog-row > header h2 {
    margin: 0;
    font-size: 14px;
}

.fpm-catalog-row > header p {
    margin: 1px 0 0;
    color: #7d888e;
    font-size: 9px;
}

.fpm-catalog-row > header > span {
    padding: 4px 7px;
    border-radius: 999px;
    color: #916516;
    background: #fff2ce;
    font-size: 8px;
    font-weight: 900;
}

.fpm-catalog-row.is-approved > header > span {
    color: #146846;
    background: #e6f5ee;
}

.fpm-catalog-examples {
    overflow: hidden;
    margin: 0 0 9px;
    color: #737e84;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fpm-catalog-row > form {
    display: grid;
    grid-template-columns: minmax(200px, 1.2fr) minmax(170px, .8fr) auto auto;
    align-items: end;
    gap: 8px;
}

.fpm-catalog-row > form > label:not(.fpm-catalog-approve) {
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: #68747a;
    font-size: 9px;
    font-weight: 700;
}

.fpm-catalog-row input[type="text"],
.fpm-catalog-row select {
    min-height: 40px;
    padding: 7px 9px;
    border-radius: 8px;
    font-size: 11px;
}

.fpm-catalog-approve {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    margin: 0;
    color: #405049;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.fpm-catalog-approve input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #16835e;
}

.fpm-catalog-row .fpm-btn {
    min-height: 40px;
    padding: 7px 12px;
    border-radius: 8px;
    box-shadow: none;
    font-size: 10px;
}

@media (max-width: 720px) {
    .fpm-item-heading {
        align-items: flex-start;
        flex-direction: row;
        justify-content: space-between;
        gap: 4px 8px;
    }

    .fpm-requester-visible {
        font-size: 10px;
    }

    .fpm-manager-app .fpm-manage-details form,
    .fpm-catalog-row > form {
        grid-template-columns: 1fr;
    }

    .fpm-own-edit form {
        grid-template-columns: 1fr;
    }

    .fpm-own-details-field {
        grid-column: auto;
    }

    .fpm-catalog-approve {
        min-height: 30px;
    }
}

@media (max-width: 420px) {
    .fpm-catalog-filter {
        grid-template-columns: 1fr;
    }
}
