/* Inner pages, one pass for all of them (2026-11-18): calmer spacing, readable lists, soft badges, one look for filters and tables.
   Everything here overrides Bootstrap/app.css through shared classes, so a page improves without its template changing. */

/* The page: a readable width on big screens, a clear title and a lighter subtitle */
.wk-content { max-width: none; padding-top: 1.5rem; padding-inline: 2rem; }
.wk-console .wk-content { max-width: none; }
/* the arrow of a select sits at the end: keep the text clear of it (the padding above would otherwise cover Bootstrap's) */
.form-select { padding-inline-end: 2.5rem !important; background-position: right .85rem center; }
[dir="rtl"] .form-select { background-position: left .85rem center; }
.wk-card .list-group-item { background: transparent; }
.wk-topbar__title h1 { font-size: 1.55rem; letter-spacing: -.01em; }
.wk-topbar__title .subtitle { margin-top: .15rem; color: var(--wk-muted); font-size: .92rem; }

/* Cards: more air inside, a quiet border instead of a heavy shadow */
.wk-card { border-color: #e9ebf5; box-shadow: 0 1px 2px rgba(16, 18, 43, .03); }
.wk-card-body { padding: 1.35rem 1.5rem; }
.wk-card-head { padding: 1rem 1.5rem; }
.wk-card-head h2, .wk-card-head h3 { font-weight: 700; }

/* Lists of rows (tasks, contacts, notifications, anything built on list-group): taller rows, a clear hover, a quiet second line */
.wk-card > .list-group > .list-group-item, .wk-card .list-group-flush > .list-group-item { padding: 1rem 1.5rem; border-color: #eef0f7; }
.wk-card .list-group-item-action { transition: background-color .12s; }
.wk-card .list-group-item-action:hover { background: var(--wk-primary-50); }
.wk-card .list-group-item .fw-semibold { font-size: 1rem; color: var(--wk-ink); }
.wk-card .list-group-item .small.opacity-75 { opacity: 1 !important; color: var(--wk-muted); margin-top: .3rem; font-size: .85rem; }
.wk-card .list-group-item .d-flex.justify-content-between { align-items: center; }

/* Filter chips: the row of small buttons above a list reads as one control */
.d-flex.flex-wrap.gap-2.mb-3 > .btn-sm { border-radius: 999px; padding: .4rem .95rem; font-weight: 600; border: 1px solid transparent; }
.d-flex.flex-wrap.gap-2.mb-3 > .btn-sm.btn-light { background: #fff; border-color: #e6e8f2; color: var(--wk-text); }
.d-flex.flex-wrap.gap-2.mb-3 > .btn-sm.btn-light:hover { border-color: var(--wk-primary); color: var(--wk-primary-600); }
.d-flex.flex-wrap.gap-2.mb-3 > .btn-sm .badge { margin-inline-start: .25rem; }
.d-flex.flex-wrap.gap-2.mb-3 { margin-bottom: 1.1rem !important; }

/* Badges: soft pills (tinted ground, dark text) instead of loud blocks */
.badge { font-weight: 600; letter-spacing: 0; padding: .38em .7em; border-radius: 999px; }
.badge.text-bg-danger { background: #fdecec !important; color: #b3261e !important; }
.badge.text-bg-warning { background: #fff2d6 !important; color: #8a5a00 !important; }
.badge.text-bg-success { background: #e2f6ea !important; color: #17693a !important; }
.badge.text-bg-primary { background: var(--wk-primary-100) !important; color: var(--wk-primary-600) !important; }
.badge.text-bg-secondary { background: #eceef6 !important; color: #4a4f73 !important; }
.badge.text-bg-light { background: #f0f1f8 !important; color: #4a4f73 !important; }
.badge.text-bg-light.border { border-color: #e1e4f0 !important; }

/* Tables: a quiet header and soft row lines */
.table { --bs-table-bg: transparent; }
.table > thead th { font-size: .78rem; font-weight: 700; text-transform: none; color: var(--wk-muted); background: #f7f8fc; border-bottom: 1px solid #e9ebf5; padding: .7rem 1rem; }
.table > :not(caption) > * > * { padding: .85rem 1rem; border-bottom-color: #eef0f7; }
.table-hover > tbody > tr:hover > * { background: var(--wk-primary-50); }

/* Forms: a clear label, comfortable fields, a visible focus */
.form-label { font-weight: 600; font-size: .88rem; margin-bottom: .35rem; color: var(--wk-ink); }
.form-control, .form-select { padding: .62rem .85rem; border-color: #dfe2ee; border-radius: 10px; }
.form-control:focus, .form-select:focus { border-color: var(--wk-primary); box-shadow: 0 0 0 4px var(--wk-primary-50); }

/* Empty states: centred, with room */
.small-muted.text-center, .wk-empty { padding-block: 2.4rem; }

/* The credit line at the bottom: out of the way */
.wk-credit { opacity: .75; margin-top: 2.5rem; }
@media (max-width: 991px) { .wk-content { padding-top: 1rem; padding-inline: 1rem; } .wk-card-body, .wk-card-head, .wk-card > .list-group > .list-group-item { padding-inline: 1.1rem; } }

/* File fields (static/js/ui.js dresses every <input type=file>): one box to click or drop a file on */
.wk-file { position: relative; display: block; }
.wk-file__face { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border: 1.5px dashed #cfd3e6; border-radius: 12px; background: #fbfbfe; color: var(--wk-muted); transition: border-color .15s, background-color .15s, box-shadow .15s; }
.wk-file__icon { font-size: 1.5rem; color: var(--wk-primary); flex: none; }
.wk-file__text { flex: 1; min-width: 0; font-size: .92rem; }
.wk-file__choose { color: var(--wk-primary-600); font-weight: 700; }
.wk-file__name { flex: none; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; font-size: .85rem; font-weight: 600; color: var(--wk-ink); }
.wk-file__name:empty { display: none; }
.wk-file__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; padding: 0; margin: 0; }
.wk-file:hover .wk-file__face, .wk-file.is-over .wk-file__face { border-color: var(--wk-primary); background: var(--wk-primary-50); }
.wk-file:focus-within .wk-file__face { border-color: var(--wk-primary); box-shadow: 0 0 0 4px var(--wk-primary-50); }
.wk-file.has-file .wk-file__face { border-style: solid; border-color: #b9e3cb; background: #f3fbf6; }
.wk-file.has-file .wk-file__icon { color: #17803f; }
.wk-file.has-file .wk-file__icon::before { content: "\f26a"; }       /* bi-check-circle-fill */
.wk-file__input::file-selector-button { cursor: pointer; }
@media (max-width: 575px) { .wk-file__face { flex-wrap: wrap; } .wk-file__name { max-width: 100%; } }
/* A file field that stays a plain control (inside an input-group, or opted out): the same calm button */
input[type=file].form-control::file-selector-button, .wk-file__input::file-selector-button { margin-inline-end: .85rem; padding: .45rem .95rem; border: 0; border-radius: 8px; background: var(--wk-primary-50); color: var(--wk-primary-600); font-weight: 700; cursor: pointer; transition: background-color .15s; }
input[type=file].form-control:hover::file-selector-button { background: var(--wk-primary-100); }

/* The operator line at the bottom of every page: the logo and the name, quiet, no box */
.wk-op { gap: .5rem; font-size: .85rem; color: var(--wk-muted); }
.wk-op__btn { display: inline-flex; align-items: center; gap: .45rem; padding: .2rem .55rem; border: 0; border-radius: 999px; background: transparent; color: var(--wk-ink); font: inherit; font-weight: 700; cursor: pointer; transition: background-color .15s; }
.wk-op__btn:hover, .wk-op__btn:focus-visible { background: var(--wk-primary-50); outline: none; }
.wk-op__btn img { width: 26px; height: 26px; object-fit: contain; border-radius: 0; background: none; }
.wk-pay { padding: 1rem 1.25rem; border: 1px dashed #d8dcee; border-radius: 14px; background: #fff; color: var(--wk-text); }
.wk-pay i { color: var(--wk-primary); }

/* Wallet */
.wk-wallet-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; margin-bottom: 1.5rem; padding: 1.5rem 1.75rem; border-radius: 22px; color: #fff;
  background: radial-gradient(circle at 90% 0%, rgba(143, 130, 255, .55), transparent 45%), linear-gradient(135deg, #1b1840, #2f2a7a); box-shadow: 0 18px 40px -22px rgba(47, 42, 122, .7); }
.wk-wallet-hero.is-low { background: radial-gradient(circle at 90% 0%, rgba(255, 176, 32, .4), transparent 45%), linear-gradient(135deg, #2a1d12, #5a3a14); }
.wk-wallet-hero__main { display: flex; align-items: center; gap: 1.1rem; }
.wk-wallet-hero__icon { width: 58px; height: 58px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; background: rgba(255, 255, 255, .12); color: #ffd58a; }
.wk-wallet-hero__label { font-size: .85rem; opacity: .75; }
.wk-wallet-hero__num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.15; }
.wk-wallet-chip { display: inline-block; margin-top: .35rem; padding: .2rem .7rem; border-radius: 999px; font-size: .78rem; background: rgba(255, 255, 255, .14); }
.wk-wallet-chip--warn { background: rgba(255, 176, 32, .22); color: #ffe2a8; }
.wk-wallet-hero__stats { display: grid; grid-template-columns: repeat(3, auto); gap: 1.25rem 2rem; margin: 0; }
.wk-wallet-hero__stats dt { font-size: .76rem; font-weight: 500; opacity: .7; }
.wk-wallet-hero__stats dd { margin: 0; font-size: 1.15rem; font-weight: 700; }
@media (max-width: 575.98px) { .wk-wallet-hero { padding: 1.25rem; } .wk-wallet-hero__stats { grid-template-columns: repeat(3, 1fr); gap: .75rem; width: 100%; } .wk-wallet-hero__stats dd { font-size: 1rem; } }
.wk-packages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.wk-package { display: grid; gap: .15rem; justify-items: center; padding: 1rem .75rem; border: 1.5px solid var(--wk-border); border-radius: 16px; background: #fff; color: var(--wk-ink); text-align: center;
  transition: border-color .15s, box-shadow .15s, transform .15s; }
.wk-package:not(:disabled):hover { border-color: var(--wk-primary); box-shadow: 0 10px 24px -14px rgba(79, 59, 219, .55); transform: translateY(-2px); }
.wk-package:disabled { opacity: .55; cursor: not-allowed; }
.wk-package__amount { font-size: 1.6rem; font-weight: 800; }
.wk-unit { font-size: .5em; font-weight: 600; opacity: .75; }      /* the riyal sign beside a big figure: smaller than the number */
.wk-package__go { margin-top: .35rem; font-size: .8rem; font-weight: 700; color: var(--wk-primary); }
.wk-price-list { max-height: 26rem; overflow-y: auto; border-top: 1px solid var(--wk-border); }
.wk-price-row { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 1.25rem; font-size: .9rem; border-bottom: 1px solid #eef0f7; }
.wk-price-row[hidden] { display: none; }
.wk-price-row__v { white-space: nowrap; font-weight: 600; }
.wk-ledger-row { display: flex; align-items: center; gap: .9rem; padding: .85rem 1.25rem; border-top: 1px solid #eef0f7; }
.wk-ledger-row__icon { width: 36px; height: 36px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wk-ledger-row__icon.is-in { background: #dcf7ec; color: #0f7a4f; } .wk-ledger-row__icon.is-out { background: #fee4e2; color: #b42318; } .wk-ledger-row__icon.is-refund { background: #e4ecff; color: #3a55c4; }
.wk-ledger-row__body { flex: 1 1 auto; min-width: 0; }
.wk-ledger-row__amt { white-space: nowrap; }
