/* Services-site additions on kfu-theme tokens (--kfu-*). */

.ltr { direction: ltr; unicode-bidi: embed; }

/* Riyal symbol (_Riyal.cshtml); dashboard-ui.css is not loaded here. */
.riyal-symbol {
    width: .895em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.12em;
    margin-inline-start: .18em;
    flex-shrink: 0;
}

/* ---------- department home: figures ---------- */
.svc-figure { font-size: 1.9rem; font-weight: 700; color: var(--kfu-900); line-height: 1.2; }
.svc-figure-sub { font-size: .85rem; color: var(--kfu-muted); }

/* ---------- list pager ---------- */
.svc-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    margin-top: 1.5rem;
    color: var(--kfu-muted);
}

/* ---------- validation messages inside kfu panels ---------- */
.kfu-panel .field-validation-error { display: block; margin-top: .3rem; font-size: .85rem; color: #b42318; }
.kfu-panel .input-validation-error { border-color: #fda29b !important; }
.kfu-panel .form-hint { font-size: .82rem; color: var(--kfu-muted); margin-top: .3rem; }

.btn-busy { pointer-events: none; opacity: .75; }

/* ---------- sign-out form: icon-only; labelled in the collapsed menu ---------- */
.svc-nav-label { display: none; }
@media (max-width: 991px) {
    .kfu-nav-links form,
    .kfu-nav-links form .kfu-btn { width: 100%; }
    .svc-nav-label { display: inline; }
}

@media print { .kfu-nav, .kfu-footer, .no-print { display: none !important; } }

/* Print: logo header on paper only; tables print whole. */
.print-only { display: none; }
.print-head { display: none; align-items: center; gap: 14px; border-bottom: 3px solid #0f7179; padding-bottom: 10px; margin-bottom: 14px; }
.print-head img { height: 58px; }
.print-head-text { flex: 1; }
.print-title { font-size: 1.25rem; font-weight: 700; color: #0f7179; }
.print-sub { font-size: .9rem; color: #444; }
.print-meta { font-size: .75rem; color: #666; text-align: left; }
@media print {
    @page { size: A4; margin: 12mm; }
    .print-only { display: block !important; }
    .print-head { display: flex !important; }
    .table-responsive { overflow: visible !important; }
    .table { font-size: .78rem; }
    .badge { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    a { color: inherit !important; text-decoration: none !important; }
}
/* Print: no hero band, no shadows, flat panels. */
@media print {
    .kfu-page-head { display: none !important; }
    .kfu-page-body { padding: 0 !important; }
    .kfu-panel { box-shadow: none !important; border: 1px solid #ddd !important; break-inside: auto; }
    .kfu-panel-head { padding: .4rem .7rem !important; }
    body { background: #fff !important; }
}

/* ---------- services bar ---------- */
.svc-bar {
    display: flex;
    gap: .6rem;
    overflow-x: auto;
    padding: .55rem;
    margin: -3.4rem 0 1.6rem;          /* rides on the bottom of the green page head */
    background: #fff;
    border: 1px solid var(--kfu-line);
    border-radius: var(--kfu-radius-lg);
    box-shadow: var(--kfu-shadow-lg);
    position: relative;
    z-index: 2;
    scrollbar-width: none;            /* swipe on phones; on wide screens the items share the width */
}
.svc-bar::-webkit-scrollbar { display: none; }
.svc-bar-item {
    flex: 1 1 0;
    min-width: 92px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    padding: .7rem .6rem .6rem;
    border-radius: var(--kfu-radius);
    color: var(--kfu-800);
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: background-color .15s, color .15s, transform .15s;
}
.svc-bar-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--kfu-50);
    color: var(--kfu-600);
    font-size: 1.2rem;
    transition: inherit;
}
.svc-bar-item:hover { background: var(--kfu-50); color: var(--kfu-900); transform: translateY(-2px); }
.svc-bar-item.active { background: linear-gradient(135deg, var(--kfu-700), var(--kfu-600)); color: #fff; border-bottom-color: var(--kfu-gold-500); }
.svc-bar-item.active .svc-bar-icon { background: rgba(255, 255, 255, .18); color: #fff; }
.svc-bar-gold .svc-bar-icon { background: var(--kfu-gold-50); color: var(--kfu-gold-600); }
.svc-bar-gold.active { background: linear-gradient(135deg, var(--kfu-gold-600), var(--kfu-gold-500)); border-bottom-color: var(--kfu-700); }
.svc-bar-admin { color: var(--kfu-muted); }
.svc-bar-admin .svc-bar-icon { background: #f2f4f7; color: #475467; }
@media (max-width: 767.98px) {
    .svc-bar { margin-top: -2.4rem; gap: .35rem; padding: .4rem;
               /* more services to the left: a soft fade says "swipe" */
               -webkit-mask-image: linear-gradient(to left, transparent 0, #000 28px);
               mask-image: linear-gradient(to left, transparent 0, #000 28px); }
    .svc-bar-item { flex: 0 0 auto; min-width: 84px; font-size: .78rem; padding: .55rem .35rem .45rem; }
    .svc-bar-icon { width: 34px; height: 34px; font-size: 1rem; }
}

/* Disabled ghost buttons. */
.kfu-btn.disabled { opacity: .55; pointer-events: none; }

/* Footer: white logo with the slogan. */
.kfu-footer img.kfu-footer-logo { height: 72px; }
