/* Added phone experience. No existing selector is changed at tablet/desktop widths. */
.phone-essential-only { display: none; }
@media (max-width: 599px) {
  body:has(#app_view.bn-phone-essential) > .pa-refusal-modal-backdrop { z-index: 23000 !important; }
}
@media (max-width: 599px) {
  #app_view.bn-phone-essential { --phone-accent: #174459; --phone-line: #dce5e9; }
  #app_view.bn-phone-essential > #facturier_modal_root {
    position: fixed; inset: 0; z-index: 22000; pointer-events: none;
  }
  #app_view.bn-phone-essential > #facturier_modal_root .facturier-modal-backdrop { pointer-events: auto; }
  #app_view.bn-phone-essential > .pa-document-modal-backdrop { z-index: 22000 !important; }
  #app_view.bn-phone-essential .phone-essential-only { display: block; }
  #app_view.bn-phone-essential .global-header .logo { display: flex; align-items: center; padding: 4px 0; }
  #app_view.bn-phone-essential .global-header .logo-mark { display: none; }
  #app_view.bn-phone-essential #phone_ader_brand { width: 78px; height: 36px; object-fit: contain; }
  #app_view.bn-phone-essential #member_company_context { position: relative; padding-left: 60px !important; min-height: 72px; box-sizing: border-box; }
  #app_view.bn-phone-essential #phone_company_brand { position: absolute; left: 10px; top: 18px; width: 42px; height: 42px; }
  #app_view.bn-phone-essential #phone_company_brand > :is(img,span) { width: 42px; height: 42px; object-fit: contain; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 8px; color: var(--phone-accent); font-weight: 700; }
  #app_view.bn-phone-essential #member_company_select { width: 100%; min-width: 0; }
  #app_view.bn-phone-essential #view_home > .essential-home { display: none !important; }
  #app_view.bn-phone-essential #phone_essential_home { padding: 24px 16px; }
  #app_view.bn-phone-essential .phone-essential-eyebrow { margin: 0 0 8px; color: #586d79; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
  #app_view.bn-phone-essential :is(#phone_essential_home,#phone_invoice_navigation,#phone_facturier_hub) h1 { font-size: 25px; line-height: 1.25; margin: 0 0 24px; color: #173647; }
  #app_view.bn-phone-essential .phone-essential-home-actions { display: grid; gap: 14px; }
  #app_view.bn-phone-essential .phone-essential-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 54px; padding: 14px 16px; border: 1px solid var(--phone-line); border-radius: 12px; background: #fff; color: #173647; font-size: 16px; font-weight: 650; text-align: left; box-sizing: border-box; }
  #app_view.bn-phone-essential .phone-essential-action.is-primary { background: var(--phone-accent); color: #fff; border-color: var(--phone-accent); }
  #app_view.bn-phone-essential .phone-essential-action:disabled { opacity: .55; }
  #app_view.bn-phone-essential .phone-essential-action:focus-visible { outline: 3px solid #77a91c; outline-offset: 2px; }
  #app_view.bn-phone-essential .phone-essential-text { background: none; border: 0; color: #174459; text-decoration: underline; padding: 12px 0; min-height: 44px; font-size: 14px; text-align: left; }
  #app_view.bn-phone-essential .phone-essential-note { font-size: 14px; line-height: 1.5; color: #526570; }
  #app_view.bn-phone-essential #mobile_primary_nav { display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr)) !important; }
  #app_view.bn-phone-essential #mobile_primary_nav .mobile-primary-action { min-width: 0 !important; }
  #app_view.bn-phone-essential #mobile_page_nav { display: none !important; }
  #app_view.bn-phone-essential .phone-essential-links { display: grid; gap: 8px; padding: 12px 0; }
  #app_view.bn-phone-essential .phone-essential-links h3 { margin: 0 0 4px; font-size: 15px; }
  #app_view.bn-phone-essential .phone-essential-links .phone-essential-action { font-size: 14px; min-height: 46px; padding: 10px 12px; }
  #app_view.bn-phone-essential .phone-essential-create-list { display: grid; gap: 12px; }
  #app_view.bn-phone-essential #phone_facturier_hub { display: none; padding: 20px 16px; }
  #app_view.bn-phone-essential.phone-essential-overview #phone_facturier_hub { display: block; }
  #app_view.bn-phone-essential.phone-essential-overview :is(.facturier-app-topbar,#facturier_section_content,#facturier_metric_zone) { display: none !important; }
  #app_view.bn-phone-essential .facturier-navigation-row { display: none !important; }
  #app_view.bn-phone-essential .facturier-app-topbar { padding: 10px 12px !important; }
  #app_view.bn-phone-essential :is(#facturier_search_input,.facturier-topbar-identity) { display: none !important; }
  #app_view.bn-phone-essential .facturier-topbar-actions { display: flex !important; flex-wrap: wrap; gap: 8px; }
  #app_view.bn-phone-essential .facturier-topbar-actions button { font-size: 13px !important; min-height: 44px; width: auto !important; }
  #app_view.bn-phone-essential #phone_invoice_navigation { padding: 18px 14px 0; }
  #app_view.bn-phone-essential #phone_invoice_navigation h1 { margin-bottom: 14px; }
  #app_view.bn-phone-essential .phone-essential-flow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  #app_view.bn-phone-essential .phone-essential-flow button { border: 1px solid var(--phone-line); border-radius: 10px; background: #fff; color: #173647; font-size: 16px; min-height: 48px; }
  #app_view.bn-phone-essential .phone-essential-flow button[aria-pressed=true] { background: var(--phone-accent); color: #fff; }
  #app_view.bn-phone-essential #view_pa_dashboard :is(.pa-title-block,.pa-section-tabs,.pa-mobile-flow-switch,#pa_dashboard_overview) { display: none !important; }
  #app_view.bn-phone-essential #view_pa_dashboard .pa-header { display: block !important; padding: 0 14px 10px !important; border: 0 !important; }
  #app_view.bn-phone-essential #view_pa_dashboard .pa-actions { margin: 0 !important; padding: 0 !important; width: 100%; }
  #app_view.bn-phone-essential #view_pa_dashboard .pa-toolbar-buttons { display: flex !important; flex-wrap: wrap; gap: 8px; }
  #app_view.bn-phone-essential #view_pa_dashboard .pa-toolbar-buttons button { min-height: 44px; width: auto !important; flex: 1 1 auto; }
  #app_view.bn-phone-essential #phone_invoice_status { padding: 0 14px 12px; }
  #app_view.bn-phone-essential #phone_invoice_status label { display: flex; align-items: center; gap: 12px; font-size: 14px; }
  #app_view.bn-phone-essential #phone_invoice_status select { min-width: 0; flex: 1; min-height: 44px; font-size: 16px; border: 1px solid var(--phone-line); border-radius: 8px; background: #fff; color: #173647; padding: 8px; }
  #app_view.bn-phone-essential #phone_invoice_state:empty { display: none; }
  #app_view.bn-phone-essential #phone_invoice_state p { padding: 8px 14px; margin: 0; }
  #app_view.bn-phone-essential #view_pa_dashboard :is(.pa-daily-summary,.pa-daily-topbar,.pa-daily-tabs,.facturier-order-list-head) { display: none !important; }
  #app_view.bn-phone-essential #view_pa_dashboard :is(.pa-daily-panel,.pa-daily-workbench) { padding: 0 !important; margin: 0 !important; border: 0 !important; box-shadow: none !important; background: transparent !important; }
  #app_view.bn-phone-essential #view_pa_dashboard .pa-daily-toolbar { padding: 0 14px 10px !important; display: block !important; }
  #app_view.bn-phone-essential .pa-daily-toolbar input { width: 100% !important; min-height: 46px; font-size: 16px !important; }
  #app_view.bn-phone-essential #view_pa_dashboard .pa-daily-advanced { margin: 0 14px 12px !important; }
  #app_view.bn-phone-essential #view_pa_dashboard .pa-daily-advanced summary { min-height: 44px; box-sizing: border-box; }
  #app_view.bn-phone-essential #view_pa_dashboard .pa-table-wrap { padding: 0 14px 20px !important; overflow: visible !important; }
  #app_view.bn-phone-essential #view_pa_dashboard .pa-table-wrap > .pa-pagination:first-child { display: none !important; }
  #app_view.bn-phone-essential #view_pa_dashboard .pa-daily-table-shell { overflow: visible !important; border: 0 !important; background: transparent !important; }
  #app_view.bn-phone-essential #view_pa_dashboard .pa-daily-table { display: block !important; width: 100% !important; min-width: 0 !important; }
  #app_view.bn-phone-essential #view_pa_dashboard .pa-daily-table :is(thead,colgroup) { display: none !important; }
  #app_view.bn-phone-essential #view_pa_dashboard .pa-daily-table tbody { display: grid !important; gap: 14px; width: 100%; }
  #app_view.bn-phone-essential #view_pa_dashboard .pa-daily-table tr { display: grid !important; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; padding: 14px !important; margin: 0 !important; border: 1px solid var(--phone-line) !important; border-radius: 12px; background: #fff; min-width: 0; }
  #app_view.bn-phone-essential #view_pa_dashboard .pa-daily-table td { display: block !important; width: auto !important; min-width: 0; padding: 0 !important; border: 0 !important; text-align: left !important; overflow-wrap: anywhere; }
  #app_view.bn-phone-essential #view_pa_dashboard .pa-daily-table td::before { display: block !important; content: attr(data-label); color: #586d79; font-size: 11px; margin-bottom: 4px; }
  #app_view.bn-phone-essential #view_pa_dashboard .pa-daily-table td:first-child { grid-column: 1 / -1; }
  #app_view.bn-phone-essential #view_pa_dashboard .pa-daily-table td:first-child::before { display: none !important; }
  #app_view.bn-phone-essential #view_pa_dashboard .pa-daily-table td:last-child { grid-column: 1 / -1; padding-top: 6px !important; }
  #app_view.bn-phone-essential #view_pa_dashboard .pa-daily-table td:last-child::before { display: none !important; }
  #app_view.bn-phone-essential #view_pa_dashboard .pa-daily-table td button { min-height: 44px; max-width: 100%; white-space: normal; }
  #app_view.bn-phone-essential .pa-daily-table .facturier-order-document-link { text-align: left; width: 100%; }
  #app_view.bn-phone-essential .pa-daily-table .facturier-order-document-link strong { font-size: 15px; }
  #app_view.bn-phone-essential .pa-daily-table .facturier-order-document-link span { font-size: 14px; }
  #app_view.bn-phone-essential .pa-daily-table .pa-daily-row-actions { display: flex !important; gap: 8px; flex-wrap: wrap; }
  #app_view.bn-phone-essential .pa-emitted-daily-table .facturier-order-follow-up > .facturier-flow-state:first-child { display: none; }
}

@media (max-width: 599px) {
  #app_view.bn-phone-essential #phone_invoice_navigation { padding: 8px 14px 10px; }
  #app_view.bn-phone-essential #phone_invoice_navigation :is(h1,.phone-essential-text) { display: none; }
  #app_view.bn-phone-essential #view_pa_dashboard .pa-header { display: none !important; }
  #app_view.bn-phone-essential #phone_invoice_status { padding-bottom: 8px; }
  #app_view.bn-phone-essential .phone-invoice-filter-row { display: flex; gap: 8px; }
  #app_view.bn-phone-essential .phone-invoice-filter-row label { flex: 1; min-width: 0; }
  #app_view.bn-phone-essential .phone-invoice-filter-row > button { min-height: 44px; padding: 8px 12px; background: #fff; border: 1px solid #dce5e9; border-radius: 8px; color: #174459; font-size: 13px; }
  #app_view.bn-phone-essential #view_pa_dashboard .pa-daily-advanced { margin-bottom: 6px !important; }
  #app_view.bn-phone-essential .pa-received-bulkbar { display: none !important; }
  #app_view.bn-phone-essential .phone-examine-start { width: 100%; min-height: 44px; margin: 0 0 8px; border: 0; border-radius: 8px; color: #fff; background: #174459; font-size: 14px; }
  #app_view.bn-phone-essential .phone-invoice-list { display: block; border-top: 1px solid #dce5e9; }
  #app_view.bn-phone-essential .phone-invoice-row { padding: 8px 0; border-bottom: 1px solid #dce5e9; background: #fff; }
  #app_view.bn-phone-essential .phone-invoice-open { display: grid; gap: 3px; width: 100%; min-height: 56px; padding: 4px 8px; border: 0; text-align: left; background: none; color: #173647; }
  #app_view.bn-phone-essential .phone-invoice-title { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
  #app_view.bn-phone-essential .phone-invoice-open > span { width: 100%; text-align: left !important; box-sizing: border-box; }
  #app_view.bn-phone-essential .phone-invoice-open :is(.phone-invoice-meta,.phone-invoice-status) { font-weight: 400 !important; }
  #app_view.bn-phone-essential #phone_invoice_status .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  #app_view.bn-phone-essential .phone-invoice-title strong { flex: 1; min-width: 0; overflow-wrap: anywhere; }
  #app_view.bn-phone-essential .phone-invoice-title b { white-space: nowrap; }
  #app_view.bn-phone-essential .phone-invoice-meta { font-size: 12px; color: #586d79; overflow-wrap: anywhere; }
  #app_view.bn-phone-essential .phone-invoice-status { font-size: 12px; color: #174459; }
  #app_view.bn-phone-essential .phone-invoice-actions { padding: 0 8px; font-size: 12px; }
  #app_view.bn-phone-essential .phone-invoice-actions :is(.pa-daily-row-actions,.facturier-order-row-actions) { display: flex; flex-wrap: wrap; gap: 8px; }
  #app_view.bn-phone-essential .phone-invoice-actions button { min-height: 44px; padding: 6px 14px; font-size: 13px; width: auto !important; border-radius: 8px; }
  #app_view.bn-phone-essential .phone-invoice-actions button[data-pa-action=approve] { background: #628f26; color: #fff; }
  #app_view.bn-phone-essential .phone-invoice-actions button[data-pa-action=refuse] { background: #fff3f3; color: #9e2435; }
  #app_view.bn-phone-essential .phone-pdf-detail { display: flex !important; flex-direction: column !important; width: 100vw !important; height: var(--bn-phone-height,100dvh) !important; max-height: var(--bn-phone-height,100dvh) !important; border-radius: 0 !important; overflow: hidden !important; }
  #app_view.bn-phone-essential .phone-pdf-detail > .pa-tracking-detail-head { display: none !important; }
  #app_view.bn-phone-essential #phone_detail_header { display: block; flex: 0 0 auto; background: #fff; border-bottom: 1px solid #dce5e9; padding: 8px 10px; }
  #app_view.bn-phone-essential .phone-detail-heading { display: flex; align-items: center; gap: 10px; }
  #app_view.bn-phone-essential .phone-detail-heading > button { min-width: 64px; min-height: 44px; padding: 8px; border: 0; border-radius: 8px; background: #f1f5f7; color: #174459; font-size: 14px; }
  #app_view.bn-phone-essential .phone-detail-heading > div { min-width: 0; display: grid; gap: 3px; }
  #app_view.bn-phone-essential .phone-detail-heading strong { font-size: 14px; overflow-wrap: anywhere; }
  #app_view.bn-phone-essential .phone-detail-heading small { font-size: 12px; color: #586d79; }
  #app_view.bn-phone-essential .phone-detail-tabs { display: flex; align-items: center; gap: 8px; padding-top: 6px; }
  #app_view.bn-phone-essential .phone-detail-tabs button { min-height: 44px; padding: 8px 16px; border: 0; border-radius: 8px; color: #174459; background: #f1f5f7; font-size: 14px; }
  #app_view.bn-phone-essential .phone-detail-tabs button[aria-pressed=true] { background: #174459; color: #fff; }
  #app_view.bn-phone-essential .phone-detail-tabs span { margin-left: auto; font-size: 13px; color: #586d79; }
  #app_view.bn-phone-essential .phone-pdf-detail > .pa-tracking-detail-body { flex: 1 1 0 !important; min-height: 0 !important; max-height: none !important; padding: 0 !important; overflow: hidden !important; }
  #app_view.bn-phone-essential .phone-pdf-detail .pa-tracking-detail-grid { display: flex !important; flex-direction: column; height: 100%; min-height: 0; gap: 0 !important; }
  #app_view.bn-phone-essential .phone-pdf-detail:not(.phone-detail-information) .pa-tracking-detail-side { display: none !important; }
  #app_view.bn-phone-essential .phone-pdf-detail .pa-tracking-detail-preview { display: flex !important; flex-direction: column; flex: 1 1 0; height: 100%; min-height: 0; padding: 0 !important; border: 0 !important; overflow: hidden !important; }
  #app_view.bn-phone-essential .phone-pdf-detail .pa-tracking-detail-preview > .fv-detail-head { display: none !important; }
  #app_view.bn-phone-essential .phone-pdf-detail .facturier-pdf-document { display: flex; flex-direction: column; flex: 1 1 0; height: 100%; min-height: 0; }
  #app_view.bn-phone-essential .phone-pdf-detail .facturier-pdf-document-actions { display: none !important; }
  #app_view.bn-phone-essential .phone-pdf-detail .facturier-clean-pdf-viewer { display: flex; flex-direction: column; flex: 1 1 0; min-height: 0 !important; height: 100% !important; }
  #app_view.bn-phone-essential .phone-pdf-detail .facturier-pdf-viewer-toolbar { flex: 0 0 auto; padding: 4px !important; gap: 4px !important; }
  #app_view.bn-phone-essential .phone-pdf-detail .facturier-pdf-viewer-toolbar button { min-width: 36px !important; min-height: 44px !important; padding: 4px !important; }
  #app_view.bn-phone-essential .phone-pdf-detail .facturier-pdf-canvas-wrap { flex: 1 1 0; min-height: 0 !important; height: auto !important; overflow: auto !important; padding: 4px !important; }
  #app_view.bn-phone-essential .phone-pdf-detail.phone-detail-information > .pa-tracking-detail-body { overflow: auto !important; padding: 10px !important; }
  #app_view.bn-phone-essential .phone-pdf-detail.phone-detail-information .pa-tracking-detail-grid { height: auto; display: block !important; }
  #app_view.bn-phone-essential .phone-pdf-detail.phone-detail-information .pa-tracking-detail-preview { display: none !important; }
  #app_view.bn-phone-essential .phone-pdf-detail.phone-detail-information .pa-tracking-detail-side { display: grid !important; }
  #app_view.bn-phone-essential .phone-pdf-detail .pa-detail-action-card { display: none !important; }
  #app_view.bn-phone-essential #phone_detail_footer { display: grid; gap: 6px; flex: 0 0 auto; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #dce5e9; }
  #app_view.bn-phone-essential .phone-detail-decision { font-size: 13px; }
  #app_view.bn-phone-essential .phone-detail-decision :is(.pa-daily-row-actions,.facturier-order-row-actions) { display: flex; gap: 8px; flex-wrap: wrap; }
  #app_view.bn-phone-essential .phone-detail-decision button { flex: 1; min-height: 48px; padding: 10px 12px; font-size: 15px; border-radius: 9px; }
  #app_view.bn-phone-essential .phone-detail-decision button[data-pa-action=approve] { background: #628f26; color: #fff; }
  #app_view.bn-phone-essential .phone-detail-decision button[data-pa-action=refuse] { background: #fff3f3; color: #9e2435; }
  #app_view.bn-phone-essential .phone-review-skip { min-height: 44px; width: 100%; padding: 8px; border: 0; border-radius: 8px; color: #174459; background: #f1f5f7; font-size: 14px; }
  #app_view.bn-phone-essential #phone_detail_download button { min-height: 44px; padding: 8px 12px; font-size: 14px; }
}

@media (max-width: 760px) {
  #app_view.bn-phone-essential.bn-phone-fullservice #mobile_primary_nav { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
}
/* FULLSERVICE report controls */
.fullservice-report-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.fullservice-report-controls label { flex: 1 1 160px; min-width: 0; }
.fullservice-report-controls input { width: 100%; box-sizing: border-box; }
.fullservice-report-controls button { min-height: 40px; }
.fullservice-review-start,.fullservice-review-open { border:0; border-radius:8px; background:#174459; color:#fff; padding:12px 18px; min-height:46px; font-weight:700; cursor:pointer; }
.fullservice-review-start:disabled { opacity:.55; cursor:default; }
#app_view .fullservice-review-backdrop { z-index:21990 !important; padding:20px; }
body:has(.fullservice-review-backdrop) > .pa-refusal-modal-backdrop { z-index:23000 !important; }
.fullservice-review-modal { width:min(1280px,96vw); height:min(900px,94vh); display:flex; flex-direction:column; border-radius:14px; background:#fff; color:#173647; overflow:hidden; box-shadow:0 20px 80px #001b3544; }
.fullservice-review-modal > header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 22px; border-bottom:1px solid #dae4eb; }
.fullservice-review-modal h2 { margin:2px 0; font-size:23px; }
.fullservice-review-modal header p { margin:4px 0; }
.fullservice-review-modal button { min-height:46px; cursor:pointer; }
.fullservice-review-body { display:grid; grid-template-columns:minmax(0,1fr) 290px; min-height:0; flex:1; }
.fullservice-review-document { display:flex; min-width:0; overflow:auto; padding:12px; background:#edf1f5; }
.fullservice-review-document .facturier-pdf-document,.fullservice-review-document .facturier-clean-pdf-viewer { display:flex; flex-direction:column; flex:1; min-height:0; }
.fullservice-review-document .facturier-pdf-canvas-wrap { flex:1; min-height:180px; }
.fullservice-review-body aside { padding:22px; overflow:auto; border-left:1px solid #dae4eb; }
.fullservice-review-amount { display:block; font-size:29px; font-weight:800; }
.fullservice-review-body aside h3 { font-size:18px; margin-top:26px; }
.fullservice-review-body .pa-daily-row-actions { display:block !important; width:100%; }
.fullservice-review-body .pa-action-cell { display:grid !important; grid-template-columns:1fr !important; align-items:stretch; gap:12px; width:100%; }
.fullservice-review-body .pa-action-cell button { width:100% !important; max-width:none; min-height:56px; font-size:18px; border-radius:8px; }
.fullservice-review-body [data-pa-action="refuse"] { background:#fff1f1; color:#9d2637; border:1px solid #dca3ac; }
.fullservice-review-next { width:100%; margin:22px 0 12px; border:1px solid #b9cbd7; border-radius:8px; background:#f5f8fa; padding:12px; color:#174459; }
.fullservice-review-body aside small { display:block; line-height:1.5; }
/* Final FULLSERVICE layout. These rules do not change other invoice readers. */
.fullservice-workbench,.fullservice-review-modal { --fs-ink:#173746; --fs-muted:#607581; --fs-line:#dfe7ec; --fs-soft:#f6f9fb; font-size:14px; line-height:1.5; }
#app_view .fullservice-workbench { overflow:hidden; border:1px solid var(--fs-line); border-radius:12px; background:#fff; padding:0; }
#app_view .fullservice-workbench .facturier-order-topbar { align-items:center; gap:24px; padding:24px; margin:0; border-bottom:1px solid var(--fs-line); }
#app_view .fullservice-workbench .facturier-order-topbar h2 { margin:3px 0 6px; font-size:23px; line-height:1.3; }
#app_view .fullservice-workbench .facturier-order-topbar p { margin:0; color:var(--fs-muted); }
#app_view .fullservice-workbench .fv-priority-eyebrow { font-size:11px; font-weight:700; letter-spacing:.08em; }
#app_view .fullservice-review-start { display:flex; align-items:center; justify-content:center; gap:12px; background:#174459; border:1px solid #174459; border-radius:8px; padding:12px 18px; font-size:14px; white-space:nowrap; }
.fullservice-review-start span { padding:1px 8px; border-radius:5px; background:#ffffff24; font-variant-numeric:tabular-nums; }
.fullservice-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; padding:20px 24px 0; }
#app_view .fullservice-summary button { display:flex; align-items:center; justify-content:space-between; min-height:70px; gap:12px; padding:14px 18px; border:1px solid var(--fs-line); border-radius:9px; background:#fff; color:var(--fs-muted); text-align:left; }
#app_view .fullservice-summary button.is-active { border-color:#8eafbd; background:#f0f6f9; color:var(--fs-ink); box-shadow:inset 3px 0 0 #174459; }
.fullservice-summary strong { font-size:26px; line-height:1; font-variant-numeric:tabular-nums; color:var(--fs-ink); }
#app_view .fullservice-workbench .facturier-order-list-toolbar { display:grid; grid-template-columns:240px minmax(0,1fr); align-items:end; gap:16px; padding:20px 24px; margin:0; border:0; }
.fullservice-workbench label { display:grid; gap:6px; color:var(--fs-muted); font-size:12px; font-weight:600; }
#app_view .fullservice-workbench :is(input,select) { min-height:42px; height:42px; border:1px solid #cfdae2; border-radius:7px; background:#fff; color:var(--fs-ink); font-size:14px; padding:9px 11px; }
.fullservice-report-panel { margin:0 24px 20px; padding:18px; border:1px solid var(--fs-line); border-radius:9px; background:var(--fs-soft); }
.fullservice-report-heading { margin-bottom:14px; }
.fullservice-report-heading strong { font-size:14px; color:var(--fs-ink); }
.fullservice-report-heading p { margin:3px 0 0; color:var(--fs-muted); font-size:12px; font-weight:400; }
#app_view .fullservice-report-controls button { min-height:42px; height:42px; border:1px solid #bdcdd7; border-radius:7px; background:#fff; color:#174459; font-size:13px; padding:9px 14px; }
.fullservice-list-count { margin:0; padding:0 24px 12px; color:var(--fs-ink); font-size:13px; }
.fullservice-list-count span { color:var(--fs-muted); }
#app_view .fullservice-workbench .pa-table-wrap { padding:0; }
#app_view .fullservice-workbench .pa-daily-table { border-collapse:collapse; width:100%; }
#app_view .fullservice-workbench .pa-daily-table :is(th,td) { padding:15px 18px; height:auto; min-height:0; border-bottom:1px solid #e8edf1; text-align:left; vertical-align:middle; }
#app_view .fullservice-workbench .pa-daily-table th { background:var(--fs-soft); color:var(--fs-muted); font-size:12px; font-weight:600; }
#app_view .fullservice-workbench .pa-daily-table td { font-size:13px; color:var(--fs-ink); }
#app_view .fullservice-workbench .pa-daily-table :is(th,td):first-child { width:27%; }
#app_view .fullservice-workbench .pa-daily-table th:nth-child(5),#app_view .fullservice-workbench td[data-label="Montant TTC"] { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
#app_view .fullservice-workbench .facturier-order-document-link { display:grid; gap:3px; text-align:left; padding:0; min-height:40px; }
#app_view .fullservice-workbench .facturier-order-document-link span { color:var(--fs-muted); font-size:12px; }
#app_view .fullservice-review-open { background:#fff; color:#174459; border:1px solid #c5d5de; font-size:13px; font-weight:600; padding:9px 12px; min-height:40px; white-space:nowrap; }
.fullservice-status-pill { display:inline-flex; align-items:center; justify-content:center; width:fit-content; padding:5px 9px; border-radius:6px; font-size:12px; font-weight:600; line-height:1.3; background:#edf3f7; color:#36546a; }
.fullservice-status-pill.is-pending { background:#fff8e6; color:#86600b; }
.fullservice-status-pill.is-approved { background:#edf6e7; color:#3c6627; }
.fullservice-status-pill.is-refused { background:#fff0f1; color:#9d3543; }
.fullservice-notice { padding:12px 14px; margin:12px 0; border:1px solid #d9e4ec; border-radius:8px; background:#f0f6fa; color:#36546a; font-size:13px; font-weight:400; line-height:1.5; }
.fullservice-workbench > .fullservice-notice { margin:18px 24px 0; }
.fullservice-notice.is-success { background:#f1f8ed; border-color:#d7e7cc; color:#426433; }
.fullservice-notice.is-error { background:#fff5f3; border-color:#f0d6d0; color:#8b4338; }
.fullservice-notice p { margin:0; }
#app_view .fullservice-notice button { margin-top:10px; padding:8px 12px; min-height:40px; border:1px solid #d5b9b1; border-radius:6px; background:#fff; color:#844438; font-size:13px; }
.fullservice-review-modal > header { padding:20px 24px; }
.fullservice-review-modal .fv-priority-eyebrow { display:flex; align-items:center; gap:12px; margin:0 0 6px; color:var(--fs-muted); font-size:11px; font-weight:700; letter-spacing:.06em; }
.fullservice-review-position { padding:3px 8px; border-radius:5px; background:#edf3f7; color:#496471; font-size:11px; letter-spacing:0; font-weight:600; }
.fullservice-review-modal h2 { color:var(--fs-ink); font-size:22px; font-weight:700; line-height:1.3; }
.fullservice-review-identity { color:var(--fs-muted); font-size:12px; }
.fullservice-review-identity span { margin:0 5px; color:#9aa9b2; }
#app_view .fullservice-review-modal [data-pa-close-document-info] { min-height:40px; padding:8px 13px; border:1px solid #cdd9e1; border-radius:7px; background:#fff; color:#385666; font-size:13px; font-weight:600; white-space:nowrap; }
.fullservice-review-body { grid-template-columns:minmax(0,1fr) 308px; }
.fullservice-review-body aside { display:flex; flex-direction:column; gap:20px; padding:24px; }
.fullservice-review-summary { display:grid; gap:9px; padding:18px; border:1px solid var(--fs-line); border-radius:10px; background:var(--fs-soft); }
.fullservice-review-amount { font-size:29px; line-height:1.15; letter-spacing:-.03em; font-variant-numeric:tabular-nums; }
.fullservice-review-caption,.fullservice-review-date { font-size:12px; color:var(--fs-muted); }
.fullservice-review-body aside .fullservice-notice { margin:0; }
.fullservice-review-body aside h3 { margin:0 0 14px; color:var(--fs-ink); font-size:15px; font-weight:700; }
.fullservice-review-decision > p { margin:10px 0 0; font-size:12px; color:var(--fs-muted); line-height:1.5; }
.fullservice-review-body .pa-action-cell button { min-height:52px; font-size:16px; font-weight:700; }
.fullservice-review-wait { padding:14px; border-radius:7px; background:var(--fs-soft); color:var(--fs-muted); font-size:13px; }
.fullservice-review-navigation { margin-top:auto; border-top:1px solid var(--fs-line); padding-top:18px; }
.fullservice-review-next { margin:0 0 10px; background:#fff; border:1px solid #c5d5de; font-size:13px; font-weight:600; }
.fullservice-review-body aside small { color:var(--fs-muted); font-size:12px; }
#app_view .fullservice-review-document .facturier-pdf-document-actions .fv-action-btn { min-height:36px; padding:7px 11px; border:1px solid #d5dfe6; background:#fff; color:#385666; font-size:12px; }
#app_view .fullservice-review-document .facturier-pdf-viewer-toolbar button { min-height:36px; font-size:12px; }
body:has(.fullservice-review-backdrop) > .pa-refusal-modal-backdrop .pa-refusal-modal { border-radius:12px; padding:24px; box-shadow:0 20px 60px #17374633; }
body:has(.fullservice-review-backdrop) > .pa-refusal-modal-backdrop .pa-refusal-modal label { display:grid; gap:7px; font-size:13px; color:#526a78; }
body:has(.fullservice-review-backdrop) > .pa-refusal-modal-backdrop .pa-refusal-actions { gap:12px; padding-top:12px; }
@media(max-width:760px) {
  .fullservice-review-backdrop { padding:0; align-items:stretch; }
  .fullservice-review-modal { width:100%; height:100dvh; max-height:100dvh; border-radius:0; }
  .fullservice-review-modal > header { padding:10px 12px; gap:8px; }
  .fullservice-review-modal h2 { font-size:18px; }
  .fullservice-review-modal header p { font-size:12px; }
  .fullservice-review-body { display:flex; flex-direction:column; overflow:hidden; }
  .fullservice-review-document { flex:1 1 0; min-height:0; padding:0; overflow:hidden; }
  .fullservice-review-document .facturier-pdf-canvas-wrap { min-height:0; padding:8px; }
  .fullservice-review-body aside { flex:0 0 auto; max-height:35dvh; overflow:auto; padding:8px 12px max(8px,env(safe-area-inset-bottom)); border-left:0; border-top:1px solid #dae4eb; }
  .fullservice-review-body .pa-action-cell { grid-template-columns:1fr 1fr !important; }
  .fullservice-review-body aside h3 { margin:12px 0; }
  #app_view .fullservice-workbench .facturier-order-topbar { padding:18px 14px; flex-direction:column; align-items:stretch; gap:16px; }
  .fullservice-summary { gap:8px; padding:14px 14px 0; }
  #app_view .fullservice-summary button { min-height:76px; flex-direction:column-reverse; align-items:flex-start; gap:8px; padding:12px; font-size:12px; }
  .fullservice-summary strong { font-size:23px; }
  #app_view .fullservice-workbench .facturier-order-list-toolbar { grid-template-columns:1fr; padding:16px 14px; gap:12px; }
  .fullservice-report-panel { margin:0 14px 16px; padding:14px; }
  .fullservice-list-count { padding:0 14px 10px; }
  #app_view .fullservice-workbench .pa-daily-table :is(th,td):first-child { width:auto; }
  #app_view .fullservice-workbench td[data-label="Montant TTC"] { text-align:left; }
  .fullservice-workbench > .fullservice-notice { margin:14px; }
  .fullservice-review-modal > header { padding:14px; align-items:flex-start; }
  .fullservice-review-modal h2 { font-size:18px; }
  .fullservice-review-body aside { gap:14px; padding:14px; }
  .fullservice-review-summary { padding:14px; grid-template-columns:1fr auto; align-items:center; }
  .fullservice-review-caption { grid-row:2; }
  .fullservice-review-summary .fullservice-status-pill { grid-column:2; grid-row:1 / span 2; }
  .fullservice-review-body aside h3 { margin:0 0 10px; }
  .fullservice-review-navigation { padding-top:12px; }
}

/* Keep the document and its decisions together in the phone reader. */
@media(max-width:760px) {
  .fullservice-review-modal > header { flex:0 0 auto; padding:8px 12px; align-items:center; }
  .fullservice-review-modal header .fv-priority-eyebrow { display:none; }
  .fullservice-review-modal h2 { font-size:16px; }
  .fullservice-review-modal header p { margin:2px 0; }
  .fullservice-review-body aside { gap:6px; padding:8px 12px max(8px,env(safe-area-inset-bottom)); }
  .fullservice-review-body .fullservice-review-summary,
  .fullservice-review-decision > h3,
  .fullservice-review-decision > p { display:none; }
  .fullservice-review-navigation { margin:0; padding:0; border:0; }
  .fullservice-review-next { min-height:36px; margin:0; padding:6px; }
  .fullservice-review-document .facturier-pdf-document-actions { padding:2px 6px; }
  .fullservice-review-document [data-facturier-pdf-print] { display:none; }
}
