/* WEB_ASSET_GPT V86.78.0 - Billing approval-only page */
.boa-only-page,
.boa-only-login {
    min-height: 100vh;
    background: #eef2f7;
    color: #0f172a;
    font-family: Inter, Arial, Tahoma, sans-serif;
}
.boa-only-header {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 56px;
    padding: 8px clamp(14px, 3vw, 34px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: linear-gradient(110deg, #087f5b, #16a34a);
    color: #fff;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .15);
}
.boa-only-brand { display: flex; align-items: center; gap: 12px; }
.boa-only-brand img { width: 45px; height: 45px; object-fit: contain; padding: 5px; border-radius: 10px; background: rgba(255,255,255,.94); }
.boa-only-brand strong { display: block; font-size: 18px; }
.boa-only-brand span { display: block; font-size: 12px; opacity: .88; margin-top: 2px; }
.boa-only-user { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; }
.boa-only-user button { border: 1px solid rgba(255,255,255,.55); background: rgba(255,255,255,.15); color: #fff; border-radius: 8px; padding: 8px 12px; cursor: pointer; }
.boa-only-content { max-width: 1480px; margin: 0 auto; padding: 24px clamp(12px, 3vw, 34px) 48px; }
.boa-only-loading,
.boa-only-state {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 32px 18px;
}
.boa-only-loading h2 { margin: 18px 0 5px; }
.boa-only-loading p,
.boa-only-state p { color: #64748b; max-width: 680px; line-height: 1.65; }
.boa-only-spinner { width: 46px; height: 46px; border: 5px solid #cbd5e1; border-top-color: #16a34a; border-radius: 50%; animation: boaOnlySpin .8s linear infinite; }
@keyframes boaOnlySpin { to { transform: rotate(360deg); } }
.boa-only-title-row {
    background: #fff;
    border: 1px solid #dbe4ef;
    border-radius: 14px;
    padding: 20px 22px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    box-shadow: 0 8px 24px rgba(15,23,42,.06);
}
.boa-only-title-row h1 { margin: 8px 0 5px; font-size: clamp(22px, 3vw, 31px); }
.boa-only-title-row p { margin: 0; color: #64748b; font-size: 13px; }
.boa-only-badge { display: inline-block; padding: 5px 10px; border-radius: 999px; background: #fff7ed; color: #9a3412; border: 1px solid #fdba74; font-size: 11px; font-weight: 800; letter-spacing: .35px; }
.boa-only-status { padding: 6px 11px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.boa-only-status.pending { background: #fef3c7; color: #92400e; }
.boa-only-summary-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 14px; }
.boa-only-summary-grid > div { background: #fff; border: 1px solid #dbe4ef; border-radius: 12px; padding: 14px 16px; min-height: 78px; }
.boa-only-summary-grid span { display: block; color: #64748b; font-size: 12px; margin-bottom: 7px; }
.boa-only-summary-grid strong { display: block; font-size: 16px; line-height: 1.35; }
.boa-only-summary-grid .amount { color: #166534; font-size: 18px; }
.boa-only-integrity { margin-top: 14px; padding: 11px 14px; border-radius: 9px; font-size: 13px; font-weight: 700; }
.boa-only-integrity.ok { background: #ecfdf5; color: #166534; border: 1px solid #86efac; }
.boa-only-integrity.warning { background: #fffbeb; color: #92400e; border: 1px solid #fcd34d; }
.boa-only-progress,
.boa-only-document,
.boa-only-decision {
    margin-top: 14px;
    background: #fff;
    border: 1px solid #dbe4ef;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 7px 20px rgba(15,23,42,.04);
}
.boa-only-progress h2,
.boa-only-section-heading h2 { margin: 0; font-size: 18px; }
.boa-only-section-heading p { margin: 3px 0 0; color: #64748b; font-size: 12px; }
.boa-only-progress-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.boa-only-progress-card { min-height: 102px; border: 1px solid #cbd5e1; border-radius: 11px; padding: 12px; display: flex; gap: 10px; align-items: flex-start; background: #f8fafc; }
.boa-only-progress-card.approved { border-color: #86efac; background: #f0fdf4; }
.boa-only-progress-card.pending { border-color: #fbbf24; background: #fffbeb; }
.boa-only-progress-card.rejected { border-color: #fca5a5; background: #fef2f2; }
.boa-only-step-number { width: 28px; height: 28px; border-radius: 50%; background: #0f766e; color: #fff; display: grid; place-items: center; font-weight: 800; flex: 0 0 auto; }
.boa-only-progress-card b,
.boa-only-progress-card strong,
.boa-only-progress-card small { display: block; }
.boa-only-progress-card b { color: #166534; font-size: 11px; text-transform: uppercase; }
.boa-only-progress-card strong { font-size: 13px; margin-top: 5px; }
.boa-only-progress-card small { color: #64748b; font-size: 11px; margin-top: 6px; line-height: 1.45; }
.boa-only-document-scroll { margin-top: 14px; overflow: auto; border: 1px solid #cbd5e1; border-radius: 8px; background: #475569; padding: 16px; max-height: 66vh; }
.boa-only-document-scale { width: 1120px; max-width: none; margin: 0 auto; background: #fff; padding: 14px; transform-origin: top left; }
.boa-only-document-scale .no-print { display: none !important; }
.boa-only-document-scale .billing-print-wrapper { margin: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.boa-only-decision { max-width: 980px; margin-left: auto; margin-right: auto; }
.boa-only-current-approver { padding: 14px 16px; border-radius: 10px; background: #f0fdf4; border: 1px solid #86efac; margin-bottom: 15px; }
.boa-only-current-approver span,
.boa-only-current-approver strong,
.boa-only-current-approver small,
.boa-only-current-approver em { display: block; }
.boa-only-current-approver span { color: #64748b; font-size: 12px; }
.boa-only-current-approver strong { font-size: 17px; margin-top: 4px; }
.boa-only-current-approver small { color: #475569; margin-top: 2px; }
.boa-only-current-approver em { color: #166534; font-style: normal; font-size: 11px; margin-top: 8px; }
.boa-only-decision label { display: block; font-weight: 800; margin-bottom: 7px; }
.boa-only-decision textarea { width: 100%; min-height: 110px; resize: vertical; border: 1px solid #cbd5e1; border-radius: 9px; padding: 12px; font: inherit; color: #0f172a; box-sizing: border-box; }
.boa-only-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.boa-only-actions button,
.boa-only-primary,
.boa-only-secondary { min-height: 45px; border: 0; border-radius: 9px; padding: 11px 18px; font-weight: 800; font-size: 14px; cursor: pointer; }
.boa-only-actions button:disabled { opacity: .55; cursor: wait; }
.boa-only-reject { background: #dc2626; color: #fff; }
.boa-only-approve,
.boa-only-primary { background: #16a34a; color: #fff; }
.boa-only-secondary { background: #fff; color: #0f172a; border: 1px solid #cbd5e1; }
.boa-only-busy-note { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: #eff6ff; color: #1d4ed8; font-weight: 700; font-size: 13px; }
.boa-only-state-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 38px; font-weight: 800; margin-bottom: 16px; }
.boa-only-state-icon.success { background: #16a34a; }
.boa-only-state-icon.error { background: #dc2626; }
.boa-only-complete-actions { display: flex; gap: 10px; margin-top: 14px; }
.boa-only-login { display: grid; place-items: center; padding: 20px; }
.boa-only-login > section { width: min(520px,100%); background: #fff; border: 1px solid #dbe4ef; border-radius: 18px; padding: 30px; text-align: center; box-shadow: 0 20px 60px rgba(15,23,42,.13); }
.boa-only-login img { width: 105px; margin-bottom: 18px; }
.boa-only-login h1 { margin: 12px 0 8px; }
.boa-only-login p { line-height: 1.65; color: #475569; }
.boa-only-login-note { background: #f0fdf4; border: 1px solid #86efac; color: #166534; border-radius: 9px; padding: 12px; margin: 18px 0; line-height: 1.55; }
.boa-only-error-inline { background: #fef2f2; color: #991b1b; padding: 12px; border-radius: 8px; }
@media (max-width: 900px) {
    .boa-only-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .boa-only-progress-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .boa-only-user span { display: none; }
}
@media (max-width: 600px) {
    .boa-only-header { min-height: 64px; padding: 10px 12px; }
    .boa-only-brand img { width: 38px; height: 38px; }
    .boa-only-brand strong { font-size: 15px; }
    .boa-only-content { padding: 12px 9px 34px; }
    .boa-only-title-row { padding: 15px; }
    .boa-only-summary-grid,
    .boa-only-progress-grid,
    .boa-only-actions { grid-template-columns: 1fr; }
    .boa-only-document { padding: 10px; }
    .boa-only-document-scroll { padding: 8px; }
    .boa-only-complete-actions { flex-direction: column; width: 100%; }
}

/* V86.73 Executive Fast Approval */
.boa-executive-content { max-width: 1280px; padding-top: 14px; }
.boa-exec-action-panel {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #ffffff;
    border: 1px solid #bbf7d0;
    border-top: 5px solid #16a34a;
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .14);
}
.boa-exec-action-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; }
.boa-exec-action-head h1 { margin:8px 0 3px; font-size:clamp(20px,2.5vw,28px); }
.boa-exec-action-head p { margin:0; color:#64748b; font-weight:700; }
.boa-exec-actor { text-align:right; padding:9px 12px; border-radius:10px; background:#f0fdf4; color:#166534; }
.boa-exec-actor small,.boa-exec-actor b { display:block; }
.boa-exec-comment-row { margin-top:12px; }
.boa-exec-comment-row label { display:block; font-size:12px; font-weight:800; color:#475569; margin-bottom:5px; }
.boa-exec-comment-row textarea { width:100%; min-height:54px; max-height:100px; box-sizing:border-box; resize:vertical; border:1px solid #cbd5e1; border-radius:9px; padding:10px 12px; font:inherit; }
.boa-exec-actions { margin-top:10px; }
.boa-exec-actions button { min-height:48px; font-size:16px; }
.boa-exec-summary { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px; margin-top:14px; }
.boa-exec-summary > div { background:#fff; border:1px solid #dbe4ef; border-radius:11px; padding:13px; min-width:0; }
.boa-exec-summary span { display:block; color:#64748b; font-size:11px; margin-bottom:6px; }
.boa-exec-summary strong { display:block; font-size:14px; overflow-wrap:anywhere; }
.boa-exec-summary .amount { border-color:#86efac; background:#f0fdf4; }
.boa-exec-summary .amount strong { color:#166534; font-size:16px; }
.boa-exec-progress { margin-top:12px; background:#fff; border:1px solid #dbe4ef; border-radius:12px; padding:14px; }
.boa-exec-progress h2 { margin:0 0 10px; font-size:15px; }
.boa-exec-progress > div { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.boa-exec-step { display:flex; align-items:center; gap:9px; border:1px solid #e2e8f0; border-radius:9px; padding:9px; background:#f8fafc; min-width:0; }
.boa-exec-step > span { width:26px; height:26px; flex:0 0 26px; border-radius:50%; display:grid; place-items:center; color:#fff; background:#94a3b8; font-weight:800; }
.boa-exec-step b,.boa-exec-step strong { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.boa-exec-step b { font-size:10px; color:#64748b; text-transform:uppercase; }
.boa-exec-step strong { font-size:12px; margin-top:2px; }
.boa-exec-step.approved { border-color:#86efac; background:#f0fdf4; }
.boa-exec-step.approved > span,.boa-exec-step.pending > span { background:#16a34a; }
.boa-exec-step.pending { border-color:#fbbf24; background:#fffbeb; }
.boa-exec-step.rejected { border-color:#fca5a5; background:#fef2f2; }
.boa-exec-step.rejected > span { background:#dc2626; }
.boa-exec-details { margin-top:12px; background:#fff; border:1px solid #dbe4ef; border-radius:12px; overflow:hidden; }
.boa-exec-details summary { padding:14px 16px; cursor:pointer; font-weight:800; background:#f8fafc; }
.boa-fast-table-wrap { overflow:auto; max-height:54vh; }
.boa-fast-table { width:100%; min-width:1200px; border-collapse:collapse; font-size:11px; }
.boa-fast-table th { position:sticky; top:0; z-index:2; background:#fff900; color:#111827; padding:7px 5px; border:1px solid #334155; text-align:center; }
.boa-fast-table td { padding:6px 5px; border:1px solid #64748b; text-align:center; white-space:nowrap; }
.boa-fast-table td.number { text-align:right; font-variant-numeric:tabular-nums; }
.boa-fast-table tbody tr:nth-child(even) { background:#f8fafc; }
.boa-fast-empty { padding:28px; text-align:center; color:#64748b; }
.boa-exec-footer { margin-top:10px; padding:10px 12px; color:#64748b; font-size:11px; text-align:center; }
.boa-exec-completed { background:#f8fafc; }
.boa-exec-close-note { font-weight:700; color:#166534 !important; }
@media (max-width: 1000px) {
    .boa-exec-summary { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .boa-exec-progress > div { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
    .boa-exec-action-panel { top:0; border-radius:0 0 12px 12px; margin:-12px -9px 0; padding:13px 12px; }
    .boa-exec-action-head { flex-direction:column; gap:8px; }
    .boa-exec-actor { width:100%; box-sizing:border-box; text-align:left; }
    .boa-exec-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .boa-exec-progress > div { grid-template-columns:1fr; }
    .boa-exec-actions { grid-template-columns:1fr 1fr; }
}

/* V86.91.0 - Secured Final Approved PDF Dispatch */
.boa-dispatch-content { max-width: 1280px; padding-top: 18px; }
.boa-dispatch-panel {
    background: #fff;
    border: 1px solid #86efac;
    border-top: 5px solid #16a34a;
    border-radius: 15px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .11);
}
.boa-dispatch-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.boa-dispatch-head h1 { margin: 8px 0 4px; font-size: clamp(22px, 3vw, 30px); }
.boa-dispatch-head p { margin: 0; color: #64748b; font-weight: 700; }
.boa-dispatch-complete {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid #86efac;
    border-radius: 11px;
    background: #f0fdf4;
    color: #166534;
}
.boa-dispatch-complete > span {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #16a34a;
    color: #fff;
    font-size: 23px;
    font-weight: 900;
}
.boa-dispatch-complete h2 { margin: 0; font-size: 18px; }
.boa-dispatch-complete p { margin: 3px 0 0; color: #475569; }
.boa-dispatch-login-rule,
.boa-dispatch-used {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 9px;
    line-height: 1.55;
    font-size: 13px;
}
.boa-dispatch-login-rule { border: 1px solid #93c5fd; background: #eff6ff; color: #1e3a8a; }
.boa-dispatch-used { border: 1px solid #86efac; background: #f0fdf4; color: #14532d; }
.boa-dispatch-actions {
    display: grid;
    grid-template-columns: auto minmax(280px, 1fr) auto;
    gap: 12px;
    align-items: end;
    margin-top: 14px;
}
.boa-dispatch-actions button {
    min-height: 48px;
    border: 0;
    border-radius: 9px;
    padding: 11px 18px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}
.boa-dispatch-actions button:disabled { opacity: .58; cursor: wait; }
.boa-dispatch-print { background: #2563eb; color: #fff; }
.boa-dispatch-send { background: #16a34a; color: #fff; }
.boa-dispatch-recipient-group label,
.boa-dispatch-recipient-group small { display: block; }
.boa-dispatch-recipient-group label { margin-bottom: 6px; font-size: 12px; font-weight: 800; color: #334155; }
.boa-dispatch-recipient-group input {
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    padding: 10px 12px;
    font: inherit;
    color: #0f172a;
    background: #fff;
}
.boa-dispatch-recipient-group input[readonly] { background: #f8fafc; color: #475569; }
.boa-dispatch-recipient-group small { margin-top: 5px; color: #64748b; }
.boa-dispatch-message { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: #eff6ff; color: #1d4ed8; font-weight: 700; font-size: 13px; }
.boa-dispatch-message:empty { display: none; }
.boa-dispatch-message.error { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
@media (max-width: 850px) {
    .boa-dispatch-head { flex-direction: column; }
    .boa-dispatch-head .boa-exec-actor { width: 100%; box-sizing: border-box; text-align: left; }
    .boa-dispatch-actions { grid-template-columns: 1fr; align-items: stretch; }
    .boa-dispatch-actions button { width: 100%; }
}

/* V86.93.0 - Betagro secure-link sign-in */
.boa-betagro-signin {
    min-width: 310px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 13px 20px;
    border: 1px solid #0f6b32;
    border-radius: 11px;
    background: linear-gradient(180deg, #22a94f 0%, #15803d 100%);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(21, 128, 61, .25);
    font-size: 15px;
    letter-spacing: .1px;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.boa-betagro-signin:hover {
    transform: translateY(-1px);
    box-shadow: 0 11px 24px rgba(21, 128, 61, .30);
    filter: brightness(1.02);
}
.boa-betagro-signin:active { transform: translateY(0); }
.boa-betagro-signin-icon {
    width: 26px;
    height: 26px;
    display: inline-grid;
    place-items: center;
    border-radius: 7px;
    background: #ffffff;
    color: #15803d;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
}
@media (max-width: 480px) {
    .boa-betagro-signin { min-width: 0; width: 100%; box-sizing: border-box; }
}
