/* OptiCRM's own parts of the pages (Framework.Web's frame and generic pages are in framework-web.css). */

:root {
    --opti-red: #a4262c;
    --opti-green: #0e700e;
    --opti-orange: #8a5300;
}

/* ---------- a member's page */

.opti-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem 2.5rem;
    margin: 0 1rem .8rem;
    padding: .8rem 1rem;
    background: #f7f9fc;
    border: 1px solid var(--fw-border);
    border-radius: 8px;
}

.opti-summary-who, .opti-summary-account { display: flex; flex-direction: column; gap: .15rem; }
.opti-summary-name { font-size: 1.15rem; font-weight: 600; }
.opti-summary-buttons { display: flex; gap: .4rem; margin-left: auto; align-self: center; }

.opti-status-active, .opti-owes-nothing { color: var(--opti-green); font-weight: 600; }
.opti-status-left, .opti-owes { color: var(--opti-red); font-weight: 600; }
.opti-status-waiting { color: var(--opti-orange); font-weight: 600; }

.opti-summary + .fw-success { margin: -.4rem 1rem .8rem; }

.opti-overdue { color: var(--opti-red); }
.opti-credit { margin: .5rem 0 0; font-weight: 600; }
.opti-payments { margin: .3rem 0 .3rem 1.5rem; }

/* ---------- the payment */

.opti-payment-filters { display: flex; gap: 1.5rem; margin: .8rem 0 .4rem; }
.opti-payment-lines { max-height: 340px; }

/* ---------- a message */

.opti-label { display: block; font-weight: 600; margin: .7rem 0 .25rem; }
.opti-message-cost { display: flex; gap: 2rem; margin: .8rem 0 .4rem; }
.opti-recipients { max-height: 260px; }

/* ---------- screens of OptiCRM's own */

.opti-screen { padding: 0 1rem; max-width: 820px; }
.opti-dues-summary { margin: 1rem 0; font-size: 1.02rem; }

/* ---------- the start page */

.opti-start { padding: .4rem 1rem 1rem; }
.opti-start-group { font-size: 1.05rem; font-weight: 600; color: var(--fw-muted); margin: 1rem 0 .6rem; }
.opti-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-rows: 120px; gap: .6rem; }
.opti-tile {
    display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; text-align: left;
    padding: .6rem .75rem; border: none; border-radius: 6px; color: #fff; cursor: pointer; font: inherit; min-width: 0;
}
.opti-tile:hover { filter: brightness(1.08); }
.opti-tile:focus-visible { outline: 3px solid #0f6cbd; outline-offset: 2px; }
.opti-tile-wide { grid-column: span 2; }
.opti-tile-title { font-size: .92rem; }
.opti-tile-value { font-size: 1.7rem; font-weight: 700; }
.opti-tile-detail { font-size: .82rem; opacity: .95; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.opti-tile-action { background: #4a5a70; justify-content: flex-end; }
.opti-deadlines { padding-left: 1.2rem; }

.opti-screen-hint { margin: 0 1rem .6rem; max-width: 900px; }

/* ---------- member search */

.opti-search-box { margin-bottom: .3rem; }
.opti-left { color: var(--fw-muted); }

/* ---------- bank import */

.opti-bank-import { max-width: 1100px; }
.opti-file { display: block; padding: .3rem 0; }
.opti-bank-lines .dxbl-combobox { min-width: 0; }

/* ---------- budgets, benefits, events, surveys */

.opti-budget-side { font-size: 1rem; margin: .8rem 0 .3rem; }
.opti-budget-grid { margin-bottom: .6rem; }
.opti-overrun { color: var(--opti-red); font-weight: 600; }
.opti-tick-grid { max-height: 420px; }
.opti-give-foot { margin-top: .6rem; }
.opti-warning-text { color: var(--opti-orange); }
.opti-batch-foot { display: flex; align-items: center; gap: 1rem; margin-top: .6rem; }
.opti-batch-decision { flex: 1; }
.opti-portal-address { display: flex; align-items: center; gap: .5rem; margin: 0 1rem .6rem; flex-wrap: wrap; }
.opti-label-inline { font-weight: 600; }
.opti-screen-buttons { display: flex; gap: .5rem; margin-top: .8rem; }

/* ---------- general assembly door («Προσέλευση») */

.opti-door { padding: 0 1rem; max-width: 980px; display: flex; flex-direction: column; gap: .6rem; }
.opti-door-calls { display: flex; align-items: center; gap: 1rem; }
.opti-door-counter { font-size: 1.2rem; font-weight: 700; }
.opti-door-quorum { color: var(--opti-green); }
.opti-door-search { font-size: 1.3rem; padding: .45rem .6rem; border: 1px solid #8a8886; border-radius: 4px; width: 100%; box-sizing: border-box; }
.opti-door-search:focus { outline: 2px solid #0f6cbd; outline-offset: 1px; }
.opti-door-results { border-collapse: collapse; width: 100%; }
.opti-door-results th, .opti-door-results td { text-align: left; padding: .3rem .5rem; border-bottom: 1px solid #e1dfdd; }
.opti-door-results tbody tr { cursor: pointer; }
.opti-door-results tbody tr:hover { background: #f3f2f1; }
.opti-door-focused, .opti-door-focused:hover { background: #deecf9 !important; }
.opti-door-verdict { font-size: 1.25rem; font-weight: 700; padding: .7rem .9rem; border-radius: 6px; color: #fff; }
.opti-door-yes { background: #278054; }
.opti-door-no { background: #c0392b; }
.opti-door-already { background: #de7d2c; }
.opti-door-neutral { background: #34495e; }
.opti-door-buttons { display: flex; gap: .5rem; }

/* The club's settings: the member portal's switches, addresses and lines to copy; the application's details and documents; the logo. */
.opti-portal { max-width: 900px; padding: .4rem 0; }
.opti-portal h3 { font-size: 1rem; font-weight: 600; margin: 1.1rem 0 .3rem; }
.opti-check { display: flex; align-items: center; gap: .5rem; margin-top: .7rem; font-weight: 600; }
.opti-portal .fw-hint { margin: .3rem 0 .4rem; }
.opti-portal-join { margin-top: 1.4rem; }
.opti-portal-line { display: flex; align-items: center; gap: .5rem; }
.opti-portal-text { flex: 1; }
.opti-portal-open { white-space: nowrap; }
.opti-portal-theme { max-width: 320px; }
.opti-join-list { padding: .6rem 0; max-height: 60vh; overflow-y: auto; }
.opti-join-list table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.opti-join-list th { text-align: left; font-weight: 600; padding: .3rem .4rem; border-bottom: 1px solid #e1dfdd; }
.opti-join-list td { padding: .2rem .4rem; border-bottom: 1px solid #f3f2f1; }
.opti-join-document { display: flex; gap: .8rem; border: 1px solid #e1dfdd; border-radius: 4px; padding: .6rem; margin-top: .6rem; }
.opti-join-document-fields { flex: 1; display: flex; flex-direction: column; gap: .2rem; }
.opti-join-document-buttons { display: flex; flex-direction: column; gap: .2rem; }
.opti-logo { padding: .4rem 0; }
.opti-logo-picture { max-width: 320px; max-height: 200px; border: 1px solid #e1dfdd; padding: .4rem; background: #fff; margin: .6rem 0; display: block; }
.opti-logo-buttons { display: flex; gap: .6rem; align-items: center; margin-top: .4rem; }
.opti-password { max-width: 640px; margin-bottom: .6rem; }

/* «Συνδρομή»: the cost as the service words it, the card's page to open, the orders and a transfer's details. */
.opti-subscription-quote, .opti-subscription-transfer { white-space: pre-line; padding: .5rem .6rem; border: 1px solid #e1dfdd; border-radius: 4px; background: #faf9f8; }
.opti-subscription-transfer { margin: .5rem 0; }
.opti-subscription-card { font-weight: 600; align-self: center; }
.opti-subscription-orders { margin-top: .4rem; }
