/* ---------- Login Page ---------- */
.qap-login-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
	margin-top: calc(-50vw + 50%);
	margin-bottom: calc(-50vw + 50%);
    padding: 40px 20px;
    background: url('http://q-meda.com/wp-content/uploads/2026/09/admin-dashboard-2.png') no-repeat center center / cover;
}

.qap-login-card {
    background: #fff;
    max-width: 400px;
    width: 100%;
    padding: 36px 32px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
}

.qap-login-header h2 {
    margin: 0 0 4px;
    font-size: 20px;
    color: #14304f;
}
.qap-modal-submit {
    background-color: #1a80f5 !important;
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    cursor: pointer;
}

.qap-modal-submit:hover {
    background-color: #0f6cd9 !important;
}

.qap-login-header p {
    margin: 0 0 24px;
    color: #6b7a8f;
    font-size: 14px;
}

.qap-login-card label {
    display: block;
    margin: 14px 0 6px;
    font-size: 14px;
    color: #14304f;
    font-weight: 600;
}

.qap-login-card input[type="text"],
.qap-login-card input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.qap-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400 !important;
    margin: 14px 0 22px !important;
}

.qap-remember input {
    width: auto;
}

.qap-login-card button {
    width: 100%;
    padding: 13px;
    background: #2f6fed;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
}

.qap-login-card button:hover {
    background: #1e4ed8;
}

.qap-error {
    background: #fdeaea;
    color: #b32424;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 10px;
}

/* ---------- Dashboard ---------- */
.qap-dashboard {
    display: flex;
    min-height: 90vh;
    background: #f4f7fb;
    font-family: -apple-system, Segoe UI, Roboto, sans-serif;

}

.qap-sidebar {
    width: 220px;
    background: #0f1f33;
    color: #fff;
    display: flex;
	margin-left: calc(-50vw + 50%);
	
	margin-bottom: calc(-50vw + 50%);
	
    flex-direction: column;
    padding: 24px 0;
}

.qap-logo {
    font-size: 22px;
    font-weight: 800;
    padding: 0 24px 24px;
    color: #4d8dff;
}

.qap-sidebar nav {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.qap-sidebar nav a {
    padding: 12px 24px;
    color: #b7c2d0;
    text-decoration: none;
    font-size: 14px;
}

.qap-sidebar nav a.active,
.qap-sidebar nav a:hover {
    background: #1c3a5e;
    color: #fff;
    border-left: 3px solid #4d8dff;
}

.qap-logout {
    padding: 12px 24px;
    color: #ff9b9b;
    text-decoration: none;
    font-size: 14px;
    border-top: 1px solid #1c3a5e;
}

.qap-main {
    flex: 1;
    padding: 10px 40px 30px;

	
}

.qap-topbar {
     display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    color: #17263c;
	
}

.qap-topbar h1 {
    margin: 0;
    font-size: 22px;
    color: #14304f;
}

.qap-topbar p {
    margin: 2px 0 0;
    color: #6b7a8f;
    font-size: 14px;
}

.qap-user {
    font-size: 14px;
    color: #14304f;
    font-weight: 600;
}

.qap-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.qap-card {
    border-radius: 12px;
    padding: 22px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.qap-manage-wrap {
    font-family: Arial, sans-serif;
}

.qap-manage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.qap-manage-header h2 {
    margin: 0;
    color: #1e3a8a;
}

.qap-manage-header p {
    margin: 4px 0 0;
    color: #666;
    font-size: 14px;
}

.qap-btn-primary {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.qap-search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.qap-search-bar input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.qap-search-bar button {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
}

table.qap-doctor-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

table.qap-doctor-table th {
    text-align: left;
    background: #f1f5fb;
    padding: 10px;
    font-size: 13px;
    color: #1e3a8a;
}

table.qap-doctor-table td {
    padding: 10px;
    border-top: 1px solid #eee;
    font-size: 14px;
    vertical-align: middle;
}

.qap-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #dbeafe;
    color: #1e3a8a;
    font-weight: bold;
    margin-right: 8px;
    font-size: 12px;
}

.qap-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.qap-badge.active {
    background: #dcfce7;
    color: #166534;
}

.qap-badge.pending {
    background: #ffedd5;
    color: #9a3412;
}

.qap-view-btn {
    background: #2563eb;
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
}

.qap-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.qap-modal-overlay.qap-open {
    display: flex;
}

.qap-modal-box {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
}

.qap-modal-box h3 {
    margin-top: 0;
}

.qap-modal-box label {
    display: block;
    margin-top: 12px;
    margin-bottom: 4px;
    font-size: 14px;
}

.qap-modal-box input[type=email] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
}

.qap-modal-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.qap-modal-cancel {
    background: #eee;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
}

.qap-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 14px;
}

.qap-success {
    background: #dcfce7;
    color: #166534;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 14px;
}
.qap-card span { font-size: 14px; opacity: .9; }
.qap-card strong { font-size: 30px; }
.qap-card small { font-size: 12px; opacity: .85; }

.qap-card.blue   { background: linear-gradient(135deg,#4d8dff,#2f6fed); }
.qap-card.green  { background: linear-gradient(135deg,#3fc98a,#26a06a); }
.qap-card.orange { background: linear-gradient(135deg,#ffb648,#f79a1e); }
.qap-card.purple { background: linear-gradient(135deg,#a78bfa,#8b5cf6); }

.qap-note {
    margin-top: 30px;
    background: #fff;
    padding: 16px 20px;
    border-radius: 8px;
    color: #6b7a8f;
    font-size: 13px;
    border-left: 4px solid #4d8dff;
}
body.qap-portal-page .pt_120,
body.qap-portal-page .sidebar-page-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.qap-manage-wrap { font-family: Arial, sans-serif; }
.qap-manage-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; flex-wrap:wrap; gap:10px; }
.qap-manage-header h2 { margin:0; color:#1e3a8a; }
.qap-manage-header p { margin:4px 0 0; color:#666; font-size:14px; }
.qap-btn-primary { background:#2563eb; color:#fff; border:none; padding:10px 18px; border-radius:6px; cursor:pointer; font-size:14px; }
.qap-search-bar { display:flex; gap:10px; margin-bottom:20px; }
.qap-search-bar input { flex:1; padding:10px; border:1px solid #ddd; border-radius:6px; }
.qap-search-bar button { background:#2563eb; color:#fff; border:none; padding:10px 20px; border-radius:6px; cursor:pointer; }
table.qap-doctor-table { width:100%; border-collapse:collapse; background:#fff; }
table.qap-doctor-table th { text-align:left; background:#f1f5fb; padding:10px; font-size:13px; color:#1e3a8a; }
table.qap-doctor-table td { padding:10px; border-top:1px solid #eee; font-size:14px; vertical-align:middle; }
.qap-avatar { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:50%; background:#dbeafe; color:#1e3a8a; font-weight:bold; margin-right:8px; font-size:12px; }
.qap-badge { padding:4px 10px; border-radius:12px; font-size:12px; }
.qap-badge.active { background:#dcfce7; color:#166534; }
.qap-badge.pending { background:#ffedd5; color:#9a3412; }
.qap-view-btn { background:#2563eb; color:#fff; padding:6px 14px; border-radius:6px; text-decoration:none; font-size:13px; }
.qap-modal-overlay { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.5); align-items:center; justify-content:center; z-index:9999; }
.qap-modal-overlay.qap-open { display:flex; }
.qap-modal-box { background:#fff; padding:30px; border-radius:8px; width:100%; max-width:400px; }
.qap-modal-box h3 { margin-top:0; }
.qap-modal-box label { display:block; margin-top:12px; margin-bottom:4px; font-size:14px; }
.qap-modal-box input[type=email] { width:100%; padding:10px; border:1px solid #ddd; border-radius:6px; box-sizing:border-box; }
.qap-modal-actions { margin-top:20px; display:flex; justify-content:flex-end; gap:10px; }
.qap-modal-cancel { background:#eee; border:none; padding:10px 16px; border-radius:6px; cursor:pointer; }
.qap-error { background:#fee2e2; color:#991b1b; padding:10px; border-radius:6px; margin-bottom:14px; }
.qap-success { background:#dcfce7; color:#166534; padding:10px; border-radius:6px; margin-bottom:14px; }

/* ==========================================================
   DOCTOR SETUP PAGE
   ========================================================== */

.qap-doctor-setup-wrap {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

.qap-doctor-setup-card {
    width: 100%;
    max-width: 600px;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

.qap-doctor-setup-card h2 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.3;
    color: #1f2937;
}

.qap-doctor-setup-card > p {
    margin: 0 0 30px;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
}

.qap-doctor-setup-card form {
    display: flex;
    flex-direction: column;
}

.qap-doctor-setup-card label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.qap-doctor-setup-card input[type="text"],
.qap-doctor-setup-card input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 20px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    background: #ffffff;
    color: #1f2937;
    font-size: 15px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.qap-doctor-setup-card input[type="text"]:focus,
.qap-doctor-setup-card input[type="password"]:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.qap-doctor-setup-card button[type="submit"] {
    width: 100%;
    padding: 13px 20px;
    margin-top: 5px;
    border: none;
    border-radius: 7px;
    background: #2563eb;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.qap-doctor-setup-card button[type="submit"]:hover {
    background: #1d4ed8;
}

.qap-doctor-setup-card button[type="submit"]:active {
    transform: translateY(1px);
}


/* Success message */

.qap-doctor-setup-card .qap-success {
    margin-bottom: 20px;
    padding: 12px 15px;
    border-radius: 7px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    font-size: 14px;
}


/* Error message */

.qap-doctor-setup-card .qap-error {
    margin-bottom: 20px;
    padding: 12px 15px;
    border-radius: 7px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 14px;
}


/* Mobile */

@media (max-width: 600px) {

    .qap-doctor-setup-wrap {
        padding: 25px 15px;
        min-height: auto;
    }

    .qap-doctor-setup-card {
        padding: 25px 20px;
    }

    .qap-doctor-setup-card h2 {
        font-size: 23px;
    }

}

/* ==========================================================
   APPRAISER INVITE PAGE
   ========================================================== */

.qap-appraiser-page,
.qap-manage-appraisers,
.qap-invite-wrap {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

.qap-invite-wrap h2 {
    margin: 0 0 8px;
    color: #1e3a8a;
    font-size: 28px;
}

.qap-invite-wrap h3 {
    margin: 30px 0 15px;
    color: #1e3a8a;
    font-size: 20px;
}

.qap-invite-wrap form {
    max-width: 600px;
    margin: 20px 0 30px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.qap-invite-wrap label {
    display: block;
    margin-bottom: 7px;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

.qap-invite-wrap input[type="email"],
.qap-invite-wrap input[type="text"] {
    width: 100%;
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    background: #ffffff;
    color: #1f2937;
    font-size: 15px;
    box-sizing: border-box;
}

.qap-invite-wrap input:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.qap-invite-wrap button,
.qap-appraiser-invite-button {
    padding: 12px 22px;
    border: none;
    border-radius: 7px;
    background: #2563eb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.qap-invite-wrap button:hover,
.qap-appraiser-invite-button:hover {
    background: #1d4ed8;
}

/* Appraiser list table */

.qap-appraiser-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.qap-appraiser-table th {
    padding: 14px;
    background: #f1f5fb;
    color: #1e3a8a;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
}

.qap-appraiser-table td {
    padding: 14px;
    border-top: 1px solid #e5e7eb;
    color: #374151;
    font-size: 14px;
}

.qap-appraiser-table tr:hover {
    background: #f8fafc;
}

.qap-appraiser-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    background: #ffedd5;
    color: #9a3412;
    font-size: 12px;
    font-weight: 600;
}

.qap-appraiser-status.active {
    background: #dcfce7;
    color: #166534;
}

/* Success and error messages */

.qap-invite-wrap .qap-success {
    max-width: 600px;
    margin: 15px 0;
    padding: 12px 15px;
    border: 1px solid #a7f3d0;
    border-radius: 7px;
    background: #ecfdf5;
    color: #047857;
}

.qap-invite-wrap .qap-error {
    max-width: 600px;
    margin: 15px 0;
    padding: 12px 15px;
    border: 1px solid #fecaca;
    border-radius: 7px;
    background: #fef2f2;
    color: #b91c1c;
}

/* Mobile layout */

@media (max-width: 700px) {
    .qap-appraiser-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .qap-invite-wrap h2 {
        font-size: 23px;
    }

    .qap-invite-wrap form {
        padding: 18px;
    }
}
/* ==================================================================
 * ASSIGN APPRAISER TO DOCTOR  (v2 - blue card layout)
 * Page: /assign-doctors/
 * Everything is scoped to .qap-as, so other pages are not affected.
 *
 * Main blue:  #2563eb   Hover blue: #1d4ed8   Dark blue: #1e3a8a
 * Light blue: #eff6ff   Border blue: #dbeafe
 * To match a different brand blue, find-and-replace those hex codes.
 * ================================================================== */

/* ---------- base ---------- */
.qap-as {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 16px 48px;
    color: #0f172a;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
}

.qap-as *,
.qap-as *::before,
.qap-as *::after {
    box-sizing: border-box;
}

.qap-as [hidden] {
    display: none !important;
}

.qap-as h2,
.qap-as h3 {
    margin: 0;
    padding: 0;
    font-family: inherit;
    text-transform: none;
    letter-spacing: normal;
    color: inherit;
}

.qap-as p {
    margin: 0;
}

.qap-as svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.qap-as small {
    display: block;
}

.qap-as .qap-error,
.qap-as .qap-success {
    margin-bottom: 18px;
}

/* ---------- page header ---------- */
.qap-as-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 22px;
}

.qap-as-head-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.qap-as-head-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    color: #2563eb;
}

.qap-as-head-icon svg {
    width: 24px;
    height: 24px;
}

.qap-as-head h2 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

.qap-as-head p {
    margin-top: 2px;
    color: #64748b;
}

.qap-as-crumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
}

.qap-as-crumbs a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
}

.qap-as-crumbs a:hover {
    text-decoration: underline;
}

.qap-as-crumbs svg {
    width: 14px;
    height: 14px;
}

/* ---------- cards + layout ---------- */
.qap-as-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    margin-bottom: 22px;
}

.qap-as-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.qap-as-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 22px;
    border-bottom: 1px solid #eef2f7;
    border-radius: 14px 14px 0 0;
}

.qap-as-card-head svg {
    width: 20px;
    height: 20px;
    color: #2563eb;
}

.qap-as-card-head h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1e3a8a;
}

.qap-as-card-head--blue {
    background: #eff6ff;
    border-bottom-color: #dbeafe;
}

.qap-as-card-body {
    padding: 22px;
}

.qap-as-empty-note {
    color: #64748b;
}

/* ---------- pickers ---------- */
.qap-as-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.qap-as-field label {
    display: block;
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.qap-as-req {
    color: #dc2626;
}

.qap-as-combo {
    position: relative;
}

.qap-as-search {
    position: relative;
}

.qap-as-search > svg {
    position: absolute;
    top: 50%;
    right: 14px;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
}

.qap-as .qap-as-search input[type="text"] {
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 40px 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: none;
    font-family: inherit;
    font-size: 14px;
    color: #0f172a;
}

.qap-as .qap-as-search input[type="text"]::placeholder {
    color: #94a3b8;
}

.qap-as .qap-as-search input[type="text"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* search box with the icon on the left (table search) */
.qap-as-search--left > svg {
    left: 14px;
    right: auto;
}

.qap-as .qap-as-search--left input[type="text"] {
    padding: 0 14px 0 40px;
}

.qap-as-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 40;
    max-height: 280px;
    overflow-y: auto;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.qap-as-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 9px 10px;
    list-style: none;
    border-radius: 8px;
    cursor: pointer;
}

.qap-as-list li:hover {
    background: #eff6ff;
}

.qap-as-list li.qap-as-noresult {
    justify-content: center;
    color: #64748b;
    cursor: default;
}

.qap-as-list li.qap-as-noresult:hover {
    background: transparent;
}

.qap-as-li-text {
    display: block;
    min-width: 0;
}

.qap-as-li-text strong,
.qap-as-person strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.qap-as-li-text small,
.qap-as-person small {
    font-size: 12.5px;
    color: #64748b;
}

.qap-as-tag {
    margin-left: auto;
    padding: 2px 9px;
    border-radius: 999px;
    background: #fef3c7;
    color: #b45309;
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
    white-space: nowrap;
}

.qap-as-tag--info {
    background: #dbeafe;
    color: #1d4ed8;
}

.qap-as-avatar {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
}

.qap-as-avatar--blue {
    background: #dbeafe;
    color: #2563eb;
}

.qap-as-avatar--green {
    background: #dcfce7;
    color: #16a34a;
}

.qap-as-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 12px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 10px;
}

.qap-as-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    padding: 14px 16px;
    background: #eff6ff;
    border-radius: 10px;
    font-size: 13.5px;
    color: #334155;
}

.qap-as-info svg {
    width: 20px;
    height: 20px;
    margin-top: 1px;
    color: #2563eb;
}

.qap-as-inline-error {
    margin-top: 16px;
    padding: 10px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-size: 13.5px;
    color: #b91c1c;
}

.qap-as-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

/* ---------- buttons ---------- */
.qap-as .qap-as-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: normal;
    text-transform: none;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.qap-as .qap-as-btn svg {
    width: 16px;
    height: 16px;
}

.qap-as .qap-as-btn-primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.qap-as .qap-as-btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
}

.qap-as .qap-as-btn-outline {
    padding: 8px 14px;
    background: #ffffff;
    border-color: #cbd5e1;
    color: #1e293b;
    font-weight: 500;
}

.qap-as .qap-as-btn-outline:hover {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1d4ed8;
}

.qap-as .qap-as-btn-ghost {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #334155;
}

.qap-as .qap-as-btn-ghost:hover {
    background: #f1f5f9;
}

/* ---------- overview stats ---------- */
.qap-as-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.qap-as-stat {
    display: flex;
    align-items: center;
    gap: 16px;
}

.qap-as-stat-ico {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
}

.qap-as-stat-ico svg {
    width: 24px;
    height: 24px;
}

.qap-as-stat-ico--blue {
    background: #dbeafe;
    color: #2563eb;
}

.qap-as-stat-ico--green {
    background: #dcfce7;
    color: #16a34a;
}

.qap-as-stat-ico--purple {
    background: #ede9fe;
    color: #7c3aed;
}

.qap-as-stat-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.qap-as-stat strong {
    display: block;
    font-size: 28px;
    line-height: 1.15;
    color: #0f172a;
}

.qap-as-stat small {
    font-size: 12.5px;
    color: #64748b;
}

/* ---------- assignments table ---------- */
.qap-as-table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 18px 22px;
}

.qap-as-table-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qap-as-table-title h3 {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}

.qap-as-square {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #1e3a8a;
    color: #ffffff;
}

.qap-as-search--table {
    width: 320px;
    max-width: 100%;
}

.qap-as-tablewrap {
    overflow-x: auto;
    border-top: 1px solid #eef2f7;
    border-radius: 0 0 14px 14px;
}

.qap-as .qap-as-table {
    width: 100%;
    min-width: 760px;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    background: #ffffff;
}

.qap-as .qap-as-table th {
    padding: 13px 18px;
    border: 0;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
}

.qap-as .qap-as-table td {
    padding: 14px 18px;
    border: 0;
    border-bottom: 1px solid #eef2f7;
    background: transparent;
    text-align: left;
    vertical-align: middle;
    color: #0f172a;
}

.qap-as .qap-as-table tbody tr:last-child td {
    border-bottom: 0;
}

.qap-as .qap-as-table tbody tr:hover td {
    background: #f8fbff;
}

.qap-as-person {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qap-as-muted {
    color: #94a3b8;
}

.qap-as .qap-as-table td.qap-as-empty-row {
    padding: 28px 18px;
    text-align: center;
    color: #64748b;
}

.qap-as-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.qap-as-pill--active {
    background: #dcfce7;
    color: #15803d;
}

.qap-as-pill--none {
    background: #fef3c7;
    color: #b45309;
}

/* ---------- assign / reassign popup ---------- */
.qap-as-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.55);
}

.qap-as-modal-box {
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: 28px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
}

.qap-as-modal-box h3 {
    margin-bottom: 6px;
    font-size: 19px;
    font-weight: 700;
    color: #1e3a8a;
}

.qap-as-modal-sub {
    margin-bottom: 18px;
    color: #64748b;
}

.qap-as-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
}

.qap-as-modal-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.qap-as-modal label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1e293b;
}

.qap-as .qap-as-modal select {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    font-family: inherit;
    font-size: 14px;
    color: #0f172a;
}

.qap-as .qap-as-modal select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.qap-as-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

/* Invitation form */
.qap-modal-content form {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.qap-modal-content input[type="email"] {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid #cbd8e8;
    border-radius: 8px;
    font-size: 15px;
}

/* Send Invitation Link button */
.qap-modal-submit {
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    background: #1a80f5;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}

.qap-modal-submit:hover {
    background: #0f6cd9;
}

/* Success message */
.qap-success {
    margin: 15px 0;
    padding: 12px 16px;
    border-radius: 8px;
    background: #dff6e5;
    color: #176b35;
    font-weight: 600;
}

@media (max-width: 600px) {
    .qap-modal-content form {
        flex-direction: column;
    }
}
.qap-assign-page table,
.qap-assign-page table th,
.qap-assign-page table td,
.qap-assign-page table td *,
.qap-as table,
.qap-as table th,
.qap-as table td,
.qap-as table td * {
    color: #000000 !important;
}
	
.qap-doctor-table th,
.qap-doctor-table td,
.qap-doctor-table td span {
    color: #000000 !important;
}
	
.qap-user-login-form {
    width: min(420px, 100%);
    margin: 50px auto;
    padding: 32px;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.qap-user-login-form p {
    margin: 0 0 18px;
}

.qap-user-login-form label {
    display: block;
    margin-bottom: 7px;
    color: #000000;
    font-weight: 600;
}

.qap-user-login-form input[type="text"],
.qap-user-login-form input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #000000;
    font-size: 15px;
}

.qap-user-login-form input:focus {
    outline: none;
    border-color: #1a80f5;
    box-shadow: 0 0 0 3px rgba(26, 128, 245, 0.15);
}

.qap-user-login-form input[type="checkbox"] {
    width: auto;
    margin-right: 6px;
}

.qap-user-login-form button {
    width: 100%;
    padding: 13px 20px;
    border: none;
    border-radius: 8px;
    background: #1a80f5;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.qap-user-login-form button:hover {
    background: #0f6cd9;
}

.qap-error {
    width: min(420px, 100%);
    margin: 25px auto;
    padding: 12px 16px;
    box-sizing: border-box;
    border-radius: 8px;
    background: #fee2e2;
    color: #991b1b;
    font-weight: 600;
}
.qap-login-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(4, 25, 58, 0.72);
}

.qap-login-modal.is-open {
    display: flex;
}

.qap-login-modal-box {
    position: relative;
    width: min(460px, 100%);
    padding: 32px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.qap-login-close {
    position: absolute;
    top: 10px;
    right: 16px;
    border: none;
    background: none;
    color: #000000;
    font-size: 28px;
    cursor: pointer;
}
	
/* Dashboard layout */
.qap-doc-dashboard {
    display: grid;
    grid-template-columns: 220px 1fr;
    max-width: 1200px;
    min-height: 650px;
    margin: 20px auto;
    background: #f5f8fc;
    color: #17365c;
    font: 15px/1.5 Arial, sans-serif;
    border-radius: 12px;
    overflow: hidden;
}

.qap-doc-dashboard * {
    box-sizing: border-box;
}

.qap-doc-sidebar {
    padding: 22px 14px;
    background: #07366b;
    color: #fff;
}

.qap-doc-brand {
    padding: 8px 12px 22px;
    font-size: 20px;
    font-weight: bold;
}

.qap-doc-sidebar a {
    display: block;
    margin: 4px 0;
    padding: 12px;
    border-radius: 7px;
    color: #eef6ff;
    text-decoration: none;
}

.qap-doc-sidebar a:hover,
.qap-doc-sidebar a.active {
    background: #1377d4;
}

.qap-doc-main {
    min-width: 0;
    padding: 25px;
}

.qap-doc-hero {
    min-height: 165px;
    padding: 28px;
    border-radius: 10px;
    background: linear-gradient(110deg, #d9edff, #eff8ff 65%, #c4e3f5);
}

.qap-doc-hero p {
    margin: 0 0 4px;
}

.qap-doc-hero h1 {
    margin: 0;
    color: #092f5b;
    font-size: 32px;
}

.qap-doc-hero .tagline {
    margin-top: 10px;
    font-size: 17px;
}

.qap-doc-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 20px 0;
}

.qap-doc-actions a {
    display: flex;
    min-height: 115px;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border-radius: 9px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
}

.qap-doc-actions a:nth-child(1) {
    background: #e2f2ff;
    color: #0967c1;
}

.qap-doc-actions a:nth-child(2) {
    background: #e8f7ed;
    color: #178044;
}

.qap-doc-actions a:nth-child(3) {
    background: #f0eaff;
    color: #6238ad;
}

.qap-doc-actions a:nth-child(4) {
    background: #e3f8fb;
    color: #087d91;
}

.qap-doc-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.qap-doc-card {
    padding: 16px;
    border: 1px solid #e2eaf3;
    border-radius: 9px;
    background: #fff;
}

.qap-doc-card span {
    display: block;
    color: #60758d;
    font-size: 13px;
}

.qap-doc-card strong {
    color: #103d6c;
    font-size: 23px;
}

@media (max-width: 750px) {
    .qap-doc-dashboard {
        grid-template-columns: 1fr;
    }

    .qap-doc-sidebar nav {
        display: flex;
        overflow-x: auto;
    }

    .qap-doc-sidebar a {
        white-space: nowrap;
    }

    .qap-doc-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .qap-doc-main {
        padding: 14px;
    }

    .qap-doc-stats {
        grid-template-columns: 1fr;
    }

    .qap-doc-hero h1 {
        font-size: 25px;
    }
}
.qap-doc-dashboard {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
	margin-top: calc(-50vw + 50%);
    width: 100vw;
    max-width: 100vw;
    min-height: 100vh;
    margin: 0;
    border-radius: 0;
}
.qap-doctor-portal {
    display: flex;
    min-height: 900px;
    background: #ffffff;
    color: #123b91;
    font-family: Arial, sans-serif;
}

.qap-doctor-sidebar {
    width: 255px;
    flex: 0 0 255px;
    background: linear-gradient(180deg, #064d99, #003b78);
    color: #ffffff;
    padding: 28px 16px;
}

.qap-sidebar-brand {
    font-size: 25px;
    font-weight: 800;
    padding: 0 16px 42px;
}

.qap-doctor-sidebar nav {
    display: grid;
    gap: 10px;
}

.qap-doctor-sidebar a {
    color: #ffffff;
    text-decoration: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 18px;
    display: flex;
    gap: 17px;
    align-items: center;
}

.qap-doctor-sidebar a.is-active,
.qap-doctor-sidebar a:hover {
    background: #0875ed;
}

.qap-doctor-sidebar a span {
    font-size: 25px;
    width: 28px;
    text-align: center;
}

.qap-doctor-content {
    width: 100%;
    max-width: 1100px;
    padding: 28px 22px;
    margin: 0 auto;
}

.qap-welcome-banner {
    min-height: 225px;
    border-radius: 9px;
    padding: 30px;
    background-color: #dff4ff;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-position: center right;
    background-repeat: no-repeat;
    background-size: 52% auto;
}

.qap-welcome-banner h1 {
    font-size: 39px;
    line-height: 1.1;
    margin: 5px 0 18px;
    color: #102a83;
}

.qap-welcome-banner p {
    font-size: 23px;
    line-height: 1.35;
    margin: 0;
    color: #0864c5;
}

.qap-welcome-banner > div {
    position: relative;
    z-index: 1;
}

.qap-action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.qap-action-card {
    min-height: 145px;
    border: 1px solid;
    border-radius: 9px;
    padding: 18px 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qap-action-card strong {
    font-size: 19px;
    line-height: 1.3;
}

.qap-action-card b {
    font-size: 28px;
    margin-top: auto;
}

.qap-action-icon {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    background: #0875ed;
    color: #ffffff;
    font-size: 27px;
}

.qap-action-card.blue {
    background: #e7f5ff;
    border-color: #9cd6ff;
}

.qap-action-card.green {
    background: #e7fff0;
    border-color: #a8efc4;
    color: #00892a;
}

.qap-action-card.green .qap-action-icon {
    background: #15a63a;
}

.qap-action-card.purple {
    background: #f3eaff;
    border-color: #dac2ff;
    color: #7025e9;
}

.qap-action-card.purple .qap-action-icon {
    background: #7925e7;
}

.qap-action-card.cyan {
    background: #e5fbff;
    border-color: #9ce8f2;
}

.qap-panel {
    border: 2px solid #d6ecff;
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 20px;
}

.qap-panel h2 {
    font-size: 27px;
    margin: 0 0 20px;
    color: #102a83;
}

.qap-progress-layout {
    display: flex;
    align-items: center;
    gap: 55px;
}

.qap-progress-ring {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    display: grid;
    place-content: center;
    text-align: center;
    background:
        radial-gradient(
            white 58%,
            transparent 59%
        ),
        conic-gradient(
            #0875ed var(--qap-progress),
            #dce8f3 0
        );
}

.qap-progress-ring strong {
    font-size: 30px;
}

.qap-progress-ring span {
    font-size: 13px;
}

.qap-progress-list {
    flex: 1;
}

.qap-progress-list > div {
    display: grid;
    grid-template-columns: 35px 1fr auto;
    gap: 10px;
    align-items: center;
    border-bottom: 1px solid #deebf8;
    padding: 11px 0;
    font-size: 17px;
}

.qap-progress-list i {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-style: normal;
}

.qap-progress-list .done {
    background: #0b9d38;
    color: #ffffff;
}

.qap-progress-list .current {
    background: #0875ed;
    color: #ffffff;
}

.qap-progress-list .pending {
    border: 2px solid #8bb8de;
}

.qap-progress-list b {
    color: #0b9d38;
    font-size: 15px;
}

.qap-progress-list .in-progress,
.qap-progress-list .pending-text {
    color: #0875ed;
}

.qap-view-link {
    display: block;
    text-align: right;
    color: #0875ed;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
}

.qap-activity-panel {
    max-width: 540px;
}

.qap-activity-panel h2 {
    font-size: 21px;
}

.qap-activity {
    display: flex;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #deebf8;
    align-items: center;
    color: #123b91;
}

.qap-activity i {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-style: normal;
    font-size: 21px;
}

.qap-activity i.green {
    background: #0b9d38;
}

.qap-activity i.purple {
    background: #7925e7;
}

.qap-activity i.blue {
    background: #0875ed;
}

.qap-activity small {
    display: block;
    color: #3981cf;
    margin-top: 4px;
}

.qap-care-banner {
    background: #dff5ff;
    border: 1px solid #a5ddff;
    border-radius: 9px;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.qap-care-banner > span {
    font-size: 35px;
    background: #0da440;
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 10px;
}

.qap-care-banner strong {
    display: block;
    font-size: 19px;
}

.qap-care-banner small {
    display: block;
    margin-top: 5px;
}

.qap-care-banner > b {
    margin-left: auto;
    font-size: 30px;
    color: #0875ed;
}

@media (max-width: 800px) {

    .qap-doctor-portal {
        display: block;
    }

    .qap-doctor-sidebar {
        width: auto;
        padding: 16px;
    }

    .qap-sidebar-brand {
        padding: 0 0 14px;
    }

    .qap-doctor-sidebar nav {
        display: flex;
        overflow: auto;
    }

    .qap-doctor-sidebar a {
        white-space: nowrap;
    }

    .qap-action-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .qap-progress-layout {
        display: block;
    }

    .qap-progress-ring {
        margin: 0 auto 22px;
    }

    .qap-progress-list > div {
        grid-template-columns: 30px 1fr;
    }

    .qap-progress-list b {
        grid-column: 2;
    }

    .qap-welcome-banner {
        background-size: cover;
    }

    .qap-welcome-banner h1 {
        font-size: 30px;
    }

    .qap-welcome-banner p {
        font-size: 18px;
    }
}

/* Hide the website header and footer on Q-Meda portal pages */
body.qap-portal-page header,
body.qap-portal-page footer,
body.qap-portal-page #masthead,
body.qap-portal-page #colophon,

body.qap-portal-page .site-footer,
body.qap-portal-page .main-header,
body.qap-portal-page .main-footer,
body.qap-portal-page .elementor-location-header,
body.qap-portal-page .elementor-location-footer {
    display: none !important;
}

/* Remove blank space left by the hidden header */
body.qap-portal-page main,
body.qap-portal-page .site-content,
body.qap-portal-page .content-area,
body.qap-portal-page .page-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* Doctor dashboard: full-width, sidebar flush to the left edge */
body.qap-portal-page {
    overflow-x: hidden;           /* stops the 100vw scrollbar jump */
}

.qap-doctor-portal {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    left: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    min-height: 100vh;
}

.qap-doctor-sidebar {
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;                /* sidebar fills the full screen height */
    overflow-y: auto;
}

/* Remove the theme's own padding around the page content */
body.qap-portal-page .auto-container,
body.qap-portal-page .page-content,
body.qap-portal-page .entry-content,
body.qap-portal-page .site-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: none !important;
}
/* Doctor profile page */
.qap-profile-page {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px;
    box-sizing: border-box;
    color: #17365c;
}

.qap-profile-page h1 {
    margin: 20px 0 6px;
    color: #102a83;
    font-size: 34px;
}

.qap-profile-page > p {
    margin: 0 0 24px;
    color: #64748b;
}

.qap-profile-back {
    display: inline-block;
    margin-bottom: 8px;
    color: #0875ed;
    text-decoration: none;
    font-weight: 600;
}

.qap-profile-back:hover {
    text-decoration: underline;
}

.qap-profile-card {
    width: 100%;
    max-width: 760px;
    margin: 20px 0;
    padding: 26px;
    box-sizing: border-box;
    border: 1px solid #d6e5f3;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.qap-profile-card h2 {
    margin: 0 0 8px;
    color: #102a83;
    font-size: 22px;
}

.qap-profile-card > p {
    margin: 0 0 18px;
    color: #64748b;
}

/* Force each label and input onto its own row */
.qap-profile-card form {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    margin: 0 !important;
}

.qap-profile-card label {
    display: block !important;
    margin: 14px 0 6px !important;
    color: #334155 !important;
    font-size: 14px;
    font-weight: 600;
}

.qap-profile-card input[type="text"],
.qap-profile-card input[type="email"],
.qap-profile-card input[type="password"] {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 46px;
    padding: 11px 13px !important;
    box-sizing: border-box !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #0f172a !important;
    font-size: 15px !important;
}

.qap-profile-card input:focus {
    outline: none !important;
    border-color: #0875ed !important;
    box-shadow: 0 0 0 3px rgba(8, 117, 237, 0.15) !important;
}

.qap-profile-card button {
    align-self: flex-start;
    margin-top: 20px !important;
    padding: 12px 20px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #0875ed !important;
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.qap-profile-card button:hover {
    background: #0663c9 !important;
}

@media (max-width: 700px) {
    .qap-profile-page {
        padding: 20px 16px;
    }

    .qap-profile-page h1 {
        font-size: 28px;
    }

    .qap-profile-card {
        padding: 20px;
    }
}
.qap-profile-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 20px;
    padding: 10px 16px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8 !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.qap-profile-back:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e40af !important;
}

.qap-profile-back:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.3);
    outline-offset: 2px;
}
/* Keep doctor sidebar links compact and style the selected page */
body.qap-portal-page .qap-doctor-sidebar nav a {
    display: flex !important;
    align-items: center !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 14px 16px !important;
    background: transparent !important;
    color: #ffffff !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
}

body.qap-portal-page .qap-doctor-sidebar nav a.is-active,
body.qap-portal-page .qap-doctor-sidebar nav a.is-active:hover {
    background: #0875ed !important;
    color: #ffffff !important;
    border-radius: 8px !important;
}

body.qap-portal-page .qap-doctor-sidebar nav a:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
}
body.qap-portal-page .qap-doctor-sidebar nav a.is-active,
body.qap-portal-page .qap-doctor-sidebar nav a.is-active:hover {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 14px 16px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #0875ed !important;
    color: #fff !important;
    box-sizing: border-box !important;
}
/* ==========================================================
   MAKE PAYMENT PAGE
   ========================================================== */

/* Reset: WordPress themes style h1/h2/p/dl/ol globally, which would
   fight our layout. Undo that only inside this page. */
.qap-pay-page h1,
.qap-pay-page h2,
.qap-pay-page h3 {
    margin: 0;
    text-transform: none;
    letter-spacing: normal;
    font-family: inherit;
}
.qap-pay-page p,
.qap-pay-page dl,
.qap-pay-page dd { margin: 0; }
.qap-pay-page ol { margin: 0; padding: 0; list-style: none; }

/* Page header: icon on the left, title and intro on the right */
.qap-pay-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}
.qap-pay-head-icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #1a6fe0;
    color: #fff;
}
.qap-pay-head h1 { font-size: 28px; color: #0f2a5c; }
.qap-pay-head p  { margin-top: 4px; max-width: 640px; color: #5b6b82; line-height: 1.5; }

/* Two columns: wide on the left, narrow on the right.
   minmax(0, ...) stops long text from stretching a column. */
.qap-pay-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}
.qap-pay-side {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* White rounded card used by every block */
.qap-pay-card {
    padding: 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.qap-pay-card h2 { margin-bottom: 18px; font-size: 20px; color: #0f2a5c; }
.qap-pay-card h3 { margin: 26px 0 12px; font-size: 17px; color: #0f2a5c; }

/* Fee box: pale blue panel with the big amount */
.qap-pay-fee {
    padding: 24px;
    background: #eaf3ff;
    border-radius: 12px;
}
.qap-pay-fee-label { display: block; font-size: 14px; color: #334155; }
.qap-pay-fee strong {
    display: block;
    margin: 4px 0 6px;
    font-size: 40px;
    line-height: 1.1;
    color: #1a6fe0;
}
.qap-pay-fee small { color: #5b6b82; }

/* Bank details: a label column and a value column per row */
.qap-bank-list {
    padding: 8px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}
.qap-bank-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eef2f7;
}
.qap-bank-row:last-child { border-bottom: 0; }
.qap-bank-row dt { color: #5b6b82; }
.qap-bank-row dd { font-weight: 600; color: #0f2a5c; }
.qap-bank-row dd small {
    display: block;
    margin-top: 2px;
    font-weight: 400;
    color: #64748b;
}

/* Blue information strip with an icon */
.qap-pay-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 18px;
    padding: 14px 16px;
    background: #eaf3ff;
    border-radius: 10px;
    color: #1a6fe0;
}
.qap-pay-note svg { flex: 0 0 22px; margin-top: 2px; }
.qap-pay-note p   { color: #334155; font-size: 14px; line-height: 1.5; }

/* Progress steps (right column) - no circles */
.qap-pay-page ol.qap-steps {
    margin: 0;
    padding: 0;
    list-style: none;            /* removes the browser's "1." "2." numbers */
}

.qap-pay-page ol.qap-steps li.qap-step {
    display: block;
    position: relative;
    margin: 0 0 8px;
    padding: 12px 14px 12px 16px;
    list-style: none;
    border-left: 4px solid #d5deea;      /* grey bar = not reached yet */
    border-radius: 0 8px 8px 0;
}

.qap-pay-page ol.qap-steps li.qap-step:last-child {
    margin-bottom: 0;
}

.qap-pay-page .qap-step strong {
    display: block;
    color: #0f2a5c;
    font-size: 15px;
}

.qap-pay-page .qap-step p {
    margin: 2px 0 0;
    font-size: 13px;
    color: #64748b;
}

/* Completed step: green bar */
.qap-pay-page ol.qap-steps li.qap-step.is-done {
    border-left-color: #16a34a;
}

/* Current step: blue bar, pale blue background, blue title */
.qap-pay-page ol.qap-steps li.qap-step.is-current {
    border-left-color: #1a6fe0;
    background: #eff6ff;
}
.qap-pay-page .qap-step.is-current strong {
    color: #1a6fe0;
}

/* ==========================================================
   UPLOAD PAYMENT RECEIPT CARD
   ========================================================== */

.qap-rc-card h2 { margin-bottom: 14px; }

.qap-rc-help {
    margin: 0 0 16px;
    color: #5b6b82;
    font-size: 14px;
    line-height: 1.5;
}

/* Already-uploaded receipt row */
.qap-rc-current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}
.qap-rc-current strong {
    display: block;
    color: #0f2a5c;
    font-size: 14px;
    word-break: break-word;
}
.qap-rc-current small { color: #64748b; font-size: 12.5px; }
.qap-rc-current a { color: #1a6fe0; font-weight: 600; }

/* Status pills */
.qap-rc-pill {
    flex: 0 0 auto;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.qap-rc-pill--pending  { background: #fef3c7; color: #b45309; }
.qap-rc-pill--verified { background: #dcfce7; color: #15803d; }
.qap-rc-pill--rejected { background: #fee2e2; color: #b91c1c; }

/* Drag-and-drop box */
.qap-rc-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 28px 16px;
    text-align: center;
    background: #f8fbff;
    border: 2px dashed #a9c7f0;
    border-radius: 12px;
    color: #1a6fe0;
    transition: background 0.15s, border-color 0.15s;
}
.qap-rc-drop.is-over {
    background: #eaf3ff;
    border-color: #1a6fe0;
}
.qap-rc-drop-text {
    margin: 4px 0 0;
    color: #0f2a5c;
    font-weight: 600;
    font-size: 14px;
}
.qap-rc-or { color: #64748b; font-size: 13px; }

/* The label is styled as a button; the real input is hidden but still
   keyboard-accessible (it is not display:none). */
.qap-rc-choose {
    display: inline-block;
    margin: 4px 0 0;
    padding: 11px 26px;
    background: #1a6fe0;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.qap-rc-choose:hover { background: #1558b8; }

.qap-rc-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}
.qap-rc-input:focus-visible + .qap-rc-filename,
.qap-rc-drop:focus-within .qap-rc-choose {
    outline: 3px solid rgba(26, 111, 224, 0.35);
    outline-offset: 2px;
}

.qap-rc-filename {
    margin: 8px 0 0;
    color: #15803d;
    font-size: 13.5px;
    font-weight: 600;
    word-break: break-word;
}

.qap-rc-formats {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 12.5px;
}
.qap-rc-clienterror {
    margin: 8px 0 0;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 600;
}

/* Submit button: greyed out until a valid file is chosen */
.qap-pay-page button.qap-rc-submit {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 13px 20px;
    border: 0;
    border-radius: 8px;
    background: #1a6fe0;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.qap-pay-page button.qap-rc-submit:hover:not(:disabled) { background: #1558b8; }
.qap-pay-page button.qap-rc-submit:disabled {
    background: #c7d6ea;
    color: #fff;
    cursor: not-allowed;
}

/* Success / error banner above the page grid */
.qap-pay-page .qap-success,
.qap-pay-page .qap-error {
    margin: 0 0 20px;
    width: auto;
}

/* Tablet and phone: stack the columns, shrink the label column */
@media (max-width: 900px) {
    .qap-pay-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .qap-bank-row { grid-template-columns: 1fr; gap: 2px; }
    .qap-pay-head h1 { font-size: 23px; }
    .qap-pay-fee strong { font-size: 32px; }
}