/* =======================================================
   PhotoFinish Identity CSS | Version 1.0
   Created by: Hamza & Reem ❤️
   Description: Official identity for PhotoFinish Portal
========================================================= */

/* ==== 1. الخطوط ==== */
@font-face {
    font-family: 'Tajawal';
    src: url('fonts/Tajawal-Regular.woff') format('woff');
    font-display: swap;
}
@font-face {
    font-family: 'Droid';
    src: url('fonts/DroidKufi-Regular.woff');
    font-display: swap;
}
@font-face {
    font-family: 'Dax';
    src: url('fonts/DaxRegular.woff');
    font-display: swap;
}
@font-face {
    font-family: 'Ge';
    src: url('fonts/GESSTwoMedium.woff');
    font-display: swap;
}
@font-face {
    font-family: 'sa';
    src: url('fonts/TheSansArab-Light.woff');
    font-display: swap;
}

/* ==== 2. المتغيرات العامة ==== */
body.identity-portal {
    --primary-color: #5C2D91;
    --secondary-color: #4CD7D0;
    --text-color: #2E2E2E;
    --bg-color: #f5f8fa;
    --card-radius: 12px;
    --card-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;

    --font-main: 'Tajawal', sans-serif;
    --font-droid: 'Droid', sans-serif;
    --font-dax: 'Dax', sans-serif;
    --font-sa: 'sa', sans-serif;
    --font-ge: 'Ge', sans-serif;
}

/* ==== 3. reset عام للهوية ==== */
body.identity-portal,
body.identity-portal input,
body.identity-portal select,
body.identity-portal textarea,
body.identity-portal button,
body.identity-portal label,
body.identity-portal h1,
body.identity-portal h2,
body.identity-portal h3,
body.identity-portal h4,
body.identity-portal h5,
body.identity-portal h6,
body.identity-portal a,
body.identity-portal span,
body.identity-portal p,
body.identity-portal td,
body.identity-portal th {
    font-family: var(--font-main) !important;
    color: var(--text-color);
}

/* =======================================================
   4. التوب بار (Topbar)
========================================================= */
body.identity-portal .topbar .navbar-custom {
    background-color: var(--primary-color) !important;
    border-bottom: 3px solid var(--secondary-color);
    box-shadow: var(--card-shadow);
    color: #fff;
}

body.identity-portal .topbar .nav-link,
body.identity-portal .topbar .btn,
body.identity-portal .topbar .dropdown-toggle {
    color: #fff !important;
}

body.identity-portal .topbar .logo {
    margin-top: 10px;
}

body.identity-portal .nav-user img {
    border: solid 1px grey;
    height: 50px;
    width: 50px;
    background: white;
}

body.identity-portal .topbar .dropdown-item {
    color: white !important;
}

body.identity-portal .topbar .btn-outline-primary {
    border-color: #fff;
    color: #fff;
}
body.identity-portal .topbar .btn-outline-primary:hover {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

body.identity-portal .topbar .noti-icon {
    color: #fff;
    font-size: 20px;
}

body.identity-portal .topbar .notify-icon {
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    padding: 6px;
    display: inline-block;
}

body.identity-portal .topbar .dropdown-menu {
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    background-color: #fff;
    color: var(--text-color);
    font-size: 0.95rem;
    overflow: hidden;
}

body.identity-portal .topbar .dropdown-menu .dropdown-item {
    color: var(--text-color) !important;
    padding: 10px 16px;
}
body.identity-portal .topbar .dropdown-menu .dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.03);
    color: var(--primary-color);
}

.button-menu-mobile{background: white!important;}

/* =======================================================
   5. القائمة الجانبية (Sidebar)
========================================================= */
body.identity-portal .left.side-menu {
    background-color: #fff;
    box-shadow: var(--card-shadow);
    border-left: 1px solid #eee;
    padding-top: 20px;
}

body.identity-portal #sidebar-menu > ul > li > a {
    color: var(--text-color);
    font-size: 14px;
    padding: 12px 20px;
    display: block;
    transition: var(--transition);
}

body.identity-portal #sidebar-menu > ul > li > a:hover {
    background-color: rgba(92, 45, 145, 0.05);
    color: var(--primary-color);
}

body.identity-portal #sidebar-menu > ul > li > a.active {
    background-color: var(--primary-color);
    color: #fff !important;
    border-radius: 6px;
}


/* =======================================================
   6. البطاقات (Cards)
========================================================= */
body.identity-portal .card,
body.identity-portal .card-portal {
    background: #fff;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}
body.identity-portal .card-portal:hover {
    transform: translateY(-3px);
}

/* بطاقات العمليات الرئيسية */
.portal-action-card {
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    height: 120px;
    transition: var(--transition);
}
.portal-action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.portal-action-card i {
    font-size: 2rem;
    margin-bottom: 5px;
}

/* =======================================================
   7. الأزرار (Buttons)
========================================================= */
body.identity-portal .btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    transition: var(--transition);
}
body.identity-portal .btn-primary:hover {
    background-color: #472478;
}

body.identity-portal .btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
body.identity-portal .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* زر القائمة الموسمية */
.btn-dropdown-clean {
    background-color: #fff;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    font-weight: bold;
    border-radius: 8px;
    padding: 6px 16px;
    transition: all 0.3s ease;
}
.btn-dropdown-clean:hover,
.btn-dropdown-clean:focus {
    background-color: var(--primary-color);
    color: #fff;
}


.btn-back {
    color: white;
    font-size: 40px;
    padding: 10px;
    display: inline-flex;
    align-items: center;
}


/* =======================================================
   8. الحقول (Form Inputs)
========================================================= */
body.identity-portal .form-control {
    border-radius: 8px;
    font-size: 1rem;
    padding: 10px 14px;
    border: 1px solid #ccc;
    transition: all 0.3s ease;
}
body.identity-portal .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(92, 45, 145, 0.2);
}

body.identity-portal .input-group-text {
    background-color: var(--bg-color);
    color: var(--primary-color);
    font-weight: bold;
    border: 1px solid #ccc;
}

.portal-action-card form label {
    font-weight: bold;
    color: var(--primary-color);
}

.portal-action-card form .form-group {
    margin-bottom: 1.5rem;
}

/* الأزرار داخل النماذج */
.portal-action-card .btn-lg {
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 8px;
    font-weight: bold;
}

.portal-action-card .btn-success,
.portal-action-card .btn-primary,
.portal-action-card .btn-warning,
.portal-action-card .btn-dark {
    color: #fff;
    border: none;
}

.portal-action-card .btn-secondary {
    background-color: #f1f1f1;
    color: #333;
    border: 1px solid #ccc;
}
.portal-action-card .btn-secondary:hover {
    background-color: #e0e0e0;
}
/* =======================================================
   9. النوافذ المنبثقة (Modals)
========================================================= */
body.identity-portal .modal-content {
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    border: none;
}

body.identity-portal .modal-header {
    background-color: var(--primary-color);
    color: #fff;
    border-bottom: none;
    border-top-left-radius: var(--card-radius);
    border-top-right-radius: var(--card-radius);
}
/* =======================================================
   10. التنبيهات (Alerts)
========================================================= */
body.identity-portal .alert {
    border-radius: 8px;
    font-weight: bold;
}

body.identity-portal .alert-success {
    background-color: #28a745;
    color: #fff;
}

body.identity-portal .alert-danger {
    background-color: #dc3545;
    color: #fff;
}

body.identity-portal .alert-info {
    background-color: var(--secondary-color);
    color: #fff;
}

/* =======================================================
   11. الشارات (Badges)
========================================================= */
body.identity-portal .badge {
    font-size: 0.85rem;
    padding: 10px 10px;
    border-radius: 10px;
    font-weight: bold;
}

.badge-default {
    background-color: #eee;
    color: #444;
}

.badge-owner {
    background-color: #5cb85c;
    color: white;
}

.badge-trainer {
    background-color: #5bc0de;
    color: white;
}

.badge-jockey {
    background-color: #f0ad4e;
    color: white;
}

.badge-committee {
    background-color: #746ea8;
    color: white;
}

.badge-label {
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 5px 12px;
    border: 1px solid #ccc;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: bold;
}

/* =======================================================
   12. بطاقات الجياد (Horse Cards)
========================================================= */
.card.horse-card {
    border-radius: var(--card-radius);
    transition: var(--transition);
    border: 1px dashed #ccc;
    background-color: #fff;
    box-shadow: var(--card-shadow);
}

.card.horse-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card.horse-card .card-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card.horse-card p {
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.card.horse-card .badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
}

.card.horse-card .btn-sm {
    border-radius: 6px;
    font-size: 0.85rem;
    padding: 5px 12px;
}

.card.horse-card .view-horse-btn {
    padding: 4px 8px;
    font-size: 0.9rem;
}


/* =======================================================
   13. معلومات الجياد (Horse Cards)
========================================================= */

.horse-details-table {
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    background-color: #fff;
    width: 100%;
}

.horse-details-table td {
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    vertical-align: middle !important;
    font-family: var(--font-main);
}

.horse-details-table tr td:first-child {
    background-color: #f0f0f0;
    font-weight: 600;
    color: #333;
    width: 35%;
    white-space: nowrap;
}

.horse-details-table tr td:last-child {
    background-color: #fff;
    width: 65%;
}

.horse-details-table img {
    max-width: 120px;
    height: auto;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* =======================================================
   14. بطاقات [جياد التدريب] (Horse Cards)
========================================================= */

.trainer-horse-card {
    border-radius: 12px;
    border: 1px solid #e1e1e1;
    background-color: #fff;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.trainer-horse-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.trainer-horse-card .card-body {
    padding: 1.5rem;
}

.trainer-horse-card h5 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.trainer-horse-card ul li {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.trainer-horse-card .btn-sm {
    font-size: 0.85rem;
}

/* =======================================================
   15. بطاقات الأشواط والحفلات
========================================================= */
.party-card {
    border: 1px dashed #ccc;
    border-radius: var(--card-radius);
    background-color: #fff;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
}

.party-card:hover {
    transform: translateY(-2px);
    background-color: #fafafa;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.badge-soft-primary {
    background-color: rgba(92, 45, 145, 0.15);
    color: var(--primary-color);
    padding: 6px 12px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 50px;
}




.race-badge-top {
    background-color: rgba(92, 45, 145, 0.15);
    color: var(--primary-color);
    font-weight: bold;
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.race-name-badge {
    background-color: #f0f0f0;
    color: #555;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    display: inline-block;
}

.badge-custom {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 6px 12px;
    margin-bottom: 6px;
    font-size: 13px;
}


/* =======================================================
   16. الأزرار
========================================================= */

.btn-register-now {
    background-color: var(--primary-color);
    color: #fff !important;
    font-weight: bold;
    padding: 10px 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-register-now:hover {
    background-color: #472478;
    color: #fff;
}



/* =======================================================
   17. العناصر
========================================================= */
.portal-action-card form .form-control {
    border-radius: 8px;
    font-size: 1rem;
    padding: 10px 14px;
    border: 1px solid #ccc;
    transition: all 0.3s ease;
}

.portal-action-card form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(92, 45, 145, 0.2);
}

.portal-action-card form label {
    font-weight: bold;
    color: var(--primary-color);
}

.portal-action-card .btn-lg {
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.portal-action-card .btn-success,
.portal-action-card .btn-primary,
.portal-action-card .btn-warning,
.portal-action-card .btn-dark {
    color: #fff;
    border: none;
}

.portal-action-card .btn-secondary {
    background-color: #f1f1f1;
    color: #333;
    border: 1px solid #ccc;
}

.portal-action-card .btn-secondary:hover {
    background-color: #e0e0e0;
}

.portal-action-card form .form-group {
    margin-bottom: 1.5rem;
}



/* =======================================================
   18. تحسينات عامة
========================================================= */

.page-content-wrapper {
    padding-bottom: 0;
    margin-top: 100px;
}

.page-title {
    font-weight: bold;
    font-size: 1.5rem;
}

.card-header h5 {
    font-size: 1.2rem;
}

select.form-control {
    padding: 0.5rem;
    border-radius: 8px;
}


.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 14px;
    color: #fff !important;
    background-color: #6c757d; /* لون افتراضي رمادي */
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin: 2px;
}

/* أيقونات التواصل - ألوان ناعمة */
.social-btn.facebook {
    background-color: #4267B2;
}

.social-btn.twitter {
    background-color: #1DA1F2;
}

.social-btn.instagram {
    background-color: #C13584;
}

.social-btn.snapchat {
    background-color: rgb(155, 155, 0);
    color: #000;
}

.social-btn.whatsapp {
    background-color: #25D366;
}

/* Hover بسيط */
.social-btn:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* ===== OTP boxes ===== */
.otp-group {
  direction: ltr;               /* حتى ضمن صفحات RTL */
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* عدّل 6 حسب عدد الخانات */
  gap: 10px;
  max-width: 420px;
  margin: 0 auto 14px;
}

.otp-box {
  appearance: none;
  -moz-appearance: textfield;
  width: 100%;
  height: 56px;
  text-align: center;
  font-size: 22px;
  line-height: 56px;
  border: 1px solid #cfd4da;
  border-radius: 10px;
  background: #fff;
  transition: box-shadow .2s ease, border-color .2s ease, transform .08s ease;
  outline: none;
}

.otp-box:focus {
  border-color: var(--secondary-color, #4CD7D0);
  box-shadow: 0 0 0 3px rgba(76, 215, 208, .25);
  transform: translateY(-1px);
}

.otp-box::placeholder { color: #bbb; }

.otp-box[disabled],
.otp-box[readonly] {
  background: #f6f7f9;
  color: #98a1a8;
  cursor: not-allowed;
}

/* أخفاء أسهم الأرقام في بعض المتصفحات */
.otp-box::-webkit-outer-spin-button,
.otp-box::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* حالة الخطأ */
.otp-error .otp-box {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, .15);
}

/* رسالة مساعده تحت الحقول */
.otp-hint {
  text-align: center;
  font-size: 0.9rem;
  color: #6c757d;
}

.otp-error .otp-hint { color: #dc3545; }

/* تكيف لأربع خانات */
.otp-group.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* تكبير لموبايل لتجنّب الزوم */
@media (max-width: 480px) {
  .otp-box { height: 54px; font-size: 20px; }
}
/* =======================================================
   Authentication Pages
========================================================= */

.portal-auth-page {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
    background-color: #f5f8fa;
}

/* الخلفية المتحركة */
.portal-auth-page::before {
    content: '';
    position: absolute;
    inset: -40px;
    z-index: -2;
    background-image: url('../../../images/cup.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: portalAuthBackground 18s ease-in-out infinite alternate;
    will-change: transform;
}

/* طبقة تغميق فوق الصورة */
.portal-auth-page::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(20, 10, 35, .45);
}

@keyframes portalAuthBackground {
    0% {
        transform: scale(1.05) translate3d(0, 0, 0);
    }

    100% {
        transform: scale(1.13) translate3d(-1.5%, 1%, 0);
    }
}

/* الحاوية */
.portal-auth-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
}

/* الكارد */
body.identity-portal .portal-auth-card {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
    overflow: hidden;
}

body.identity-portal .portal-auth-card .card-body {
    padding: 32px;
}

/* Header */
.portal-auth-header {
    margin-bottom: 28px;
}

.portal-auth-logo {
    display: block;
    width: 130px;
    max-width: 60%;
    height: auto;
    margin: 0 auto;
}

.portal-auth-title {
    margin-top: 20px;
    margin-bottom: 8px;
    font-weight: 600;
}

.portal-auth-subtitle {
    margin-bottom: 0;
    line-height: 1.7;
}

/* Form */
.portal-auth-form .form-group {
    margin-bottom: 20px;
}

.portal-auth-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
}

.portal-input-group .form-control,
.portal-input-group .input-group-text {
    min-height: 48px;
}

.portal-input-group .form-control {
    font-size: 16px;
}

.portal-input-group .input-group-text {
    min-width: 48px;
    justify-content: center;
}

.portal-password-toggle {
    border: 0;
    cursor: pointer;
    outline: none;
}

.portal-password-toggle:focus {
    box-shadow: none;
}

/* Buttons */
.portal-login-btn,
.portal-secondary-btn {
    min-height: 50px;
    border-radius: 8px;
    font-weight: 600;
}

.portal-login-btn {
    margin-top: 8px;
}

/* Links */
.portal-auth-link,
.portal-back-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
}

/* Divider */
.portal-auth-divider {
    position: relative;
    text-align: center;
    margin: 22px 0;
}

.portal-auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 1px;
    background: #e9ecef;
}

.portal-auth-divider span {
    position: relative;
    padding: 0 12px;
    background: #fff;
    color: #adb5bd;
    font-size: 13px;
}

/* Footer */
.portal-auth-footer {
    padding-top: 18px;
}

.portal-auth-footer small,
.portal-auth-footer a {
    color: #fff !important;
}

/* Mobile / WebView */
@media (max-width: 575.98px) {
    .portal-auth-page {
        padding: 16px 12px;
    }

    .portal-auth-wrapper {
        max-width: 100%;
    }

    body.identity-portal .portal-auth-card {
        border-radius: 14px;
    }

    body.identity-portal .portal-auth-card .card-body {
        padding: 24px 20px;
    }

    .portal-auth-header {
        margin-bottom: 24px;
    }

    .portal-auth-logo {
        width: 115px;
    }
}

/* احترام إعداد تقليل الحركة في الجهاز */
@media (prefers-reduced-motion: reduce) {
    .portal-auth-page::before {
        animation: none;
        transform: scale(1.05);
    }
}



.portal-auth-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.portal-language-btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.portal-auth-terms {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #eee;
    font-size: 13px;
    line-height: 1.8;
    color: #6c757d;
}

.portal-auth-terms a {
    font-weight: 500;
}
.portal-auth-form input[type="email"],
.portal-auth-form input[type="password"] {
    direction: ltr;
    text-align: left;
}
.portal-ltr-input {
    direction: ltr;
    text-align: left;
    unicode-bidi: plaintext;
}

.portal-select-group {
    position: relative;
}

.portal-select-icon {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    z-index: 5;
    color: var(--primary-color);
    pointer-events: none;
}

.portal-select-group .select2-container {
    width: 100% !important;
}

.portal-select-group .select2-selection {
    min-height: 48px;
    border-radius: 8px !important;
    border: 1px solid #ccc !important;
}

.portal-select-group .select2-selection__rendered {
    line-height: 46px !important;
    padding-right: 42px !important;
}

.portal-select-group .select2-selection__arrow {
    height: 46px !important;
}

.portal-phone-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.portal-phone-control {
    direction: ltr;
    display: flex;
    width: 100%;
    height: 52px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.portal-phone-control:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(92, 45, 145, .15);
}

.portal-phone-code-select {
    flex: 0 0 105px;
    width: 105px;
    height: 100%;
    padding: 0 12px;
    border: 0;
    border-right: 1px solid #e2e2e2;
    background: #f8f9fa;
    font-size: 16px;
    text-align: center;
    outline: none;
    color: #333;
}

.portal-phone-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 16px;
    border: 0;
    outline: none;
    background: transparent;
    direction: ltr;
    text-align: left;
    font-size: 16px;
}

.portal-phone-input::placeholder {
    color: #adb5bd;
}


.portal-auth-wrapper-wide {
    max-width: 480px;
}

.portal-photo-card-body {
    padding-bottom: 20px !important;
}

.portal-photo-upload {
    margin-top: 10px;
}

.portal-photo-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f8f9fa;
    font-size: 13px;
    line-height: 1.7;
}

.portal-photo-note i {
    margin-top: 3px;
    color: var(--primary-color);
}

.portal-sticky-action {
    position: sticky;
    bottom: 0;
    z-index: 20;
    padding: 14px 20px;
    background: rgba(255, 255, 255, .97);
    border-top: 1px solid #eee;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, .05);
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .portal-sticky-action {
        padding-bottom: calc(14px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 575.98px) {
    .portal-photo-card-body {
        padding-bottom: 12px !important;
    }

    .portal-sticky-action {
        padding: 12px 16px;
    }
}
@media (max-width: 575.98px) {
    .portal-auth-toolbar {
        margin-bottom: 8px;
    }

    .portal-auth-terms {
        margin-top: 20px;
        padding-top: 16px;
        font-size: 12px;
    }
}



.portal-midan-list {
    max-width: 1100px;
    margin-right: auto;
    margin-left: auto;
}

.portal-midan-list-card {
    overflow: hidden;
    border: 1px solid #ececec;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .045);
}

.portal-midan-main-link {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 135px;
    padding: 18px;
    color: inherit;
    text-decoration: none !important;
}

.portal-midan-main-link:active {
    background: #fafafa;
}

.portal-midan-list-logo {
    flex: 0 0 92px;
    width: 92px;
    height: 92px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;
    background: #fafafa;
    overflow: hidden;
}

.portal-midan-list-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.portal-midan-list-info {
    flex: 1;
    min-width: 0;
}

.portal-midan-list-name {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    color: #333;
}

.portal-midan-open {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
}

.portal-midan-open i {
    font-size: 11px;
}

.portal-midan-social {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 10px 18px 14px;

    border-top: 1px solid #f1f1f1;
}

.portal-midan-social .social-btn {
    width: 36px;
    height: 36px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    text-decoration: none;
    font-size: 15px;
}

@media (max-width: 575.98px) {
    .portal-midan-main-link {
        min-height: 120px;
        padding: 14px;
        gap: 14px;
    }

    .portal-midan-list-logo {
        flex-basis: 78px;
        width: 78px;
        height: 78px;
    }

    .portal-midan-list-name {
        font-size: 16px;
    }

    .portal-midan-social {
        padding: 10px 14px 12px;
    }
}


.portal-midan-dashboard {
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 110px;
}
/* =====================================================
   MIDAN HERO
===================================================== */

/* =====================================================
   MIDAN HERO
===================================================== */

.portal-midan-hero-placeholder {
    display: none;
}

.portal-midan-hero {
    display: flex;
    align-items: center;
    gap: 18px;

    margin-bottom: 22px;
    padding: 18px;

    border: 1px solid #eee;
    border-radius: 18px;

    background: #fff;

    box-shadow: 0 5px 20px rgba(0, 0, 0, .04);

    transition:
            padding .2s ease,
            gap .2s ease,
            border-radius .2s ease,
            box-shadow .2s ease;
}

.portal-midan-hero-logo {
    flex: 0 0 92px;
    width: 92px;
    height: 92px;

    display: flex;
    align-items: center;
    justify-content: center;

    transition:
            width .2s ease,
            height .2s ease,
            flex-basis .2s ease;
}

.portal-midan-hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.portal-midan-hero-info {
    flex: 1;
    min-width: 0;
}

.portal-midan-hero-info h3 {
    margin: 7px 0;

    font-size: 21px;
    font-weight: 700;

    transition:
            margin .2s ease,
            font-size .2s ease;
}

.portal-current-midan-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    font-size: 12px;
    font-weight: 600;

    color: var(--primary-color);
}

.portal-current-season {
    display: flex;
    align-items: center;
    gap: 6px;

    color: #888;
    font-size: 13px;

    transition: font-size .2s ease;
}


/* =====================================================
   HERO أثناء السكرول
===================================================== */

.portal-midan-hero.is-floating {
    position: fixed;
    z-index: 999;

    top: var(--portal-midan-fixed-top, 0px);

    right: 15px;
    left: 15px;

    width: auto;
    max-width: 1100px;
    margin: 0 auto;

    gap: 10px;
    padding: 8px 12px;

    border-radius: 0 0 12px 12px;

    box-shadow: 0 6px 22px rgba(0, 0, 0, .13);
}

.portal-midan-hero.is-floating .portal-midan-hero-logo {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
}

.portal-midan-hero.is-floating .portal-midan-hero-info h3 {
    margin: 0 0 2px;

    font-size: 15px;
}

.portal-midan-hero.is-floating .portal-current-midan-badge {
    display: none;
}

.portal-midan-hero.is-floating .portal-current-season {
    font-size: 11px;
}



/* =====================================================
   MIDAN HERO - COMPACT
===================================================== */

.portal-midan-hero.is-compact {
    gap: 10px;
    padding: 8px 12px;

    border-radius: 12px;

    box-shadow: 0 7px 22px rgba(0, 0, 0, .10);
}

.portal-midan-hero.is-compact .portal-midan-hero-logo {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
}

.portal-midan-hero.is-compact .portal-midan-hero-info h3 {
    margin: 0 0 2px;
    font-size: 15px;
}

.portal-midan-hero.is-compact .portal-current-midan-badge {
    display: none;
}

.portal-midan-hero.is-compact .portal-current-season {
    font-size: 11px;
}


/* =====================================================
   MEMBERSHIP
===================================================== */

.portal-membership-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    margin-bottom: 24px;
    padding: 12px 14px;

    border-radius: 12px;
    background: #f8f9fa;
}

.portal-section-label {
    font-size: 13px;
    font-weight: 600;
}

.portal-role-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.portal-membership-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin-right: auto;

    min-height: 36px;
    padding: 5px 10px;

    border-radius: 8px;
    background: #fff;

    color: var(--primary-color);

    font-size: 13px;
    font-weight: 600;

    text-decoration: none !important;
}


/* =====================================================
   SECTION
===================================================== */

.portal-section-header,
.portal-section-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 6px;
    margin-bottom: 14px;
}

.portal-section-header h5,
.portal-section-row h5 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}

.portal-section-header p,
.portal-section-row p {
    margin: 4px 0 0;
    color: #888;
    font-size: 12px;
}


/* =====================================================
   QUICK ACTIONS
===================================================== */

.portal-quick-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 120px;
    padding: 14px 8px;

    border: 1px solid #eee;
    border-radius: 15px;

    background: #fff;
    color: #333;

    text-align: center;
    text-decoration: none !important;

    box-shadow: 0 4px 15px rgba(0, 0, 0, .035);

    transition:
            transform .15s ease,
            box-shadow .15s ease;
}

.portal-quick-card:active {
    transform: scale(.97);
}

.portal-quick-icon {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: rgba(92, 45, 145, .08);

    color: var(--primary-color);
    font-size: 19px;
}

.portal-quick-title {
    font-size: 13px;
    line-height: 1.5;
    font-weight: 600;
}


/* =====================================================
   SEASON
===================================================== */

.portal-season-btn {
    min-height: 40px;

    border: 1px solid #e5e5e5;
    border-radius: 9px;

    background: #fff;

    font-size: 13px;
}


/* =====================================================
   PARTIES
===================================================== */

.portal-parties-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.portal-party-card {
    display: flex;
    align-items: center;
    gap: 14px;

    min-height: 105px;
    padding: 12px;

    border: 1px solid #eee;
    border-radius: 15px;

    background: #fff;
    color: #333;

    text-decoration: none !important;

    box-shadow: 0 4px 14px rgba(0, 0, 0, .035);
}

.portal-party-card:active {
    background: #fafafa;
}

.portal-party-image {
    flex: 0 0 76px;

    width: 76px;
    height: 76px;

    overflow: hidden;

    border-radius: 12px;
}

.portal-party-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.portal-party-info {
    flex: 1;
    min-width: 0;
}

.portal-party-info h6 {
    margin: 7px 0;

    font-size: 15px;
    font-weight: 700;
}

.portal-party-number {
    display: inline-flex;

    padding: 3px 8px;

    border-radius: 6px;

    background: rgba(92, 45, 145, .08);
    color: var(--primary-color);

    font-size: 11px;
    font-weight: 600;
}

.portal-party-date {
    display: flex;
    align-items: center;
    gap: 5px;

    color: #888;
    font-size: 12px;
}

.portal-party-arrow {
    flex: 0 0 20px;

    color: #bbb;
    font-size: 12px;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 575.98px) {

    .portal-midan-dashboard {
        padding-right: 12px;
        padding-left: 12px;
    }

    .portal-midan-hero {
        gap: 14px;
        padding: 14px;

        border-radius: 15px;
    }

    .portal-midan-hero-logo {
        flex-basis: 72px;
        width: 72px;
        height: 72px;
    }

    .portal-midan-hero-info h3 {
        font-size: 17px;
    }

    .portal-midan-hero.is-floating {
        gap: 9px;
        padding: 7px 10px;

        border-radius: 0 0 10px 10px;
    }

    .portal-midan-hero.is-floating .portal-midan-hero-logo {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }

    .portal-midan-hero.is-floating .portal-midan-hero-info h3 {
        font-size: 14px;
    }

    .portal-midan-hero.is-floating .portal-current-season {
        font-size: 10px;
    }

    .portal-membership-summary {
        align-items: flex-start;
    }

    .portal-membership-card-link {
        width: 100%;
        margin-top: 5px;

        justify-content: center;
    }

    .portal-quick-card {
        min-height: 105px;
    }

    .portal-section-row {
        align-items: flex-end;
    }

    .portal-section-row p {
        display: none;
    }

    .portal-party-card {
        gap: 11px;
    }

    .portal-party-image {
        flex-basis: 65px;
        width: 65px;
        height: 65px;
    }
}




/* =====================================================
   MEMBERSHIPS PAGE
===================================================== */

.portal-memberships-page {
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 100px;
}


/* =====================================================
   HERO
===================================================== */

.portal-memberships-hero {
    display: flex;
    align-items: center;
    gap: 18px;

    margin-bottom: 24px;
    padding: 18px;

    border: 1px solid #eee;
    border-radius: 18px;

    background: #fff;

    box-shadow: 0 5px 20px rgba(0, 0, 0, .04);
}

.portal-memberships-midan-logo {
    flex: 0 0 82px;
    width: 82px;
    height: 82px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-memberships-midan-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.portal-memberships-hero-info {
    flex: 1;
    min-width: 0;
}

.portal-memberships-eyebrow {
    display: block;

    margin-bottom: 5px;

    color: var(--primary-color);

    font-size: 12px;
    font-weight: 600;
}

.portal-memberships-hero-info h3 {
    margin: 0 0 5px;

    font-size: 20px;
    font-weight: 700;
}

.portal-memberships-hero-info p {
    margin: 0;

    color: #888;
    font-size: 13px;
}


/* =====================================================
   CARD
===================================================== */

.portal-membership-card {
    height: 100%;

    display: flex;
    flex-direction: column;

    padding: 16px;

    border: 1px solid #eee;
    border-radius: 16px;

    background: #fff;

    box-shadow: 0 4px 16px rgba(0, 0, 0, .035);
}

.portal-membership-card-head {
    display: flex;
    align-items: center;
    gap: 13px;

    margin-bottom: 15px;
}

.portal-membership-icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: rgba(92, 45, 145, .08);

    color: var(--primary-color);

    font-size: 20px;
}

.portal-membership-info {
    flex: 1;
    min-width: 0;
}

.portal-membership-info h5 {
    margin: 0 0 6px;

    font-size: 16px;
    font-weight: 700;
}


/* =====================================================
   AMOUNT
===================================================== */

.portal-membership-amount {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 12px;
    padding: 10px 12px;

    border-radius: 10px;

    background: #f8f9fa;

    font-size: 13px;
}

.portal-membership-amount strong {
    font-size: 14px;
}


/* =====================================================
   STATE
===================================================== */

.portal-membership-state {
    display: flex;
    align-items: flex-start;
    gap: 9px;

    margin-top: auto;
    padding: 11px 12px;

    border-radius: 10px;

    font-size: 13px;
    line-height: 1.6;
}

.portal-membership-state small {
    display: block;
    margin-top: 3px;
}

.portal-membership-state.success {
    background: rgba(40, 167, 69, .08);
    color: #24843b;
}

.portal-membership-state.review {
    background: rgba(255, 193, 7, .10);
    color: #8a6d00;
}

.portal-membership-state.info {
    background: rgba(23, 162, 184, .08);
    color: #16758a;
}


/* =====================================================
   ACTION
===================================================== */

.portal-membership-action {
    margin-top: auto;
    min-height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    border-radius: 10px;

    font-weight: 600;
}

.portal-membership-action span {
    font-size: 12px;
}

.portal-pay-btn.disabled {
    pointer-events: none;
    opacity: .75;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 575.98px) {

    .portal-memberships-page {
        padding-right: 12px;
        padding-left: 12px;
    }

    .portal-memberships-hero {
        gap: 13px;

        margin-bottom: 18px;
        padding: 14px;

        border-radius: 15px;
    }

    .portal-memberships-midan-logo {
        flex-basis: 64px;
        width: 64px;
        height: 64px;
    }

    .portal-memberships-hero-info h3 {
        font-size: 17px;
    }

    .portal-memberships-hero-info p {
        font-size: 12px;
    }

    .portal-membership-card {
        padding: 14px;
    }

    .portal-membership-icon {
        flex-basis: 46px;
        width: 46px;
        height: 46px;

        font-size: 18px;
    }
}


/* =====================================================
   MEMBERSHIP FORM PAGE
===================================================== */

.portal-membership-form-page {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 110px;
}


/* HERO */

.portal-membership-form-hero {
    display: flex;
    align-items: center;
    gap: 16px;

    margin-bottom: 20px;
    padding: 16px;

    border: 1px solid #eee;
    border-radius: 16px;

    background: #fff;

    box-shadow: 0 4px 18px rgba(0, 0, 0, .035);
}

.portal-membership-form-logo {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-membership-form-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.portal-membership-form-hero-info {
    flex: 1;
    min-width: 0;
}

.portal-membership-form-eyebrow {
    display: block;
    margin-bottom: 4px;

    color: var(--primary-color);

    font-size: 12px;
    font-weight: 600;
}

.portal-membership-form-hero-info h3 {
    margin: 0 0 4px;

    font-size: 19px;
    font-weight: 700;
}

.portal-membership-form-hero-info p {
    margin: 0;

    color: #888;
    font-size: 12px;
}


/* FORM CONTAINER */

.portal-membership-form-container {
    padding: 22px;

    border: 1px solid #eee;
    border-radius: 16px;

    background: #fff;

    box-shadow: 0 4px 18px rgba(0, 0, 0, .035);
}


/* FORM HEADING */

.portal-form-heading {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 22px;
    padding-bottom: 16px;

    border-bottom: 1px solid #eee;
}

.portal-form-heading-icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: rgba(92, 45, 145, .08);

    color: var(--primary-color);

    font-size: 18px;
}

.portal-form-heading h5 {
    margin: 0 0 3px;

    font-size: 16px;
    font-weight: 700;
}

.portal-form-heading p {
    margin: 0;

    color: #888;
    font-size: 12px;
}


/* FORM */

.portal-membership-form .form-group {
    margin-bottom: 18px;
}

.portal-membership-form label {
    display: block;

    margin-bottom: 7px;

    font-size: 13px;
    font-weight: 600;
}

.portal-membership-form .form-control {
    min-height: 48px;

    border-radius: 9px;

    font-size: 15px;
}

.portal-readonly-input {
    background: #f8f9fa !important;
    color: #777;

    cursor: default;
}


/* ACTIONS */

.portal-membership-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-top: 10px;
    padding-top: 18px;

    border-top: 1px solid #eee;
}

.portal-membership-submit {
    min-height: 48px;
    min-width: 180px;

    border-radius: 10px;

    font-weight: 600;
}

.portal-membership-back {
    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    border-radius: 10px;
}


/* ALREADY REGISTERED */

.portal-membership-existing {
    padding: 30px 15px;

    text-align: center;
}

.portal-membership-existing-icon {
    width: 64px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 14px;

    border-radius: 50%;

    background: rgba(40, 167, 69, .10);
    color: #28a745;

    font-size: 26px;
}

.portal-membership-existing h5 {
    margin-bottom: 20px;

    font-size: 16px;
    line-height: 1.7;
}


/* MOBILE */

@media (max-width: 575.98px) {

    .portal-membership-form-page {
        padding-right: 12px;
        padding-left: 12px;
    }

    .portal-membership-form-hero {
        gap: 12px;
        padding: 13px;

        border-radius: 14px;
    }

    .portal-membership-form-logo {
        flex-basis: 58px;
        width: 58px;
        height: 58px;
    }

    .portal-membership-form-hero-info h3 {
        font-size: 16px;
    }

    .portal-membership-form-container {
        padding: 16px 14px;

        border-radius: 14px;
    }

    .portal-membership-form-actions {
        flex-direction: column;
    }

    .portal-membership-submit,
    .portal-membership-back {
        width: 100%;
    }
}


/* =====================================================
   HORSE REGISTER
===================================================== */

.portal-horse-register-page {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 110px;
}


/* HERO */

.portal-horse-register-hero {
    display: flex;
    align-items: center;
    gap: 16px;

    margin-bottom: 18px;
    padding: 16px;

    border: 1px solid #eee;
    border-radius: 16px;

    background: #fff;

    box-shadow: 0 4px 18px rgba(0, 0, 0, .035);
}

.portal-horse-register-logo {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-horse-register-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.portal-horse-register-hero-info {
    flex: 1;
    min-width: 0;
}

.portal-horse-register-eyebrow {
    display: block;

    margin-bottom: 4px;

    color: var(--primary-color);

    font-size: 12px;
    font-weight: 600;
}

.portal-horse-register-hero-info h3 {
    margin: 0 0 4px;

    font-size: 19px;
    font-weight: 700;
}

.portal-horse-register-hero-info p {
    margin: 0;

    color: #888;

    font-size: 12px;
    line-height: 1.7;
}


/* =====================================================
   STEPS
===================================================== */

.portal-horse-register-steps {
    display: flex;
    align-items: center;

    margin-bottom: 18px;
    padding: 12px 15px;

    border-radius: 13px;

    background: #f8f9fa;
}

.portal-horse-step {
    display: flex;
    align-items: center;
    gap: 8px;

    color: #999;
}

.portal-horse-step.active {
    color: var(--primary-color);
}

.portal-horse-step-number {
    flex: 0 0 30px;

    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #e9ecef;

    font-size: 12px;
    font-weight: 700;
}

.portal-horse-step.active .portal-horse-step-number {
    background: var(--primary-color);
    color: #fff;
}

.portal-horse-step strong {
    display: block;

    font-size: 12px;
    font-weight: 700;
}

.portal-horse-step small {
    display: block;

    margin-top: 1px;

    font-size: 10px;
}

.portal-horse-step-line {
    flex: 1;

    height: 1px;

    margin: 0 12px;

    background: #ddd;
}


/* =====================================================
   SEARCH CARD
===================================================== */

.portal-horse-search-card {
    padding: 20px;

    border: 1px solid #eee;
    border-radius: 16px;

    background: #fff;

    box-shadow: 0 4px 18px rgba(0, 0, 0, .035);
}

.portal-horse-search-heading {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 22px;
    padding-bottom: 16px;

    border-bottom: 1px solid #eee;
}

.portal-horse-search-icon {
    flex: 0 0 46px;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: rgba(92, 45, 145, .08);

    color: var(--primary-color);

    font-size: 18px;
}

.portal-horse-search-heading h5 {
    margin: 0 0 3px;

    font-size: 16px;
    font-weight: 700;
}

.portal-horse-search-heading p {
    margin: 0;

    color: #888;

    font-size: 12px;
    line-height: 1.6;
}


/* INPUTS */

.portal-horse-search-card .form-group {
    margin-bottom: 18px;
}

.portal-horse-search-card label {
    display: block;

    margin-bottom: 7px;

    font-size: 13px;
    font-weight: 600;
}

.portal-horse-input {
    position: relative;
}

.portal-horse-input > i {
    position: absolute;

    top: 50%;
    right: 14px;

    z-index: 2;

    transform: translateY(-50%);

    color: #aaa;

    font-size: 14px;
}

.portal-horse-input .form-control {
    min-height: 50px;

    padding-right: 42px;

    border-radius: 10px;

    font-size: 15px;
}

.portal-horse-field-hint {
    display: block;

    margin-top: 6px;

    color: #999;

    font-size: 11px;
}

.portal-horse-check-btn {
    min-height: 50px;

    margin-top: 6px;

    border-radius: 10px;

    font-weight: 600;
}


/* =====================================================
   SIMILAR HORSES
===================================================== */

.portal-horse-results {
    margin-top: 18px;
    padding: 18px;

    border: 1px solid rgba(255, 193, 7, .35);
    border-radius: 16px;

    background: #fff;

    box-shadow: 0 4px 18px rgba(0, 0, 0, .035);
}

.portal-horse-results-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin-bottom: 16px;
}

.portal-horse-results-warning {
    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: rgba(255, 193, 7, .13);
    color: #a47b00;

    font-size: 17px;
}

.portal-horse-results-heading h5 {
    margin: 0 0 4px;

    font-size: 16px;
    font-weight: 700;
}

.portal-horse-results-heading p {
    margin: 0;

    color: #777;

    font-size: 12px;
    line-height: 1.7;
}


/* HORSE RESULT */

.portal-similar-horses {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.portal-similar-horse-card {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px;

    border: 1px solid #eee;
    border-radius: 12px;

    background: #fafafa;
}

.portal-similar-horse-icon {
    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: #fff;

    color: var(--primary-color);

    font-size: 16px;
}

.portal-similar-horse-info {
    flex: 1;
    min-width: 0;
}

.portal-similar-horse-info > span {
    display: block;

    color: #999;

    font-size: 10px;
}

.portal-similar-horse-info h6 {
    margin: 2px 0 5px;

    font-size: 14px;
    font-weight: 700;
}

.portal-similar-horse-serial {
    display: flex;
    align-items: center;
    gap: 5px;

    color: #777;

    font-size: 11px;
}

.portal-similar-horse-action .btn {
    min-height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    border-radius: 8px;

    font-size: 12px;
    font-weight: 600;
}


/* =====================================================
   NOT IN LIST
===================================================== */

.portal-horse-not-found {
    margin-top: 16px;
    padding-top: 16px;

    border-top: 1px solid #eee;
}

.portal-horse-not-found-text {
    display: flex;
    align-items: flex-start;
    gap: 9px;

    margin-bottom: 12px;
}

.portal-horse-not-found-text > i {
    margin-top: 3px;

    color: var(--primary-color);
}

.portal-horse-not-found-text strong,
.portal-horse-not-found-text small {
    display: block;
}

.portal-horse-not-found-text strong {
    font-size: 13px;
}

.portal-horse-not-found-text small {
    margin-top: 2px;

    color: #888;

    font-size: 11px;
}

.portal-new-horse-btn {
    width: 100%;
    min-height: 46px;

    border-radius: 9px;

    font-weight: 600;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 575.98px) {

    .portal-horse-register-page {
        padding-right: 12px;
        padding-left: 12px;
    }

    .portal-horse-register-hero {
        gap: 12px;
        padding: 13px;

        border-radius: 14px;
    }

    .portal-horse-register-logo {
        flex-basis: 58px;
        width: 58px;
        height: 58px;
    }

    .portal-horse-register-hero-info h3 {
        font-size: 16px;
    }

    .portal-horse-search-card,
    .portal-horse-results {
        padding: 15px 13px;

        border-radius: 14px;
    }

    .portal-horse-step small {
        display: none;
    }

    .portal-similar-horse-card {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .portal-similar-horse-action {
        width: 100%;
    }

    .portal-similar-horse-action .btn {
        width: 100%;
    }
}


/* =====================================================
   OWNERSHIP REQUEST
===================================================== */

.portal-ownership-request-page {
    max-width: 760px;
    margin: 0 auto;
    padding-bottom: 110px;
}


/* HERO */

.portal-ownership-request-hero {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 18px;
    padding: 16px;

    border: 1px solid #eee;
    border-radius: 16px;

    background: #fff;

    box-shadow: 0 4px 18px rgba(0, 0, 0, .035);
}

.portal-ownership-request-hero-icon {
    flex: 0 0 54px;

    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: rgba(92, 45, 145, .08);
    color: var(--primary-color);

    font-size: 20px;
}

.portal-ownership-request-hero-info {
    flex: 1;
    min-width: 0;
}

.portal-ownership-request-hero-info > span {
    display: block;

    margin-bottom: 3px;

    color: var(--primary-color);

    font-size: 11px;
    font-weight: 600;
}

.portal-ownership-request-hero-info h3 {
    margin: 0 0 4px;

    font-size: 18px;
    font-weight: 700;
}

.portal-ownership-request-hero-info p {
    margin: 0;

    color: #888;

    font-size: 12px;
    line-height: 1.7;
}


/* =====================================================
   STEPS
===================================================== */

.portal-ownership-steps {
    display: flex;
    align-items: center;

    margin-bottom: 18px;
    padding: 12px 15px;

    border-radius: 13px;

    background: #f8f9fa;
}

.portal-ownership-step {
    display: flex;
    align-items: center;
    gap: 8px;

    color: #999;
}

.portal-ownership-step.active {
    color: var(--primary-color);
}

.portal-ownership-step-number {
    flex: 0 0 30px;

    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #e9ecef;

    font-size: 12px;
    font-weight: 700;
}

.portal-ownership-step.active .portal-ownership-step-number {
    background: var(--primary-color);
    color: #fff;
}

.portal-ownership-step strong {
    display: block;

    font-size: 12px;
    font-weight: 700;
}

.portal-ownership-step small {
    display: block;

    margin-top: 1px;

    font-size: 10px;
}

.portal-ownership-step-line {
    flex: 1;

    height: 1px;

    margin: 0 12px;

    background: #ddd;
}


/* =====================================================
   CARD
===================================================== */

.portal-ownership-card {
    padding: 20px;

    border: 1px solid #eee;
    border-radius: 16px;

    background: #fff;

    box-shadow: 0 4px 18px rgba(0, 0, 0, .035);
}

.portal-ownership-card-heading {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 18px;
    padding-bottom: 16px;

    border-bottom: 1px solid #eee;
}

.portal-ownership-card-icon {
    flex: 0 0 46px;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: rgba(92, 45, 145, .08);
    color: var(--primary-color);

    font-size: 18px;
}

.portal-ownership-card-heading h5 {
    margin: 0 0 3px;

    font-size: 16px;
    font-weight: 700;
}

.portal-ownership-card-heading p {
    margin: 0;

    color: #888;

    font-size: 12px;
    line-height: 1.6;
}


/* =====================================================
   INFO
===================================================== */

.portal-ownership-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin-bottom: 20px;
    padding: 12px;

    border-radius: 11px;

    background: rgba(23, 162, 184, .07);
}

.portal-ownership-info > i {
    margin-top: 3px;

    color: #178399;
}

.portal-ownership-info strong,
.portal-ownership-info span {
    display: block;
}

.portal-ownership-info strong {
    margin-bottom: 2px;

    color: #166f80;

    font-size: 12px;
}

.portal-ownership-info span {
    color: #6f7c7f;

    font-size: 11px;
    line-height: 1.7;
}


/* =====================================================
   UPLOAD
===================================================== */

.portal-ownership-upload {
    margin-bottom: 20px;
}

.portal-ownership-upload .upload-container {
    margin: 0;
}


/* =====================================================
   SUBMIT
===================================================== */

.portal-ownership-submit-section {
    margin-top: 18px;
    padding-top: 18px;

    border-top: 1px solid #eee;
}

.portal-ownership-submit-note {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 12px;

    color: #888;

    font-size: 11px;
    line-height: 1.6;
}

.portal-ownership-submit-note i {
    color: var(--primary-color);
}

.portal-ownership-submit-btn {
    min-height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    border-radius: 10px;

    font-weight: 600;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 575.98px) {

    .portal-ownership-request-page {
        padding-right: 12px;
        padding-left: 12px;
    }

    .portal-ownership-request-hero {
        gap: 11px;
        padding: 13px;

        border-radius: 14px;
    }

    .portal-ownership-request-hero-icon {
        flex-basis: 48px;

        width: 48px;
        height: 48px;

        font-size: 18px;
    }

    .portal-ownership-request-hero-info h3 {
        font-size: 16px;
    }

    .portal-ownership-card {
        padding: 15px 13px;

        border-radius: 14px;
    }

    .portal-ownership-step small {
        display: none;
    }
}

/* =====================================================
   OWNERSHIP UPLOAD OVERRIDES
===================================================== */

.portal-ownership-upload {
    width: 100%;
    margin: 0;
}

.portal-ownership-upload .upload-container {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 18px !important;

    border: 1px solid #e5e5e5;
    border-radius: 14px;

    background: #fafafa;

    box-shadow: none !important;

    text-align: center;
}

.portal-ownership-upload .upload-container h2 {
    margin: 0 0 16px !important;

    font-size: 18px !important;
    font-weight: 700;

    text-align: center;
}

.portal-ownership-upload #uploadForm {
    width: 100%;
    max-width: 100%;

    margin: 0 auto;
}

.portal-ownership-upload #uploadfile {
    width: 100% !important;
    max-width: 100% !important;

    min-height: 48px;

    margin: 0 !important;

    border-radius: 10px;
}

.portal-ownership-upload #uploadStatus {
    width: 100%;

    margin-top: 12px;
}

.portal-ownership-upload #uploadStatus img,
.portal-ownership-upload #uploadStatus embed,
.portal-ownership-upload #uploadStatus iframe {
    max-width: 100% !important;
}

.portal-ownership-upload .alert {
    width: 100%;

    margin: 12px 0 0;

    border-radius: 10px;
}


/* =====================================================
   COMPLETE HORSE REGISTER
===================================================== */

.portal-horse-complete-page {
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 110px;
}


/* HERO */

.portal-horse-complete-hero {
    display: flex;
    align-items: center;
    gap: 16px;

    margin-bottom: 18px;
    padding: 16px;

    border: 1px solid #eee;
    border-radius: 16px;

    background: #fff;

    box-shadow: 0 4px 18px rgba(0, 0, 0, .035);
}

.portal-horse-complete-logo {
    flex: 0 0 72px;

    width: 72px;
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-horse-complete-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.portal-horse-complete-hero-info {
    flex: 1;
    min-width: 0;
}

.portal-horse-complete-eyebrow {
    display: block;

    margin-bottom: 4px;

    color: var(--primary-color);

    font-size: 12px;
    font-weight: 600;
}

.portal-horse-complete-hero-info h3 {
    margin: 0 0 4px;

    font-size: 19px;
    font-weight: 700;
}

.portal-horse-complete-hero-info p {
    margin: 0;

    color: #888;

    font-size: 12px;
    line-height: 1.7;
}


/* =====================================================
   STEPS
===================================================== */

.portal-horse-complete-steps {
    display: flex;
    align-items: center;

    margin-bottom: 18px;
    padding: 12px 15px;

    border-radius: 13px;

    background: #f8f9fa;
}

.portal-horse-complete-step {
    display: flex;
    align-items: center;
    gap: 8px;

    color: #999;
}

.portal-horse-complete-step.active,
.portal-horse-complete-step.done {
    color: var(--primary-color);
}

.portal-horse-complete-step-number {
    flex: 0 0 30px;

    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #e9ecef;

    font-size: 12px;
    font-weight: 700;
}

.portal-horse-complete-step.active .portal-horse-complete-step-number {
    background: var(--primary-color);
    color: #fff;
}

.portal-horse-complete-step.done .portal-horse-complete-step-number {
    background: rgba(40, 167, 69, .12);
    color: #28a745;
}

.portal-horse-complete-step strong {
    display: block;

    font-size: 12px;
    font-weight: 700;
}

.portal-horse-complete-step small {
    display: block;

    margin-top: 1px;

    font-size: 10px;
}

.portal-horse-complete-step-line {
    flex: 1;

    height: 1px;

    margin: 0 12px;

    background: #ddd;
}

.portal-horse-complete-step-line.active {
    background: rgba(92, 45, 145, .35);
}


/* =====================================================
   SECTIONS
===================================================== */

.portal-horse-section {
    margin-bottom: 18px;
    padding: 20px;

    border: 1px solid #eee;
    border-radius: 16px;

    background: #fff;

    box-shadow: 0 4px 18px rgba(0, 0, 0, .035);
}

.portal-horse-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 20px;
    padding-bottom: 15px;

    border-bottom: 1px solid #eee;
}

.portal-horse-section-icon {
    flex: 0 0 46px;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: rgba(92, 45, 145, .08);

    color: var(--primary-color);

    font-size: 18px;
}

.portal-horse-section-heading h5 {
    margin: 0 0 3px;

    font-size: 16px;
    font-weight: 700;
}

.portal-horse-section-heading p {
    margin: 0;

    color: #888;

    font-size: 12px;
    line-height: 1.6;
}


/* LANGUAGE */

.portal-horse-language-label {
    margin-bottom: 10px;
}

.portal-horse-language-label span {
    display: inline-flex;
    align-items: center;

    min-height: 26px;

    padding: 3px 10px;

    border-radius: 20px;

    background: #f4f4f6;

    color: #777;

    font-size: 11px;
    font-weight: 600;
}


/* FORM */

.portal-horse-complete-form .form-group {
    margin-bottom: 18px;
}

.portal-horse-complete-form label {
    display: block;

    margin-bottom: 7px;

    font-size: 12px;
    font-weight: 600;
}

.portal-horse-complete-form .form-control {
    min-height: 48px;

    border-radius: 9px;

    font-size: 14px;
}

.portal-horse-complete-form .input-group-text {
    min-width: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px 0 0 9px;

    background: #f8f9fa;

    color: #888;
}


/* =====================================================
   SWITCH
===================================================== */

.portal-horse-switch-row {
    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 8px 12px;

    border: 1px solid #ddd;
    border-radius: 9px;

    background: #fff;
}

.portal-horse-switch-row strong,
.portal-horse-switch-row small {
    display: block;
}

.portal-horse-switch-row strong {
    font-size: 12px;
}

.portal-horse-switch-row small {
    margin-top: 2px;

    color: #999;

    font-size: 10px;
}


/* =====================================================
   DATE
===================================================== */

.portal-horse-date-label {
    margin-bottom: 10px !important;

    color: #777;

    font-size: 12px !important;
}

.portal-horse-serial-readonly {
    position: relative;
}

.portal-horse-serial-readonly > i {
    position: absolute;

    top: 50%;
    right: 13px;

    z-index: 2;

    transform: translateY(-50%);

    color: #999;
}

.portal-horse-serial-readonly .form-control {
    padding-right: 38px;

    background: #f8f9fa;
}


/* =====================================================
   ACTIONS
===================================================== */

.portal-horse-complete-actions {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 16px;

    border: 1px solid #eee;
    border-radius: 14px;

    background: #fff;

    box-shadow: 0 4px 18px rgba(0,0,0,.035);
}

.portal-horse-save-btn {
    min-width: 180px;
    min-height: 50px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    border-radius: 10px;

    font-weight: 600;
}

.portal-horse-back-btn {
    min-height: 50px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    border-radius: 10px;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 575.98px) {

    .portal-horse-complete-page {
        padding-right: 12px;
        padding-left: 12px;
    }

    .portal-horse-complete-hero {
        gap: 12px;
        padding: 13px;

        border-radius: 14px;
    }

    .portal-horse-complete-logo {
        flex-basis: 58px;

        width: 58px;
        height: 58px;
    }

    .portal-horse-complete-hero-info h3 {
        font-size: 16px;
    }

    .portal-horse-section {
        padding: 15px 13px;

        border-radius: 14px;
    }

    .portal-horse-complete-step small {
        display: none;
    }

    .portal-horse-section-heading {
        margin-bottom: 16px;
    }

    .portal-horse-complete-actions {
        flex-direction: column;

        padding: 12px;
    }

    .portal-horse-save-btn,
    .portal-horse-back-btn {
        width: 100%;
    }
}


/* =====================================================
   HORSE DOCUMENT
===================================================== */

.portal-horse-document-page {
    max-width: 760px;
    margin: 0 auto;
    padding-bottom: 110px;
}


/* HERO */

.portal-horse-document-hero {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 18px;
    padding: 16px;

    border: 1px solid #eee;
    border-radius: 16px;

    background: #fff;

    box-shadow: 0 4px 18px rgba(0, 0, 0, .035);
}

.portal-horse-document-hero-icon {
    flex: 0 0 54px;

    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: rgba(92, 45, 145, .08);
    color: var(--primary-color);

    font-size: 20px;
}

.portal-horse-document-hero-info {
    flex: 1;
    min-width: 0;
}

.portal-horse-document-hero-info > span {
    display: block;

    margin-bottom: 3px;

    color: var(--primary-color);

    font-size: 11px;
    font-weight: 600;
}

.portal-horse-document-hero-info h3 {
    margin: 0 0 4px;

    font-size: 18px;
    font-weight: 700;
}

.portal-horse-document-hero-info p {
    margin: 0;

    color: #888;

    font-size: 12px;
    line-height: 1.7;
}


/* CARD */

.portal-horse-document-card {
    padding: 20px;

    border: 1px solid #eee;
    border-radius: 16px;

    background: #fff;

    box-shadow: 0 4px 18px rgba(0, 0, 0, .035);
}


/* HEADING */

.portal-horse-document-heading {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 18px;
    padding-bottom: 16px;

    border-bottom: 1px solid #eee;
}

.portal-horse-document-icon {
    flex: 0 0 46px;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: rgba(92, 45, 145, .08);
    color: var(--primary-color);

    font-size: 18px;
}

.portal-horse-document-heading h5 {
    margin: 0 0 3px;

    font-size: 16px;
    font-weight: 700;
}

.portal-horse-document-heading p {
    margin: 0;

    color: #888;

    font-size: 12px;
}


/* CURRENT DOCUMENT */

.portal-horse-document-current {
    margin-bottom: 18px;
    padding: 12px;

    border: 1px solid rgba(40, 167, 69, .18);
    border-radius: 12px;

    background: rgba(40, 167, 69, .035);
}

.portal-horse-document-current-title {
    display: flex;
    align-items: center;
    gap: 9px;
}

.portal-horse-document-current-title > i {
    color: #28a745;
}

.portal-horse-document-current-title strong,
.portal-horse-document-current-title small {
    display: block;
}

.portal-horse-document-current-title strong {
    font-size: 12px;
}

.portal-horse-document-current-title small {
    margin-top: 2px;

    color: #888;

    font-size: 10px;
}

.portal-horse-document-existing {
    margin-top: 10px;

    text-align: center;
}


/* UPLOAD */

.portal-horse-document-upload {
    width: 100%;
}

.portal-horse-document-upload .upload-container {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 16px !important;

    border: 1px solid #e5e5e5;
    border-radius: 13px;

    background: #fafafa;

    text-align: center;

    box-shadow: none !important;
}

.portal-horse-document-upload .upload-container h2 {
    margin: 0 0 14px !important;

    font-size: 16px !important;
    font-weight: 700;
}

.portal-horse-document-upload #uploadForm,
.portal-horse-document-upload #uploadfile,
.portal-horse-document-upload #uploadStatus {
    width: 100% !important;
    max-width: 100% !important;
}

.portal-horse-document-upload #uploadfile {
    min-height: 48px;

    border-radius: 10px;
}


/* SAVE */

.portal-horse-document-save {
    margin-top: 16px;
    padding-top: 16px;

    border-top: 1px solid #eee;
}

.portal-horse-document-save-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    margin-bottom: 10px;

    color: #27843c;

    font-size: 12px;
    font-weight: 600;
}

.portal-horse-document-save-status i {
    font-size: 16px;
}

.portal-horse-document-save-btn {
    min-height: 50px;

    border-radius: 10px;

    font-weight: 600;
}


/* MOBILE */

@media (max-width: 575.98px) {

    .portal-horse-document-page {
        padding-right: 12px;
        padding-left: 12px;
    }

    .portal-horse-document-hero {
        gap: 11px;
        padding: 13px;

        border-radius: 14px;
    }

    .portal-horse-document-hero-icon {
        flex-basis: 48px;

        width: 48px;
        height: 48px;
    }

    .portal-horse-document-hero-info h3 {
        font-size: 16px;
    }

    .portal-horse-document-card {
        padding: 15px 13px;

        border-radius: 14px;
    }

    .portal-horse-document-upload .upload-container {
        padding: 13px 10px !important;
    }
}



/* =====================================================
   HORSES PAGE
===================================================== */

.portal-horses-page {
    max-width: 1150px;
    margin: 0 auto;
    padding-bottom: 110px;
}


/* HEADER */

.portal-horses-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    margin-bottom: 16px;
    padding: 16px;

    border: 1px solid #eee;
    border-radius: 16px;

    background: #fff;
    box-shadow: 0 4px 18px rgba(0,0,0,.035);
}

.portal-horses-eyebrow {
    display: block;

    margin-bottom: 3px;

    color: var(--primary-color);

    font-size: 11px;
    font-weight: 600;
}

.portal-horses-header h3 {
    margin: 0 0 4px;

    font-size: 20px;
    font-weight: 700;
}

.portal-horses-header p {
    margin: 0;

    color: #888;

    font-size: 12px;
}

.portal-horses-count {
    flex: 0 0 auto;

    min-width: 78px;

    padding: 8px 12px;

    border-radius: 12px;

    background: rgba(92,45,145,.07);

    text-align: center;
}

.portal-horses-count strong,
.portal-horses-count span {
    display: block;
}

.portal-horses-count strong {
    color: var(--primary-color);

    font-size: 20px;
}

.portal-horses-count span {
    margin-top: 1px;

    color: #888;

    font-size: 9px;
}


/* =====================================================
   FILTERS
===================================================== */

.portal-horses-filter-card {
    margin-bottom: 14px;
    padding: 14px;

    border: 1px solid #eee;
    border-radius: 14px;

    background: #fff;
}

.portal-horses-filter-heading {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 12px;
}

.portal-horses-filter-heading > i {
    color: var(--primary-color);
}

.portal-horses-filter-heading strong,
.portal-horses-filter-heading small {
    display: block;
}

.portal-horses-filter-heading strong {
    font-size: 13px;
}

.portal-horses-filter-heading small {
    margin-top: 1px;

    color: #999;

    font-size: 10px;
}

.portal-horses-filter-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.portal-horses-filter-field label {
    display: block;

    margin-bottom: 5px;

    color: #777;

    font-size: 10px;
}

.portal-horses-filter-field .form-control {
    min-height: 44px;

    border-radius: 9px;

    font-size: 13px;
}


/* =====================================================
   STATUS TABS
===================================================== */

.portal-horse-status-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;

    margin-bottom: 18px;
}

.portal-horse-status-tab {
    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 8px 10px;

    border: 1px solid #e7e7e7;
    border-radius: 11px;

    background: #fff;
    color: #777;

    font-size: 11px;
    font-weight: 600;

    text-decoration: none !important;
}

.portal-horse-status-tab strong {
    min-width: 20px;

    padding: 1px 5px;

    border-radius: 10px;

    background: #f3f3f3;

    text-align: center;

    font-size: 10px;
}

.portal-horse-status-tab.success.active {
    border-color: rgba(40,167,69,.35);

    background: rgba(40,167,69,.07);
    color: #27843c;
}

.portal-horse-status-tab.warning.active {
    border-color: rgba(255,193,7,.4);

    background: rgba(255,193,7,.08);
    color: #8a6d00;
}

.portal-horse-status-tab.danger.active {
    border-color: rgba(220,53,69,.3);

    background: rgba(220,53,69,.06);
    color: #b22b39;
}

.portal-horse-status-tab.info {
    color: #168096;
}

.portal-horse-status-arrow {
    font-size: 8px;
}


/* =====================================================
   HORSE CARD
===================================================== */

.portal-horse-card {
    height: 100%;

    padding: 16px;

    border: 1px solid #eee;
    border-radius: 16px;

    background: #fff;

    box-shadow: 0 4px 18px rgba(0,0,0,.035);
}

.portal-horse-card.status-1 {
    border-top: 3px solid #28a745;
}

.portal-horse-card.status-2 {
    border-top: 3px solid #ffc107;
}

.portal-horse-card.status-0,
.portal-horse-card.status-3 {
    border-top: 3px solid #dc3545;
}


/* CARD HEADER */

.portal-horse-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;

    margin-bottom: 14px;
}

.portal-horse-main {
    display: flex;
    align-items: center;
    gap: 10px;

    min-width: 0;
}

.portal-horse-main-icon {
    flex: 0 0 46px;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: rgba(92,45,145,.08);
    color: var(--primary-color);

    font-size: 18px;
}

.portal-horse-main-info {
    min-width: 0;
}

.portal-horse-id {
    display: block;

    color: #aaa;

    font-size: 9px;
}

.portal-horse-main-info h4 {
    margin: 1px 0 4px;

    overflow: hidden;

    font-size: 16px;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-horse-midan {
    display: flex;
    align-items: center;
    gap: 4px;

    color: #888;

    font-size: 10px;
}

.portal-horse-card-status {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    gap: 6px;
}

.portal-horse-view-btn {
    width: 34px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid #ddd;
    border-radius: 9px;

    background: #fff;
    color: var(--primary-color);

    cursor: pointer;
}


/* =====================================================
   REQUIRED ACTION
===================================================== */

.portal-horse-action-required {
    margin-bottom: 14px;
    padding: 11px;

    border-radius: 11px;
}

.portal-horse-action-required.warning {
    background: rgba(255,193,7,.08);
}

.portal-horse-action-required.danger {
    background: rgba(220,53,69,.06);
}

.portal-horse-action-required-text {
    display: flex;
    align-items: flex-start;
    gap: 8px;

    margin-bottom: 9px;
}

.portal-horse-action-required-text strong,
.portal-horse-action-required-text small {
    display: block;
}

.portal-horse-action-required-text strong {
    font-size: 12px;
}

.portal-horse-action-required-text small {
    margin-top: 2px;

    color: #777;

    font-size: 10px;
}

.portal-horse-action-required .btn {
    width: 100%;

    min-height: 40px;

    border-radius: 8px;

    font-size: 11px;
    font-weight: 600;
}


/* REVIEW */

.portal-horse-review-state {
    display: flex;
    align-items: flex-start;
    gap: 8px;

    margin-bottom: 14px;
    padding: 10px;

    border-radius: 10px;

    background: rgba(255,193,7,.07);

    color: #856b13;
}

.portal-horse-review-state strong,
.portal-horse-review-state small {
    display: block;
}

.portal-horse-review-state strong {
    font-size: 11px;
}

.portal-horse-review-state small {
    margin-top: 1px;

    color: #8c856e;

    font-size: 9px;
}


/* =====================================================
   DETAILS
===================================================== */

.portal-horse-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;

    margin-bottom: 14px;
}

.portal-horse-detail {
    padding: 8px;

    border-radius: 9px;

    background: #f8f9fa;
}

.portal-horse-detail span,
.portal-horse-detail strong {
    display: block;
}

.portal-horse-detail span {
    margin-bottom: 2px;

    color: #999;

    font-size: 9px;
}

.portal-horse-detail strong {
    overflow: hidden;

    color: #444;

    font-size: 11px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =====================================================
   BLOCKS
===================================================== */

.portal-horse-block {
    margin-top: 12px;
    padding-top: 12px;

    border-top: 1px solid #eee;
}

.portal-horse-block-title {
    display: flex;
    align-items: center;
    gap: 6px;

    margin-bottom: 8px;

    color: #888;

    font-size: 10px;
}


/* TRAINER */

.portal-horse-trainer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    padding: 10px;

    border-radius: 10px;

    text-decoration: none !important;
}

.portal-horse-trainer small,
.portal-horse-trainer strong {
    display: block;
}

.portal-horse-trainer small {
    font-size: 9px;
}

.portal-horse-trainer strong {
    margin-top: 2px;

    font-size: 11px;
}

.portal-horse-trainer.success {
    background: rgba(40,167,69,.07);
    color: #27843c;
}

.portal-horse-trainer.pending {
    background: rgba(255,193,7,.08);
    color: #866c12;
}

.portal-horse-trainer.action {
    background: rgba(23,162,184,.08);
    color: #177d90;
}

.portal-horse-trainer.disabled {
    background: #f8f9fa;
    color: #999;
}


/* =====================================================
   PAYMENT
===================================================== */

.portal-horse-payment {
    margin-top: 12px;
    padding: 12px;

    border: 1px solid rgba(92,45,145,.12);
    border-radius: 11px;

    background: rgba(92,45,145,.025);
}

.portal-horse-payment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.portal-horse-payment-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.portal-horse-payment-title > i {
    color: var(--primary-color);

    font-size: 17px;
}

.portal-horse-payment-title small,
.portal-horse-payment-title strong {
    display: block;
}

.portal-horse-payment-title small {
    color: #888;

    font-size: 9px;
}

.portal-horse-payment-title strong {
    margin-top: 1px;

    font-size: 16px;
}

.portal-horse-paid-badge,
.portal-horse-unpaid-badge {
    padding: 4px 9px;

    border-radius: 15px;

    font-size: 9px;
    font-weight: 700;
}

.portal-horse-paid-badge {
    background: rgba(40,167,69,.1);
    color: #27843c;
}

.portal-horse-unpaid-badge {
    background: rgba(220,53,69,.09);
    color: #b22b39;
}

.portal-horse-payment-breakdown {
    display: flex;
    gap: 12px;

    margin-top: 8px;

    color: #999;

    font-size: 9px;
}

.portal-horse-pay-btn {
    min-height: 43px;

    margin-top: 10px;

    border-radius: 9px;

    font-size: 11px;
    font-weight: 600;
}


/* =====================================================
   EMPTY
===================================================== */

.portal-horses-empty {
    padding: 35px 15px;

    border: 1px solid #eee;
    border-radius: 16px;

    background: #fff;

    text-align: center;
}

.portal-horses-empty-icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 12px;

    border-radius: 50%;

    background: rgba(92,45,145,.07);
    color: var(--primary-color);

    font-size: 22px;
}

.portal-horses-empty h5 {
    margin-bottom: 4px;

    font-size: 15px;
}

.portal-horses-empty p {
    margin: 0;

    color: #999;

    font-size: 11px;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 575.98px) {

    .portal-horses-page {
        padding-right: 12px;
        padding-left: 12px;
    }

    .portal-horses-header {
        padding: 13px;

        border-radius: 14px;
    }

    .portal-horses-header h3 {
        font-size: 17px;
    }

    .portal-horses-header p {
        font-size: 10px;
    }

    .portal-horses-count {
        min-width: 65px;

        padding: 7px;
    }

    .portal-horses-count strong {
        font-size: 17px;
    }


    /* FILTERS */

    .portal-horses-filter-form {
        grid-template-columns: 1fr 1fr;
    }


    /* STATUS */

    .portal-horse-status-tabs {
        grid-template-columns: repeat(2, 1fr);
    }

    .portal-horse-status-tab {
        min-height: 48px;

        font-size: 10px;
    }


    /* CARD */

    .portal-horse-card {
        padding: 13px;

        border-radius: 14px;
    }

    .portal-horse-main-icon {
        flex-basis: 42px;

        width: 42px;
        height: 42px;
    }

    .portal-horse-main-info h4 {
        font-size: 14px;
    }


    /* DETAILS */

    .portal-horse-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    /* PAYMENT */

    .portal-horse-payment-title strong {
        font-size: 14px;
    }
}

.portal-horses-main-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;

    margin-bottom: 14px;
    padding: 5px;

    border: 1px solid #eee;
    border-radius: 13px;

    background: #f7f7f8;
}

.portal-horses-main-nav-item {
    min-height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 8px 12px;

    border-radius: 9px;

    color: #777;

    font-size: 12px;
    font-weight: 600;

    text-decoration: none !important;
}

.portal-horses-main-nav-item.active {
    background: #fff;
    color: var(--primary-color);

    box-shadow: 0 2px 9px rgba(0,0,0,.06);
}

.portal-horses-main-nav-item i {
    font-size: 13px;
}













/* =====================================================
   HORSE DETAILS MODAL
===================================================== */

#horseDetailsModal {
    z-index: 1055;
}

#horseDetailsModal .modal-dialog {
    max-width: 760px;
    margin: 20px auto;
}

#horseDetailsModal .modal-content {
    width: 100%;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

#horseDetailsModal .modal-body {
    width: 100%;
    max-height: calc(100vh - 150px);
    padding: 14px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#horseDetailsContent,
#horseDetailsContent .portal-horse-details-modal {
    width: 100%;
    max-width: 100%;
    margin: 0;
}


/* HEADER */

.portal-horse-details-header {
    display: flex;
    align-items: center;
    gap: 14px;

    width: 100%;
    margin-bottom: 12px;
    padding: 14px;

    border: 1px solid #eee;
    border-radius: 14px;

    background: #fff;
}

.portal-horse-details-photo {
    flex: 0 0 76px;
    width: 76px;
    height: 76px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border: 1px solid #eee;
    border-radius: 14px;

    background: #f8f9fa;
}

.portal-horse-details-photo img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;

    object-fit: cover;
}

.portal-horse-details-title {
    flex: 1;
    min-width: 0;
}

.portal-horse-details-label {
    display: block;
    margin-bottom: 3px;

    color: var(--primary-color);

    font-size: 10px;
    font-weight: 600;
}

.portal-horse-details-title h4 {
    margin: 0;

    font-size: 18px;
    font-weight: 700;
}

.portal-horse-details-name-en {
    display: block;
    margin-top: 4px;

    color: #888;

    font-size: 11px;
}


/* SECTIONS */

.portal-horse-details-section {
    width: 100%;

    margin-bottom: 12px;
    padding: 13px;

    border: 1px solid #eee;
    border-radius: 13px;

    background: #fff;
}

.portal-horse-details-section-title {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 12px;
    padding-bottom: 10px;

    border-bottom: 1px solid #f0f0f0;
}

.portal-horse-details-section-title > i {
    flex: 0 0 32px;

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: rgba(92, 45, 145, .08);
    color: var(--primary-color);

    font-size: 13px;
}

.portal-horse-details-section-title strong,
.portal-horse-details-section-title small {
    display: block;
}

.portal-horse-details-section-title strong {
    font-size: 12px;
    font-weight: 700;
}

.portal-horse-details-section-title small {
    margin-top: 1px;

    color: #999;

    font-size: 9px;
}


/* GRID */

.portal-horse-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;

    width: 100%;
    margin-bottom: 0;
}

.portal-horse-details-item {
    min-width: 0;
    padding: 9px 10px;

    border-radius: 9px;

    background: #f8f9fa;
}

.portal-horse-details-item span,
.portal-horse-details-item strong {
    display: block;
}

.portal-horse-details-item span {
    margin-bottom: 3px;

    color: #999;

    font-size: 9px;
}

.portal-horse-details-item strong {
    color: #444;

    font-size: 11px;
    font-weight: 600;

    overflow-wrap: anywhere;
}

.portal-horse-details-item-wide {
    grid-column: 1 / -1;
}


/* PEDIGREE */

.portal-horse-pedigree {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;

    width: 100%;
}

.portal-horse-pedigree-item {
    display: flex;
    align-items: center;
    gap: 8px;

    min-width: 0;
    padding: 10px;

    border-radius: 10px;

    background: #f8f9fa;
}

.portal-horse-pedigree-icon {
    flex: 0 0 34px;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #fff;
    color: var(--primary-color);
}

.portal-horse-pedigree-item span,
.portal-horse-pedigree-item strong {
    display: block;
}

.portal-horse-pedigree-item span {
    color: #999;
    font-size: 9px;
}

.portal-horse-pedigree-item strong {
    margin-top: 2px;

    font-size: 11px;
}


/* ACTION */

.portal-horse-details-actions {
    width: 100%;
    margin-top: 4px;
}

.portal-horse-participations-btn {
    width: 100%;
    min-height: 64px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 10px 12px;

    border: 1px solid rgba(92,45,145,.15);
    border-radius: 12px;

    background: rgba(92,45,145,.045);
    color: var(--text-color);

    text-decoration: none !important;
}

.portal-horse-participations-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.portal-horse-participations-icon {
    flex: 0 0 40px;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: rgba(92,45,145,.10);
    color: var(--primary-color);

    font-size: 15px;
}

.portal-horse-participations-main strong,
.portal-horse-participations-main small {
    display: block;
}

.portal-horse-participations-main strong {
    font-size: 12px;
    font-weight: 700;
}

.portal-horse-participations-main small {
    margin-top: 2px;

    color: #888;

    font-size: 9px;
}

.portal-horse-participations-arrow {
    color: var(--primary-color);
    font-size: 11px;
}





/* MOBILE */

@media (max-width: 575.98px) {

    #horseDetailsModal .modal-dialog {
        max-width: none;
        margin: 8px;
    }

    #horseDetailsModal .modal-body {
        max-height: calc(100vh - 110px);
        padding: 10px;
    }

    .portal-horse-details-header {
        gap: 11px;
        padding: 11px;
    }

    .portal-horse-details-photo {
        flex-basis: 62px;
        width: 62px;
        height: 62px;
    }

    .portal-horse-details-title h4 {
        font-size: 16px;
    }

    .portal-horse-details-section {
        padding: 11px;
    }

    .portal-horse-pedigree {
        grid-template-columns: 1fr;
    }

}
body.identity-portal #horseDetailsModal .modal-header {
    background: #fff !important;
    color: var(--text-color) !important;

    border-bottom: 1px solid #eee;
    border-radius: 16px 16px 0 0;
}

body.identity-portal #horseDetailsModal .modal-title,
body.identity-portal #horseDetailsModal .modal-header i,
body.identity-portal #horseDetailsModal .modal-header .close {
    color: var(--text-color) !important;
}

body.identity-portal #horseDetailsModal .modal-header .close {
    opacity: .65;
}




/* =====================================================
   HORSE PARTICIPATIONS PAGE
===================================================== */

.portal-horse-participations-page {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 110px;
}


/* =====================================================
   HERO
===================================================== */

.portal-horse-participations-hero {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 18px;
    padding: 16px;

    border: 1px solid #eee;
    border-radius: 16px;

    background: #fff;

    box-shadow: 0 4px 18px rgba(0, 0, 0, .035);
}

.portal-horse-participations-logo {
    flex: 0 0 64px;

    width: 64px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-horse-participations-logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.portal-horse-participations-hero-info {
    flex: 1;
    min-width: 0;
}

.portal-horse-participations-eyebrow {
    display: block;

    margin-bottom: 3px;

    color: var(--primary-color);

    font-size: 11px;
    font-weight: 600;
}

.portal-horse-participations-hero-info h3 {
    margin: 0 0 4px;

    font-size: 18px;
    font-weight: 700;
}

.portal-horse-participations-hero-info p {
    margin: 0;

    color: #888;

    font-size: 11px;
    line-height: 1.6;
}

.portal-horse-participations-count {
    flex: 0 0 auto;

    min-width: 65px;

    padding: 7px 10px;

    border-radius: 11px;

    background: rgba(92, 45, 145, .07);

    text-align: center;
}

.portal-horse-participations-count strong,
.portal-horse-participations-count span {
    display: block;
}

.portal-horse-participations-count strong {
    color: var(--primary-color);

    font-size: 18px;
}

.portal-horse-participations-count span {
    color: #888;

    font-size: 9px;
}


/* =====================================================
   LIST
===================================================== */

.portal-horse-participations-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


/* =====================================================
   CARD
===================================================== */

.portal-horse-participation-card {
    padding: 14px;

    border: 1px solid #eee;
    border-radius: 14px;

    background: #fff;

    box-shadow: 0 4px 16px rgba(0,0,0,.03);
}


/* HEADER */

.portal-horse-participation-card-header {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 12px;
}

.portal-horse-participation-number {
    flex: 0 0 34px;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: rgba(92,45,145,.07);
    color: var(--primary-color);

    font-size: 11px;
    font-weight: 700;
}

.portal-horse-participation-title {
    flex: 1;
    min-width: 0;
}

.portal-horse-participation-title span {
    display: block;

    overflow: hidden;

    color: #888;

    font-size: 10px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-horse-participation-title h5 {
    margin: 2px 0 0;

    font-size: 14px;
    font-weight: 700;
}


/* RESULT */

.portal-horse-participation-result {
    flex: 0 0 auto;

    min-width: 72px;

    padding: 6px 8px;

    border-radius: 10px;

    text-align: center;
}

.portal-horse-participation-result span,
.portal-horse-participation-result small {
    display: block;
}

.portal-horse-participation-result span {
    font-size: 18px;
}

.portal-horse-participation-result small {
    margin-top: 1px;

    font-size: 8px;
}

.portal-horse-participation-result.first {
    background: rgba(255,193,7,.12);
}

.portal-horse-participation-result.second {
    background: rgba(108,117,125,.09);
}

.portal-horse-participation-result.third {
    background: rgba(181,101,29,.09);
}

.portal-horse-participation-result.normal,
.portal-horse-participation-result.none {
    background: #f8f9fa;
}


/* =====================================================
   META
===================================================== */

.portal-horse-participation-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;

    margin-bottom: 8px;
}

.portal-horse-participation-meta > div {
    display: flex;
    align-items: center;
    gap: 6px;

    min-width: 0;
    padding: 8px 9px;

    border-radius: 9px;

    background: #f8f9fa;
}

.portal-horse-participation-meta i {
    flex: 0 0 auto;

    color: var(--primary-color);

    font-size: 10px;
}

.portal-horse-participation-meta span {
    overflow: hidden;

    color: #666;

    font-size: 10px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =====================================================
   PEOPLE
===================================================== */

.portal-horse-participation-people {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.portal-horse-participation-person {
    min-width: 0;

    padding: 9px;

    border-radius: 9px;

    background: #fafafa;
}

.portal-horse-participation-person span,
.portal-horse-participation-person strong {
    display: block;
}

.portal-horse-participation-person span {
    margin-bottom: 2px;

    color: #999;

    font-size: 9px;
}

.portal-horse-participation-person strong {
    overflow: hidden;

    color: #444;

    font-size: 11px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =====================================================
   EMPTY
===================================================== */

.portal-horse-participations-empty {
    padding: 35px 15px;

    border: 1px solid #eee;
    border-radius: 16px;

    background: #fff;

    text-align: center;
}

.portal-horse-participations-empty-icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 12px;

    border-radius: 50%;

    background: rgba(92,45,145,.07);
    color: var(--primary-color);

    font-size: 21px;
}

.portal-horse-participations-empty h5 {
    margin-bottom: 4px;

    font-size: 14px;
}

.portal-horse-participations-empty p {
    margin: 0;

    color: #999;

    font-size: 10px;
}


/* =====================================================
   ACTIONS
===================================================== */

.portal-horse-participations-actions {
    margin-top: 18px;
}

.portal-horse-participations-back {
    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 10px 14px;

    border: 1px solid #e5e5e5;
    border-radius: 10px;

    background: #fff;
    color: #555;

    font-size: 12px;
    font-weight: 600;

    text-decoration: none !important;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 575.98px) {

    .portal-horse-participations-page {
        padding-right: 12px;
        padding-left: 12px;
    }

    .portal-horse-participations-hero {
        gap: 10px;
        padding: 12px;

        border-radius: 14px;
    }

    .portal-horse-participations-logo {
        flex-basis: 54px;

        width: 54px;
        height: 54px;
    }

    .portal-horse-participations-hero-info h3 {
        font-size: 15px;
    }

    .portal-horse-participations-hero-info p {
        display: none;
    }

    .portal-horse-participations-count {
        min-width: 55px;
    }

    .portal-horse-participation-card {
        padding: 12px;
    }

    .portal-horse-participation-result {
        min-width: 62px;
    }

}


/* =====================================================
   TRAINER DELEGATION
===================================================== */

.portal-trainer-delegation-page {
    max-width: 760px;
    margin: 0 auto;
    padding-bottom: 110px;
}


/* HERO */

.portal-trainer-delegation-hero {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 18px;
    padding: 16px;

    border: 1px solid #eee;
    border-radius: 16px;

    background: #fff;

    box-shadow: 0 4px 18px rgba(0,0,0,.035);
}

.portal-trainer-delegation-logo {
    flex: 0 0 64px;

    width: 64px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-trainer-delegation-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.portal-trainer-delegation-hero-info {
    flex: 1;
    min-width: 0;
}

.portal-trainer-delegation-eyebrow {
    display: block;

    margin-bottom: 3px;

    color: var(--primary-color);

    font-size: 11px;
    font-weight: 600;
}

.portal-trainer-delegation-hero-info h3 {
    margin: 0 0 4px;

    font-size: 18px;
    font-weight: 700;
}

.portal-trainer-delegation-hero-info p {
    margin: 0;

    color: #888;

    font-size: 11px;
    line-height: 1.7;
}


/* CARD */

.portal-trainer-delegation-card {
    padding: 20px;

    border: 1px solid #eee;
    border-radius: 16px;

    background: #fff;

    box-shadow: 0 4px 18px rgba(0,0,0,.035);
}


/* HEADING */

.portal-trainer-delegation-heading {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 20px;
    padding-bottom: 16px;

    border-bottom: 1px solid #eee;
}

.portal-trainer-delegation-heading-icon {
    flex: 0 0 46px;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: rgba(92,45,145,.08);
    color: var(--primary-color);

    font-size: 18px;
}

.portal-trainer-delegation-heading h5 {
    margin: 0 0 3px;

    font-size: 16px;
    font-weight: 700;
}

.portal-trainer-delegation-heading p {
    margin: 0;

    color: #888;

    font-size: 11px;
}


/* FORM */

.portal-trainer-delegation-form label {
    display: block;

    margin-bottom: 7px;

    font-size: 12px;
    font-weight: 600;
}

.portal-trainer-select-wrap {
    position: relative;
}

.portal-trainer-select-wrap > i {
    position: absolute;

    top: 50%;
    right: 13px;

    z-index: 5;

    transform: translateY(-50%);

    color: var(--primary-color);

    pointer-events: none;
}

.portal-trainer-select-wrap .select2-container {
    width: 100% !important;
}

.portal-trainer-select-wrap .select2-selection {
    min-height: 50px;

    border: 1px solid #ddd !important;
    border-radius: 10px !important;
}

.portal-trainer-select-wrap .select2-selection__rendered {
    line-height: 48px !important;
    padding-right: 40px !important;
}

.portal-trainer-select-wrap .select2-selection__arrow {
    height: 48px !important;
}


/* INFO */

.portal-trainer-delegation-info {
    display: flex;
    align-items: flex-start;
    gap: 9px;

    margin: 16px 0;
    padding: 11px;

    border-radius: 10px;

    background: rgba(23,162,184,.06);
}

.portal-trainer-delegation-info > i {
    margin-top: 3px;

    color: #178399;
}

.portal-trainer-delegation-info strong,
.portal-trainer-delegation-info span {
    display: block;
}

.portal-trainer-delegation-info strong {
    font-size: 11px;
}

.portal-trainer-delegation-info span {
    margin-top: 2px;

    color: #777;

    font-size: 10px;
    line-height: 1.7;
}


/* DELEGATE */

.portal-trainer-delegate-btn {
    width: 100%;
    min-height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    border-radius: 10px;

    font-size: 12px;
    font-weight: 600;
}


/* SELF TRAINER */

.portal-trainer-self-register {
    margin-top: 16px;
    padding: 12px;

    border: 1px solid rgba(40,167,69,.15);
    border-radius: 11px;

    background: rgba(40,167,69,.035);
}

.portal-trainer-self-register-text {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 10px;
}

.portal-trainer-self-register-icon {
    flex: 0 0 38px;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: rgba(40,167,69,.10);
    color: #27843c;
}

.portal-trainer-self-register-text strong,
.portal-trainer-self-register-text small {
    display: block;
}

.portal-trainer-self-register-text strong {
    font-size: 11px;
}

.portal-trainer-self-register-text small {
    margin-top: 2px;

    color: #777;

    font-size: 9px;
}

.portal-trainer-self-register-btn {
    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 8px 11px;

    border-radius: 9px;

    background: #fff;
    color: #27843c;

    font-size: 11px;
    font-weight: 600;

    text-decoration: none !important;
}


/* CURRENT STATUS */

.portal-trainer-current-status {
    display: flex;
    align-items: center;
    gap: 13px;

    padding: 18px;

    border-radius: 13px;
}

.portal-trainer-current-status.success {
    background: rgba(40,167,69,.07);
}

.portal-trainer-current-status.pending {
    background: rgba(255,193,7,.09);
}

.portal-trainer-current-status-icon {
    flex: 0 0 50px;

    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 18px;
}

.portal-trainer-current-status.success .portal-trainer-current-status-icon {
    background: rgba(40,167,69,.13);
    color: #27843c;
}

.portal-trainer-current-status.pending .portal-trainer-current-status-icon {
    background: rgba(255,193,7,.17);
    color: #987800;
}

.portal-trainer-current-status-info span {
    display: block;

    margin-bottom: 2px;

    color: #888;

    font-size: 9px;
}

.portal-trainer-current-status-info h4 {
    margin: 0 0 3px;

    font-size: 16px;
    font-weight: 700;
}

.portal-trainer-current-status-info p {
    margin: 0;

    color: #777;

    font-size: 10px;
}


/* ACTIONS */

.portal-trainer-delegation-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;

    margin-top: 16px;
}

.portal-trainer-back-list,
.portal-trainer-cancel {
    min-height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 9px;

    border-radius: 9px;

    font-size: 11px;
    font-weight: 600;

    text-decoration: none !important;
}

.portal-trainer-back-list {
    border: 1px solid #e5e5e5;

    background: #fff;
    color: #555;
}

.portal-trainer-cancel {
    border: 1px solid rgba(220,53,69,.18);

    background: rgba(220,53,69,.05);
    color: #b22b39;
}


/* BACK */

.portal-trainer-delegation-back {
    margin-top: 16px;
    padding-top: 14px;

    border-top: 1px solid #eee;
}

.portal-trainer-delegation-back a {
    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    color: #777;

    font-size: 11px;
    font-weight: 600;

    text-decoration: none !important;
}


/* MOBILE */

@media (max-width: 575.98px) {

    .portal-trainer-delegation-page {
        padding-right: 12px;
        padding-left: 12px;
    }

    .portal-trainer-delegation-hero {
        gap: 11px;
        padding: 13px;

        border-radius: 14px;
    }

    .portal-trainer-delegation-logo {
        flex-basis: 54px;

        width: 54px;
        height: 54px;
    }

    .portal-trainer-delegation-hero-info h3 {
        font-size: 16px;
    }

    .portal-trainer-delegation-card {
        padding: 15px 13px;

        border-radius: 14px;
    }

    .portal-trainer-delegation-actions {
        grid-template-columns: 1fr;
    }

}


/* =====================================================
   TRAINER HORSES PAGE
===================================================== */

.portal-trainer-horses-page {
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 110px;
}


/* HERO */

.portal-trainer-horses-hero {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 16px;
    padding: 16px;

    border: 1px solid #eee;
    border-radius: 16px;

    background: #fff;

    box-shadow: 0 4px 18px rgba(0,0,0,.035);
}

.portal-trainer-horses-logo {
    flex: 0 0 64px;

    width: 64px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-trainer-horses-logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.portal-trainer-horses-hero-info {
    flex: 1;
    min-width: 0;
}

.portal-trainer-horses-eyebrow {
    display: block;

    margin-bottom: 3px;

    color: var(--primary-color);

    font-size: 11px;
    font-weight: 600;
}

.portal-trainer-horses-hero-info h3 {
    margin: 0 0 4px;

    font-size: 18px;
    font-weight: 700;
}

.portal-trainer-horses-hero-info p {
    margin: 0;

    color: #888;

    font-size: 11px;
}

.portal-trainer-horses-count {
    flex: 0 0 auto;

    min-width: 65px;

    padding: 7px 10px;

    border-radius: 11px;

    background: rgba(92,45,145,.07);

    text-align: center;
}

.portal-trainer-horses-count strong,
.portal-trainer-horses-count span {
    display: block;
}

.portal-trainer-horses-count strong {
    color: var(--primary-color);

    font-size: 18px;
}

.portal-trainer-horses-count span {
    color: #888;

    font-size: 9px;
}


/* STATUS */

.portal-trainer-horses-status {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;

    margin-bottom: 18px;
}

.portal-trainer-horses-status-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 58px;
    padding: 8px;

    border: 1px solid #eee;
    border-radius: 11px;

    background: #fff;
}

.portal-trainer-horses-status-icon {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    font-size: 11px;
}

.portal-trainer-horses-status-icon.all {
    background: rgba(92,45,145,.08);
    color: var(--primary-color);
}

.portal-trainer-horses-status-icon.success {
    background: rgba(40,167,69,.10);
    color: #27843c;
}

.portal-trainer-horses-status-icon.pending {
    background: rgba(255,193,7,.13);
    color: #8a6d00;
}

.portal-trainer-horses-status-item small,
.portal-trainer-horses-status-item strong {
    display: block;
}

.portal-trainer-horses-status-item small {
    color: #999;
    font-size: 9px;
}

.portal-trainer-horses-status-item strong {
    font-size: 13px;
}


/* CARD */

.portal-trainer-horse-card {
    height: 100%;

    padding: 14px;

    border: 1px solid #eee;
    border-radius: 15px;

    background: #fff;

    box-shadow: 0 4px 16px rgba(0,0,0,.03);
}

.portal-trainer-horse-card.status-0 {
    border-top: 3px solid #ffc107;
}

.portal-trainer-horse-card.status-1 {
    border-top: 3px solid #28a745;
}


/* HEADER */

.portal-trainer-horse-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;

    margin-bottom: 12px;
}

.portal-trainer-horse-main {
    display: flex;
    align-items: center;
    gap: 10px;

    min-width: 0;
}

.portal-trainer-horse-icon {
    flex: 0 0 44px;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: rgba(92,45,145,.08);
    color: var(--primary-color);

    font-size: 17px;
}

.portal-trainer-horse-title {
    min-width: 0;
}

.portal-trainer-horse-title > span {
    display: block;

    color: #aaa;

    font-size: 9px;
}

.portal-trainer-horse-title h4 {
    margin: 1px 0 2px;

    font-size: 15px;
    font-weight: 700;
}

.portal-trainer-horse-title small {
    color: #999;

    font-size: 10px;
}


/* DETAILS */

.portal-trainer-horse-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 7px;

    margin-bottom: 12px;
}

.portal-trainer-horse-detail {
    min-width: 0;

    padding: 8px;

    border-radius: 9px;

    background: #f8f9fa;
}

.portal-trainer-horse-detail span,
.portal-trainer-horse-detail strong {
    display: block;
}

.portal-trainer-horse-detail span {
    margin-bottom: 2px;

    color: #999;

    font-size: 9px;
}

.portal-trainer-horse-detail strong {
    overflow: hidden;

    color: #444;

    font-size: 10px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* REQUEST */

.portal-trainer-horse-request {
    margin-top: 12px;
    padding-top: 12px;

    border-top: 1px solid #eee;
}

.portal-trainer-horse-request-text {
    display: flex;
    align-items: flex-start;
    gap: 8px;

    margin-bottom: 9px;
    padding: 9px;

    border-radius: 9px;

    background: rgba(255,193,7,.08);
}

.portal-trainer-horse-request-text > i {
    margin-top: 2px;

    color: #957500;
}

.portal-trainer-horse-request-text strong,
.portal-trainer-horse-request-text small {
    display: block;
}

.portal-trainer-horse-request-text strong {
    font-size: 11px;
}

.portal-trainer-horse-request-text small {
    margin-top: 2px;

    color: #777;

    font-size: 9px;
}

.portal-trainer-horse-request-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.portal-trainer-horse-accept,
.portal-trainer-horse-reject,
.portal-trainer-horse-cancel {
    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 8px;

    border-radius: 9px;

    font-size: 10px;
    font-weight: 600;

    text-decoration: none !important;
}

.portal-trainer-horse-accept {
    background: rgba(40,167,69,.10);
    color: #27843c;
}

.portal-trainer-horse-reject,
.portal-trainer-horse-cancel {
    background: rgba(220,53,69,.06);
    color: #b22b39;

    border: 1px solid rgba(220,53,69,.13);
}


/* ACTIVE */

.portal-trainer-horse-active {
    margin-top: 12px;
    padding-top: 12px;

    border-top: 1px solid #eee;
}

.portal-trainer-horse-active-state {
    display: flex;
    align-items: flex-start;
    gap: 8px;

    margin-bottom: 8px;
    padding: 9px;

    border-radius: 9px;

    background: rgba(40,167,69,.07);
}

.portal-trainer-horse-active-state > i {
    margin-top: 2px;

    color: #27843c;
}

.portal-trainer-horse-active-state strong,
.portal-trainer-horse-active-state small {
    display: block;
}

.portal-trainer-horse-active-state strong {
    font-size: 11px;
}

.portal-trainer-horse-active-state small {
    margin-top: 2px;

    color: #718273;

    font-size: 9px;
}

.portal-trainer-horse-cancel {
    width: 100%;
}


/* EMPTY */

.portal-trainer-horses-empty {
    padding: 35px 15px;

    border: 1px solid #eee;
    border-radius: 15px;

    background: #fff;

    text-align: center;
}

.portal-trainer-horses-empty-icon {
    width: 56px;
    height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 12px;

    border-radius: 50%;

    background: rgba(92,45,145,.07);
    color: var(--primary-color);

    font-size: 20px;
}

.portal-trainer-horses-empty h5 {
    margin-bottom: 4px;

    font-size: 14px;
}

.portal-trainer-horses-empty p {
    margin: 0;

    color: #999;

    font-size: 10px;
}


/* MOBILE */

@media (max-width:575.98px) {

    .portal-trainer-horses-page {
        padding-right: 12px;
        padding-left: 12px;
    }

    .portal-trainer-horses-hero {
        gap: 10px;
        padding: 12px;
    }

    .portal-trainer-horses-logo {
        flex-basis: 54px;
        width: 54px;
        height: 54px;
    }

    .portal-trainer-horses-hero-info h3 {
        font-size: 15px;
    }

    .portal-trainer-horses-hero-info p {
        display: none;
    }

    .portal-trainer-horses-status {
        grid-template-columns: repeat(3, 1fr);
    }

    .portal-trainer-horse-card {
        padding: 12px;
    }

    .portal-trainer-horse-details {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

}

/* =====================================================
   PARTY HUB
===================================================== */

.portal-party-hub-page {
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 110px;
}


/* HERO */

.portal-party-hub-hero {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 12px;
    padding: 16px;

    border: 1px solid #eee;
    border-radius: 16px;

    background: #fff;

    box-shadow: 0 4px 18px rgba(0,0,0,.035);
}

.portal-party-hub-logo {
    flex: 0 0 66px;

    width: 66px;
    height: 66px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-party-hub-logo img {
    max-width: 100%;
    max-height: 100%;

    object-fit: contain;
}

.portal-party-hub-hero-info {
    flex: 1;
    min-width: 0;
}

.portal-party-hub-eyebrow {
    display: block;

    margin-bottom: 2px;

    color: var(--primary-color);

    font-size: 10px;
    font-weight: 600;
}

.portal-party-hub-hero-info h2 {
    margin: 0 0 2px;

    font-size: 19px;
    font-weight: 800;
}

.portal-party-hub-name {
    display: block;

    color: #666;

    font-size: 11px;
    font-weight: 600;
}

.portal-party-hub-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;

    margin-top: 9px;
}

.portal-party-hub-meta span {
    display: flex;
    align-items: center;
    gap: 4px;

    padding: 4px 8px;

    border-radius: 8px;

    background: #f7f7f8;
    color: #666;

    font-size: 9px;
}

.portal-party-hub-meta i {
    color: var(--primary-color);
}

.portal-party-hub-races-count {
    flex: 0 0 auto;

    min-width: 62px;

    padding: 8px 9px;

    border-radius: 11px;

    background: rgba(92,45,145,.07);

    text-align: center;
}

.portal-party-hub-races-count strong,
.portal-party-hub-races-count span {
    display: block;
}

.portal-party-hub-races-count strong {
    color: var(--primary-color);

    font-size: 18px;
}

.portal-party-hub-races-count span {
    color: #888;

    font-size: 9px;
}


/* MAIN ACTION */

.portal-party-hub-main-action {
    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    margin-bottom: 16px;
    padding: 9px 12px;

    border: 1px solid rgba(92,45,145,.12);
    border-radius: 12px;

    background: rgba(92,45,145,.045);
    color: #444;

    text-decoration: none !important;
}

.portal-party-hub-main-action > div {
    display: flex;
    align-items: center;
    gap: 9px;
}

.portal-party-hub-main-action-icon {
    flex: 0 0 40px;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: rgba(92,45,145,.09);
    color: var(--primary-color);
}

.portal-party-hub-main-action strong,
.portal-party-hub-main-action small {
    display: block;
}

.portal-party-hub-main-action strong {
    font-size: 11px;
}

.portal-party-hub-main-action small {
    margin-top: 2px;

    color: #888;

    font-size: 9px;
}

.portal-party-hub-main-action > i {
    color: var(--primary-color);

    font-size: 10px;
}


/* RACES */

.portal-party-races {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.portal-party-race-card {
    overflow: hidden;

    border: 1px solid #eee;
    border-radius: 15px;

    background: #fff;

    box-shadow: 0 4px 16px rgba(0,0,0,.03);
}


/* RACE HEADER */

.portal-party-race-toggle {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 13px;

    color: inherit;

    text-decoration: none !important;
}

.portal-party-race-number {
    flex: 0 0 40px;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: rgba(92,45,145,.08);
    color: var(--primary-color);

    font-size: 15px;
    font-weight: 800;
}

.portal-party-race-heading {
    flex: 1;
    min-width: 0;
}

.portal-party-race-heading span {
    display: block;

    color: #999;

    font-size: 9px;
}

.portal-party-race-heading h4 {
    margin: 2px 0 0;

    overflow: hidden;

    font-size: 13px;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-party-race-stage {
    display: flex;
    align-items: center;
    gap: 8px;
}

.portal-party-race-stage .badge {
    padding: 5px 8px;

    font-size: 9px;
}

.portal-party-race-stage > i {
    color: #999;

    font-size: 9px;
}


/* REGISTRATION */

.portal-party-race-registration {
    padding: 0 13px 11px;
}

.portal-party-register-btn {
    min-height: 46px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 9px 12px;

    border-radius: 10px;

    background: rgba(40,167,69,.08);
    color: #27843c;

    font-size: 11px;
    font-weight: 700;

    text-decoration: none !important;
}

.portal-party-register-btn > div {
    display: flex;
    align-items: center;
    gap: 7px;
}

.portal-party-registration-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 42px;
    padding: 8px 10px;

    border-radius: 9px;

    font-size: 10px;
    font-weight: 600;
}

.portal-party-registration-message.info {
    background: rgba(23,162,184,.07);
    color: #167587;
}

.portal-party-registration-message.warning {
    background: rgba(255,193,7,.10);
    color: #866b00;
}

.portal-party-registration-message.danger {
    background: rgba(220,53,69,.07);
    color: #b22b39;
}

.portal-party-registration-cta {
    margin-top: 7px;
}


/* STATS */

.portal-party-race-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    gap: 5px;

    padding: 0 13px 11px;
}

.portal-party-race-stats > div {
    min-width: 0;

    padding: 7px 4px;

    border-radius: 8px;

    background: #f8f9fa;

    text-align: center;
}

.portal-party-race-stats span,
.portal-party-race-stats strong {
    display: block;
}

.portal-party-race-stats span {
    color: #999;

    font-size: 8px;
}

.portal-party-race-stats strong {
    margin-top: 1px;

    color: #444;

    font-size: 11px;
}


/* PROGRAM LINKS */

.portal-party-race-programs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 6px;

    padding: 0 13px 12px;
}

.portal-party-race-programs a {
    min-height: 39px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    padding: 7px;

    border: 1px solid #e6e6e6;
    border-radius: 9px;

    background: #fff;
    color: #555;

    font-size: 9px;
    font-weight: 600;

    text-decoration: none !important;
}

.portal-party-race-programs i {
    color: var(--primary-color);
}


/* PARTICIPANTS */

.portal-party-participants {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;

    padding: 12px 13px 13px;

    border-top: 1px solid #eee;

    background: #fafafa;
}

.portal-party-participant {
    min-width: 0;

    padding: 11px;

    border: 1px solid #eaeaea;
    border-radius: 11px;

    background: #fff;
}

.portal-party-participant-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;

    margin-bottom: 9px;
}

.portal-party-participant-horse {
    display: flex;
    align-items: center;
    gap: 8px;

    min-width: 0;

    color: #333;

    text-decoration: none !important;
}

.portal-party-participant-horse-icon {
    flex: 0 0 35px;

    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: rgba(92,45,145,.08);
    color: var(--primary-color);
}

.portal-party-participant-horse > div {
    min-width: 0;
}

.portal-party-participant-horse small,
.portal-party-participant-horse strong {
    display: block;
}

.portal-party-participant-horse small {
    color: #999;

    font-size: 8px;
}

.portal-party-participant-horse strong {
    overflow: hidden;

    font-size: 11px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-party-participant-position,
.portal-party-participant-gate {
    flex: 0 0 auto;

    padding: 5px 7px;

    border-radius: 8px;

    font-size: 8px;
    font-weight: 600;
}

.portal-party-participant-position {
    background: rgba(40,167,69,.09);
    color: #27843c;
}

.portal-party-participant-gate {
    background: rgba(23,162,184,.08);
    color: #167587;
}


/* PEOPLE */

.portal-party-participant-people {
    display: grid;
    gap: 5px;
}

.portal-party-participant-people a {
    display: grid;
    grid-template-columns: 48px minmax(0,1fr) auto;
    align-items: center;
    gap: 6px;

    min-height: 36px;
    padding: 6px 8px;

    border-radius: 8px;

    background: #f8f9fa;
    color: inherit;

    text-decoration: none !important;
}

.portal-party-participant-people span {
    color: #999;

    font-size: 8px;
}

.portal-party-participant-people strong {
    overflow: hidden;

    color: #444;

    font-size: 9px;
    font-weight: 600;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-party-participant-people i {
    color: var(--primary-color);

    font-size: 8px;
}


/* PARTICIPANT FOOTER */

.portal-party-participant-footer {
    display: flex;
    justify-content: space-around;
    gap: 6px;

    margin-top: 9px;
    padding-top: 8px;

    border-top: 1px solid #eee;

    text-align: center;
}

.portal-party-participant-footer > div {
    flex: 1;
}

.portal-party-participant-footer span,
.portal-party-participant-footer strong {
    display: block;
}

.portal-party-participant-footer span {
    color: #999;

    font-size: 8px;
}

.portal-party-participant-footer strong {
    margin-top: 1px;

    font-size: 9px;
}


/* EMPTY */

.portal-party-participants-empty,
.portal-party-races-empty {
    text-align: center;
}

.portal-party-participants-empty {
    grid-column: 1 / -1;

    padding: 25px 10px;

    color: #888;
}

.portal-party-participants-empty i {
    display: block;

    margin-bottom: 7px;

    color: #bbb;

    font-size: 20px;
}

.portal-party-participants-empty strong {
    font-size: 10px;
}

.portal-party-races-empty {
    padding: 35px 15px;

    border: 1px solid #eee;
    border-radius: 15px;

    background: #fff;
}

.portal-party-races-empty i {
    margin-bottom: 9px;

    color: var(--primary-color);

    font-size: 22px;
}

.portal-party-races-empty h5 {
    margin-bottom: 3px;

    font-size: 14px;
}

.portal-party-races-empty p {
    margin: 0;

    color: #999;

    font-size: 10px;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 575.98px) {

    .portal-party-hub-page {
        padding-right: 12px;
        padding-left: 12px;
    }

    .portal-party-hub-hero {
        gap: 10px;

        padding: 12px;
    }

    .portal-party-hub-logo {
        flex-basis: 54px;

        width: 54px;
        height: 54px;
    }

    .portal-party-hub-hero-info h2 {
        font-size: 16px;
    }

    .portal-party-hub-name {
        font-size: 10px;
    }

    .portal-party-hub-races-count {
        min-width: 54px;
    }

    .portal-party-race-stats {
        grid-template-columns: repeat(5, minmax(0,1fr));
    }

    .portal-party-race-stats > div {
        padding-right: 2px;
        padding-left: 2px;
    }

    .portal-party-participants {
        grid-template-columns: 1fr;
    }

}


/* =====================================================
   HORSE HUB
===================================================== */

.portal-horse-hub-page {
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 110px;
}


/* HERO */

.portal-horse-hub-hero {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 14px;
    padding: 16px;

    border: 1px solid #eee;
    border-radius: 16px;

    background: #fff;

    box-shadow: 0 4px 18px rgba(0,0,0,.035);
}

.portal-horse-hub-photo {
    flex: 0 0 72px;

    width: 72px;
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 14px;

    background: #f8f9fa;
}

.portal-horse-hub-photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.portal-horse-hub-hero-info {
    flex: 1;
    min-width: 0;
}

.portal-horse-hub-eyebrow {
    display: block;

    margin-bottom: 2px;

    color: var(--primary-color);

    font-size: 10px;
    font-weight: 600;
}

.portal-horse-hub-hero-info h2 {
    margin: 0 0 3px;

    font-size: 19px;
    font-weight: 800;
}

.portal-horse-hub-parents {
    display: block;

    color: #777;

    font-size: 10px;
    font-weight: 500;
}

.portal-horse-hub-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;

    margin-top: 9px;
}

.portal-horse-hub-meta span {
    display: flex;
    align-items: center;
    gap: 4px;

    padding: 4px 7px;

    border-radius: 8px;

    background: #f7f7f8;
    color: #666;

    font-size: 8px;
}

.portal-horse-hub-meta i {
    color: var(--primary-color);
}

.portal-horse-hub-rating {
    flex: 0 0 auto;

    min-width: 66px;

    padding: 8px 10px;

    border-radius: 11px;

    background: rgba(92,45,145,.07);

    text-align: center;
}

.portal-horse-hub-rating small,
.portal-horse-hub-rating strong {
    display: block;
}

.portal-horse-hub-rating small {
    color: #888;

    font-size: 8px;
}

.portal-horse-hub-rating strong {
    margin-top: 2px;

    color: var(--primary-color);

    font-size: 16px;
}


/* FILTER */

.portal-horse-hub-filter {
    margin-bottom: 14px;
    padding: 14px;

    border: 1px solid #eee;
    border-radius: 14px;

    background: #fff;
}

.portal-horse-hub-filter-heading {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 12px;
}

.portal-horse-hub-filter-heading > i {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: rgba(92,45,145,.08);
    color: var(--primary-color);
}

.portal-horse-hub-filter-heading strong,
.portal-horse-hub-filter-heading small {
    display: block;
}

.portal-horse-hub-filter-heading strong {
    font-size: 11px;
}

.portal-horse-hub-filter-heading small {
    margin-top: 1px;

    color: #999;

    font-size: 8px;
}

.portal-horse-hub-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;
}

.portal-horse-hub-filter-grid label {
    display: block;

    margin-bottom: 4px;

    color: #777;

    font-size: 9px;
}

.portal-horse-hub-filter-grid .form-control {
    min-height: 44px;

    border-radius: 9px;
}

.portal-horse-hub-filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;

    margin-top: 9px;
}

.portal-horse-hub-filter-actions .btn,
.portal-horse-hub-reset {
    min-height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    border-radius: 9px;

    font-size: 10px;
    font-weight: 600;
}

.portal-horse-hub-reset {
    border: 1px solid #e5e5e5;

    background: #fff;
    color: #666;

    text-decoration: none !important;
}


/* SECTION */

.portal-horse-hub-section {
    margin-bottom: 14px;
    padding: 14px;

    border: 1px solid #eee;
    border-radius: 15px;

    background: #fff;

    box-shadow: 0 4px 16px rgba(0,0,0,.025);
}

.portal-horse-hub-section-title {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 13px;
    padding-bottom: 11px;

    border-bottom: 1px solid #eee;
}

.portal-horse-hub-section-title > span {
    flex: 0 0 35px;

    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: rgba(92,45,145,.08);
    color: var(--primary-color);
}

.portal-horse-hub-section-title h4 {
    margin: 0;

    font-size: 13px;
    font-weight: 700;
}

.portal-horse-hub-section-title small {
    display: block;

    margin-top: 2px;

    color: #999;

    font-size: 8px;
}


/* INFO */

.portal-horse-hub-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 7px;
}

.portal-horse-hub-info-item,
.portal-horse-hub-person {
    min-width: 0;

    padding: 9px;

    border-radius: 9px;

    background: #f8f9fa;
}

.portal-horse-hub-info-item span,
.portal-horse-hub-info-item strong,
.portal-horse-hub-person > span,
.portal-horse-hub-person > strong {
    display: block;
}

.portal-horse-hub-info-item span,
.portal-horse-hub-person > span {
    margin-bottom: 3px;

    color: #999;

    font-size: 8px;
}

.portal-horse-hub-info-item strong,
.portal-horse-hub-person > strong {
    overflow: hidden;

    color: #444;

    font-size: 10px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-horse-hub-person a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;

    color: #444;

    text-decoration: none !important;
}

.portal-horse-hub-person a strong {
    overflow: hidden;

    font-size: 10px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-horse-hub-person a i {
    color: var(--primary-color);

    font-size: 8px;
}


/* STATS */

.portal-horse-hub-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 7px;
}

.portal-horse-hub-stats > div {
    padding: 10px 5px;

    border-radius: 9px;

    background: #f8f9fa;

    text-align: center;
}

.portal-horse-hub-stats strong,
.portal-horse-hub-stats span {
    display: block;
}

.portal-horse-hub-stats strong {
    color: #333;

    font-size: 16px;
    font-weight: 800;
}

.portal-horse-hub-stats span {
    margin-top: 2px;

    color: #888;

    font-size: 8px;
}


/* PARTICIPATIONS */

.portal-horse-hub-participations {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;
}

.portal-horse-hub-participation {
    min-width: 0;

    padding: 11px;

    border: 1px solid #ececec;
    border-radius: 11px;

    background: #fff;
}

.portal-horse-hub-participation-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;

    margin-bottom: 8px;
}

.portal-horse-hub-participation-header span {
    color: #999;

    font-size: 8px;
}

.portal-horse-hub-participation-header h5 {
    margin: 2px 0 0;

    font-size: 11px;
    font-weight: 700;
}

.portal-horse-hub-result {
    flex: 0 0 auto;

    padding: 5px 7px;

    border-radius: 8px;

    background: rgba(23,162,184,.08);
    color: #167587 !important;

    font-size: 8px !important;
    font-weight: 600;
}

.portal-horse-hub-participation-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;

    margin-bottom: 8px;
}

.portal-horse-hub-participation-meta span {
    display: flex;
    align-items: center;
    gap: 3px;

    padding: 4px 6px;

    border-radius: 7px;

    background: #f8f9fa;
    color: #777;

    font-size: 7px;
}

.portal-horse-hub-participation-meta i {
    color: var(--primary-color);
}

.portal-horse-hub-participation-people {
    display: grid;
    gap: 5px;
}

.portal-horse-hub-participation-people a {
    display: grid;
    grid-template-columns: 44px minmax(0,1fr) auto;
    align-items: center;
    gap: 6px;

    min-height: 34px;
    padding: 6px 8px;

    border-radius: 8px;

    background: #f8f9fa;
    color: inherit;

    text-decoration: none !important;
}

.portal-horse-hub-participation-people span {
    color: #999;

    font-size: 7px;
}

.portal-horse-hub-participation-people strong {
    overflow: hidden;

    font-size: 9px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-horse-hub-participation-people i {
    color: var(--primary-color);

    font-size: 7px;
}

.portal-horse-hub-participation-status {
    margin-top: 8px;

    text-align: center;
}


/* RELATIONS */

.portal-horse-hub-relations {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 8px;
}

.portal-horse-hub-relation {
    min-width: 0;

    padding: 10px;

    border-radius: 10px;

    background: #f8f9fa;

    text-align: center;
}

.portal-horse-hub-relation > span {
    display: block;

    margin-bottom: 5px;

    color: #999;

    font-size: 8px;
}

.portal-horse-hub-relation > strong,
.portal-horse-hub-relation a strong {
    font-size: 10px;
}

.portal-horse-hub-relation a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;

    color: #444;

    text-decoration: none !important;
}

.portal-horse-hub-relation a i {
    color: var(--primary-color);

    font-size: 7px;
}

.portal-horse-hub-relation-rate {
    display: inline-block;

    margin-top: 7px;
    padding: 4px 9px;

    border-radius: 20px;

    background: rgba(40,167,69,.10);
    color: #27843c;

    font-size: 9px;
    font-weight: 700;
}


/* HISTORY */

.portal-horse-hub-history-block + .portal-horse-hub-history-block {
    margin-top: 18px;
    padding-top: 16px;

    border-top: 1px solid #eee;
}

.portal-horse-hub-history-block > h5 {
    margin-bottom: 11px;

    font-size: 11px;
    font-weight: 700;
}

.portal-horse-hub-timeline {
    position: relative;

    padding-right: 15px;
}

.portal-horse-hub-timeline::before {
    content: "";

    position: absolute;

    top: 5px;
    right: 4px;
    bottom: 5px;

    width: 2px;

    background: #ececec;
}

.portal-horse-hub-timeline-item {
    position: relative;

    margin-bottom: 9px;
    padding-right: 14px;
}

.portal-horse-hub-timeline-dot {
    position: absolute;

    top: 12px;
    right: -15px;

    width: 9px;
    height: 9px;

    border: 2px solid #fff;
    border-radius: 50%;

    background: var(--primary-color);

    box-shadow: 0 0 0 2px rgba(92,45,145,.10);
}

.portal-horse-hub-timeline-content {
    padding: 9px;

    border-radius: 9px;

    background: #f8f9fa;
}

.portal-horse-hub-timeline-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 7px;
}

.portal-horse-hub-timeline-heading strong {
    font-size: 9px;
}

.portal-horse-hub-timeline-heading strong i {
    margin: 0 4px;

    color: var(--primary-color);

    font-size: 7px;
}

.portal-horse-hub-timeline-heading > span {
    flex: 0 0 auto;

    color: #777;

    font-size: 7px;
}

.portal-horse-hub-timeline-content p {
    margin: 6px 0 0;

    color: #777;

    font-size: 8px;
}

.portal-horse-hub-history-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;

    margin-top: 6px;
}

.portal-horse-hub-history-meta span {
    padding: 3px 6px;

    border-radius: 7px;

    background: #fff;
    color: #777;

    font-size: 7px;
}


/* EMPTY */

.portal-horse-hub-empty {
    padding: 24px 10px;

    border: 1px dashed #ddd;
    border-radius: 10px;

    background: #fafafa;
    color: #888;

    text-align: center;
}

.portal-horse-hub-empty i {
    display: block;

    margin-bottom: 7px;

    color: #bbb;

    font-size: 19px;
}

.portal-horse-hub-empty strong {
    font-size: 9px;
}

.portal-horse-hub-empty.small {
    padding: 14px 10px;

    font-size: 8px;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 575.98px) {

    .portal-horse-hub-page {
        padding-right: 12px;
        padding-left: 12px;
    }

    .portal-horse-hub-hero {
        gap: 10px;

        padding: 12px;
    }

    .portal-horse-hub-photo {
        flex-basis: 58px;

        width: 58px;
        height: 58px;
    }

    .portal-horse-hub-hero-info h2 {
        font-size: 16px;
    }

    .portal-horse-hub-rating {
        min-width: 54px;
    }

    .portal-horse-hub-filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .portal-horse-hub-info-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .portal-horse-hub-stats {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .portal-horse-hub-participations {
        grid-template-columns: 1fr;
    }

    .portal-horse-hub-relations {
        grid-template-columns: 1fr;
    }

}


/* =====================================================
   USER HUB
===================================================== */

.portal-user-hub-page {
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 110px;
}


/* HERO */

.portal-user-hub-hero {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 14px;
    padding: 16px;

    border: 1px solid #eee;
    border-radius: 16px;

    background: #fff;

    box-shadow: 0 4px 18px rgba(0,0,0,.035);
}

.portal-user-hub-photo {
    flex: 0 0 70px;

    width: 70px;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 50%;

    background: #f8f9fa;
}

.portal-user-hub-photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.portal-user-hub-hero-info {
    flex: 1;
    min-width: 0;
}

.portal-user-hub-eyebrow {
    display: block;

    margin-bottom: 2px;

    color: var(--primary-color);

    font-size: 10px;
    font-weight: 600;
}

.portal-user-hub-hero-info h2 {
    margin: 0 0 3px;

    font-size: 19px;
    font-weight: 800;
}

.portal-user-hub-id {
    display: block;

    color: #777;

    font-size: 9px;
    font-weight: 500;
}

.portal-user-hub-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;

    margin-top: 8px;
}

.portal-user-hub-meta span {
    display: flex;
    align-items: center;
    gap: 4px;

    padding: 4px 7px;

    border-radius: 8px;

    background: #f7f7f8;
    color: #666;

    font-size: 8px;
}

.portal-user-hub-meta i {
    color: var(--primary-color);
}

.portal-user-hub-rate {
    flex: 0 0 auto;

    min-width: 68px;

    padding: 8px 10px;

    border-radius: 11px;

    background: rgba(92,45,145,.07);

    text-align: center;
}

.portal-user-hub-rate small,
.portal-user-hub-rate strong {
    display: block;
}

.portal-user-hub-rate small {
    color: #888;

    font-size: 8px;
}

.portal-user-hub-rate strong {
    margin-top: 2px;

    color: var(--primary-color);

    font-size: 16px;
}


/* FILTER */

.portal-user-hub-filter {
    margin-bottom: 14px;
    padding: 14px;

    border: 1px solid #eee;
    border-radius: 14px;

    background: #fff;
}

.portal-user-hub-filter-heading {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 12px;
}

.portal-user-hub-filter-heading > i {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: rgba(92,45,145,.08);
    color: var(--primary-color);
}

.portal-user-hub-filter-heading strong,
.portal-user-hub-filter-heading small {
    display: block;
}

.portal-user-hub-filter-heading strong {
    font-size: 11px;
}

.portal-user-hub-filter-heading small {
    margin-top: 1px;

    color: #999;

    font-size: 8px;
}

.portal-user-hub-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;
}

.portal-user-hub-filter-grid label {
    display: block;

    margin-bottom: 4px;

    color: #777;

    font-size: 9px;
}

.portal-user-hub-filter-grid .form-control {
    min-height: 44px;

    border-radius: 9px;
}

.portal-user-hub-filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;

    margin-top: 9px;
}

.portal-user-hub-filter-actions .btn,
.portal-user-hub-reset {
    min-height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    border-radius: 9px;

    font-size: 10px;
    font-weight: 600;
}

.portal-user-hub-reset {
    border: 1px solid #e5e5e5;

    background: #fff;
    color: #666;

    text-decoration: none !important;
}


/* SECTION */

.portal-user-hub-section {
    margin-bottom: 14px;
    padding: 14px;

    border: 1px solid #eee;
    border-radius: 15px;

    background: #fff;

    box-shadow: 0 4px 16px rgba(0,0,0,.025);
}

.portal-user-hub-section-title {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 13px;
    padding-bottom: 11px;

    border-bottom: 1px solid #eee;
}

.portal-user-hub-section-title > span {
    flex: 0 0 35px;

    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: rgba(92,45,145,.08);
    color: var(--primary-color);
}

.portal-user-hub-section-title h4 {
    margin: 0;

    font-size: 13px;
    font-weight: 700;
}

.portal-user-hub-section-title small {
    display: block;

    margin-top: 2px;

    color: #999;

    font-size: 8px;
}


/* STATS */

.portal-user-hub-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 7px;

    margin-bottom: 12px;
}

.portal-user-hub-stats > div {
    padding: 10px 5px;

    border-radius: 9px;

    background: #f8f9fa;

    text-align: center;
}

.portal-user-hub-stats strong,
.portal-user-hub-stats span {
    display: block;
}

.portal-user-hub-stats strong {
    color: #333;

    font-size: 16px;
    font-weight: 800;
}

.portal-user-hub-stats span {
    margin-top: 2px;

    color: #888;

    font-size: 8px;
}


/* MEMBERSHIPS */

.portal-user-hub-memberships {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;
}

.portal-user-hub-membership {
    padding: 10px;

    border-radius: 10px;

    background: #f8f9fa;
}

.portal-user-hub-membership > strong {
    display: block;

    margin-bottom: 6px;

    font-size: 11px;
}

.portal-user-hub-membership > div {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.portal-user-hub-membership span {
    display: flex;
    align-items: center;
    gap: 3px;

    padding: 4px 6px;

    border-radius: 7px;

    background: #fff;
    color: #777;

    font-size: 7px;
}

.portal-user-hub-membership i {
    color: var(--primary-color);
}


/* BEST */

.portal-user-hub-best-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;

    margin-bottom: 10px;
}

.portal-user-hub-best {
    min-width: 0;

    padding: 11px;

    border-radius: 10px;

    background: #f8f9fa;

    text-align: center;
}

.portal-user-hub-best > span {
    display: block;

    margin-bottom: 5px;

    color: #999;

    font-size: 8px;
}

.portal-user-hub-best > strong {
    display: block;

    overflow: hidden;

    font-size: 11px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-user-hub-best > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;

    margin-top: 7px;
}

.portal-user-hub-best > div span {
    padding: 4px 7px;

    border-radius: 7px;

    background: #fff;
    color: #777;

    font-size: 7px;
}


/* HORSES */

.portal-user-hub-horses {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;
}

.portal-user-hub-horse {
    min-width: 0;

    padding: 10px;

    border: 1px solid #ececec;
    border-radius: 10px;

    background: #fff;
}

.portal-user-hub-horse-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;

    margin-bottom: 8px;
}

.portal-user-hub-horse-header > a,
.portal-user-hub-horse-header > div {
    display: flex;
    align-items: center;
    gap: 7px;

    min-width: 0;

    color: #333;

    text-decoration: none !important;
}

.portal-user-hub-horse-icon {
    flex: 0 0 34px;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: rgba(92,45,145,.08);
    color: var(--primary-color);
}

.portal-user-hub-horse-header strong {
    overflow: hidden;

    font-size: 10px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-user-hub-horse-rating {
    flex: 0 0 auto;

    padding: 4px 6px;

    border-radius: 7px;

    background: rgba(23,162,184,.08);
    color: #167587;

    font-size: 7px;
    font-weight: 600;
}

.portal-user-hub-horse-meta {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 5px;
}

.portal-user-hub-horse-meta span {
    padding: 5px 3px;

    border-radius: 7px;

    background: #f8f9fa;
    color: #888;

    font-size: 7px;

    text-align: center;
}

.portal-user-hub-horse-meta strong {
    color: #444;
}


/* EMPTY */

.portal-user-hub-empty {
    padding: 20px 10px;

    border: 1px dashed #ddd;
    border-radius: 10px;

    background: #fafafa;
    color: #888;

    font-size: 9px;
    font-weight: 600;

    text-align: center;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 575.98px) {

    .portal-user-hub-page {
        padding-right: 12px;
        padding-left: 12px;
    }

    .portal-user-hub-hero {
        gap: 10px;

        padding: 12px;
    }

    .portal-user-hub-photo {
        flex-basis: 58px;

        width: 58px;
        height: 58px;
    }

    .portal-user-hub-hero-info h2 {
        font-size: 16px;
    }

    .portal-user-hub-rate {
        min-width: 56px;
    }

    .portal-user-hub-filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .portal-user-hub-stats {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .portal-user-hub-memberships {
        grid-template-columns: 1fr;
    }

    .portal-user-hub-best-grid {
        grid-template-columns: 1fr;
    }

    .portal-user-hub-horses {
        grid-template-columns: 1fr;
    }

}


/* =====================================================
   PROFILE PHOTO
===================================================== */

.portal-profile-photo-page {
    max-width: 850px;
    margin: 0 auto;
    padding-bottom: 110px;
}


/* HEADER */

.portal-profile-photo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    margin-bottom: 16px;
    padding: 16px;

    border: 1px solid #eee;
    border-radius: 16px;

    background: #fff;

    box-shadow: 0 4px 18px rgba(0,0,0,.035);
}

.portal-profile-photo-eyebrow {
    display: block;

    margin-bottom: 3px;

    color: var(--primary-color);

    font-size: 10px;
    font-weight: 600;
}

.portal-profile-photo-header h3 {
    margin: 0 0 3px;

    font-size: 18px;
    font-weight: 700;
}

.portal-profile-photo-header p {
    margin: 0;

    color: #888;

    font-size: 10px;
}

.portal-profile-photo-header-icon {
    flex: 0 0 50px;

    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: rgba(92,45,145,.08);
    color: var(--primary-color);

    font-size: 21px;
}


/* LAYOUT */

.portal-profile-photo-layout {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 12px;
}


/* CARD */

.portal-profile-photo-card {
    min-width: 0;

    padding: 15px;

    border: 1px solid #eee;
    border-radius: 15px;

    background: #fff;

    box-shadow: 0 4px 16px rgba(0,0,0,.025);
}


/* TITLE */

.portal-profile-photo-section-title {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 14px;
    padding-bottom: 11px;

    border-bottom: 1px solid #eee;
}

.portal-profile-photo-section-title > span {
    flex: 0 0 36px;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: rgba(92,45,145,.08);
    color: var(--primary-color);

    font-size: 13px;
}

.portal-profile-photo-section-title h4 {
    margin: 0;

    font-size: 13px;
    font-weight: 700;
}

.portal-profile-photo-section-title small {
    display: block;

    margin-top: 2px;

    color: #999;

    font-size: 8px;
}


/* CURRENT */

.portal-profile-photo-current {
    text-align: center;
}

.portal-profile-photo-avatar {
    width: 150px;
    height: 150px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 8px auto 13px;

    overflow: hidden;

    border: 4px solid #fff;
    border-radius: 50%;

    background: #f8f9fa;

    box-shadow: 0 0 0 1px #eee,
    0 8px 24px rgba(0,0,0,.07);
}

.portal-profile-photo-avatar img {
    width: 100% !important;
    height: 100% !important;

    max-width: none !important;

    object-fit: cover;

    border: 0 !important;
    border-radius: 50% !important;
}

.portal-profile-photo-current p {
    max-width: 260px;

    margin: 0 auto;

    color: #888;

    font-size: 9px;
    line-height: 1.7;
}


/* UPLOAD */

.portal-profile-photo-upload {
    width: 100%;
}


/* NOTES */

.portal-profile-photo-notes {
    display: grid;
    gap: 7px;

    margin-top: 13px;
}

.portal-profile-photo-notes > div {
    display: flex;
    align-items: flex-start;
    gap: 7px;

    padding: 8px 9px;

    border-radius: 9px;

    background: #f8f9fa;
}

.portal-profile-photo-notes i {
    margin-top: 2px;

    color: var(--primary-color);

    font-size: 10px;
}

.portal-profile-photo-notes span {
    color: #777;

    font-size: 8px;
    line-height: 1.6;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 575.98px) {

    .portal-profile-photo-page {
        padding-right: 12px;
        padding-left: 12px;
    }

    .portal-profile-photo-header {
        padding: 13px;
    }

    .portal-profile-photo-header h3 {
        font-size: 16px;
    }

    .portal-profile-photo-header-icon {
        flex-basis: 44px;

        width: 44px;
        height: 44px;

        font-size: 18px;
    }

    .portal-profile-photo-layout {
        grid-template-columns: 1fr;
    }

    .portal-profile-photo-card {
        padding: 13px;
    }

    .portal-profile-photo-avatar {
        width: 132px;
        height: 132px;
    }

}

.portal-profile-photo-logo {
    border-radius: 14px;
}

.portal-profile-photo-logo img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;

    object-fit: contain;

    border: 0 !important;
    border-radius: 10px !important;
}

/* =====================================================
   PROFILE DOCUMENT PREVIEW
===================================================== */

.portal-profile-document-preview {
    width: 100%;
    max-width: 280px;
    height: 190px;

    border: 1px solid #eee;
    border-radius: 12px;

    background: #f8f9fa;

    box-shadow: none;
}

.portal-profile-document-preview img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;

    object-fit: contain;

    border: 0 !important;
    border-radius: 10px !important;
}

.portal-profile-document-preview iframe,
.portal-profile-document-preview embed,
.portal-profile-document-preview object {
    width: 100% !important;
    height: 100% !important;

    border: 0;
    border-radius: 10px;
}
.portal-profile-document-preview {
    width: 100%;
    max-width: 280px;
    height: 190px;

    border: 1px solid #eee;
    border-radius: 12px;

    background: #f8f9fa;

    box-shadow: none;
}

.portal-profile-document-preview img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;

    object-fit: contain;

    border: 0 !important;
    border-radius: 10px !important;
}

.portal-profile-document-preview iframe,
.portal-profile-document-preview embed,
.portal-profile-document-preview object {
    width: 100% !important;
    height: 100% !important;

    border: 0;
    border-radius: 10px;
}


/* =====================================================
   FINANCIAL PAGE
===================================================== */

.portal-financial-page {
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 110px;
}

.portal-financial-number {
    direction: ltr;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}


/* HEADER */

.portal-financial-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 14px;
    padding: 16px;

    border: 1px solid #eee;
    border-radius: 16px;

    background: #fff;

    box-shadow: 0 4px 18px rgba(0,0,0,.035);
}

.portal-financial-eyebrow {
    display: block;

    margin-bottom: 3px;

    color: var(--primary-color);

    font-size: 10px;
    font-weight: 600;
}

.portal-financial-header h3 {
    margin: 0 0 3px;

    font-size: 18px;
    font-weight: 700;
}

.portal-financial-header p {
    margin: 0;

    color: #888;

    font-size: 10px;
}

.portal-financial-header-action {
    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 8px 11px;

    border: 1px solid rgba(92,45,145,.14);
    border-radius: 9px;

    background: rgba(92,45,145,.05);
    color: var(--primary-color);

    font-size: 10px;
    font-weight: 600;

    text-decoration: none !important;
}


/* SCOPE */

.portal-financial-scope {
    margin-bottom: 14px;
    padding: 14px;

    border: 1px solid #eee;
    border-radius: 14px;

    background: #fff;
}

.portal-financial-scope-heading {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 12px;
}

.portal-financial-scope-heading > i {
    width: 33px;
    height: 33px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: rgba(92,45,145,.08);
    color: var(--primary-color);

    font-size: 15px;
}

.portal-financial-scope-heading strong,
.portal-financial-scope-heading small {
    display: block;
}

.portal-financial-scope-heading strong {
    font-size: 11px;
}

.portal-financial-scope-heading small {
    margin-top: 1px;

    color: #999;

    font-size: 8px;
}

.portal-financial-scope-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;
}

.portal-financial-scope-grid label {
    display: block;

    margin-bottom: 4px;

    color: #777;

    font-size: 9px;
}

.portal-financial-dropdown {
    width: 100%;
    min-height: 44px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 7px 10px;

    border: 1px solid #ddd;
    border-radius: 9px;

    background: #fff;
    color: #555;

    font-size: 10px;

    text-align: right;
}

.portal-financial-dropdown span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.portal-financial-dropdown i {
    color: var(--primary-color);
}

.portal-financial-scope .dropdown-menu {
    width: 100%;

    text-align: right;
}

.portal-financial-scope-current {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;

    margin-top: 9px;
}

.portal-financial-scope-current span {
    display: flex;
    align-items: center;
    gap: 4px;

    padding: 4px 7px;

    border-radius: 7px;

    background: #f8f9fa;
    color: #777;

    font-size: 8px;
}

.portal-financial-scope-current i {
    color: var(--primary-color);
}


/* SUMMARY */

.portal-financial-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 8px;

    margin-bottom: 14px;
}

.portal-financial-summary-card {
    position: relative;

    min-width: 0;
    padding: 12px;

    border: 1px solid #eee;
    border-radius: 13px;

    background: #fff;
}

.portal-financial-summary-card.balance.positive {
    border-color: rgba(92,45,145,.16);
    background: rgba(92,45,145,.035);
}

.portal-financial-summary-card.balance.negative {
    border-color: rgba(220,53,69,.18);
    background: rgba(220,53,69,.035);
}

.portal-financial-summary-icon {
    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 9px;

    border-radius: 9px;

    background: rgba(92,45,145,.08);
    color: var(--primary-color);

    font-size: 16px;
}

.portal-financial-summary-icon.success {
    background: rgba(40,167,69,.10);
    color: #27843c;
}

.portal-financial-summary-icon.warning {
    background: rgba(255,193,7,.12);
    color: #8b7000;
}

.portal-financial-summary-icon.info {
    background: rgba(23,162,184,.09);
    color: #167587;
}

.portal-financial-summary-content span,
.portal-financial-summary-content strong,
.portal-financial-summary-content small {
    display: block;
}

.portal-financial-summary-content > span {
    color: #777;

    font-size: 8px;
}

.portal-financial-summary-content strong {
    margin-top: 2px;

    overflow: hidden;

    color: #333;

    font-size: 16px;
    font-weight: 800;

    text-overflow: ellipsis;
}

.portal-financial-summary-content small {
    margin-top: 3px;

    color: #999;

    font-size: 7px;
}

.portal-financial-summary-link {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 9px;
    padding-top: 8px;

    border-top: 1px solid rgba(92,45,145,.10);

    color: var(--primary-color);

    font-size: 8px;
    font-weight: 600;

    text-decoration: none !important;
}


/* SECTION */

.portal-financial-section {
    margin-bottom: 14px;
    padding: 14px;

    border: 1px solid #eee;
    border-radius: 15px;

    background: #fff;

    box-shadow: 0 4px 16px rgba(0,0,0,.025);
}

.portal-financial-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    margin-bottom: 13px;
    padding-bottom: 11px;

    border-bottom: 1px solid #eee;
}

.portal-financial-section-title > div:first-child {
    display: flex;
    align-items: center;
    gap: 9px;
}

.portal-financial-section-icon {
    flex: 0 0 35px;

    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: rgba(92,45,145,.08);
    color: var(--primary-color);

    font-size: 15px;
}

.portal-financial-section-title h4 {
    margin: 0;

    font-size: 13px;
    font-weight: 700;
}

.portal-financial-section-title small {
    display: block;

    margin-top: 2px;

    color: #999;

    font-size: 8px;
}

.portal-financial-section-count {
    min-width: 27px;
    height: 27px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 7px;

    border-radius: 20px;

    background: rgba(92,45,145,.08);
    color: var(--primary-color);

    font-size: 9px;
    font-weight: 700;
}


/* ROLES */

.portal-financial-roles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 8px;
}

.portal-financial-role {
    min-width: 0;

    overflow: hidden;

    border: 1px solid #ececec;
    border-radius: 11px;

    background: #fff;
}

.portal-financial-role-header {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 10px;

    border-bottom: 1px solid #eee;
}

.portal-financial-role-icon {
    flex: 0 0 38px;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: rgba(92,45,145,.08);
    color: var(--primary-color);

    font-size: 17px;
}

.portal-financial-role-icon.info {
    background: rgba(23,162,184,.09);
    color: #167587;
}

.portal-financial-role-icon.success {
    background: rgba(40,167,69,.09);
    color: #27843c;
}

.portal-financial-role-header strong,
.portal-financial-role-header small {
    display: block;
}

.portal-financial-role-header strong {
    font-size: 10px;
}

.portal-financial-role-header small {
    margin-top: 1px;

    color: #999;

    font-size: 7px;
}

.portal-financial-role-list {
    padding: 8px 10px;
}

.portal-financial-role-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;

    min-height: 31px;

    border-bottom: 1px dashed #eee;
}

.portal-financial-role-list > div:last-child {
    border-bottom: 0;
}

.portal-financial-role-list > div.net {
    margin-top: 3px;
    padding-top: 3px;

    font-weight: 700;
}

.portal-financial-role-list span {
    color: #777;

    font-size: 8px;
}

.portal-financial-role-list strong {
    color: #444;

    font-size: 9px;
}

.portal-financial-role-action {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 5px;

    min-height: 38px;
    padding: 7px 9px;

    border-top: 1px solid #eee;

    background: #fafafa;
    color: #555;

    font-size: 8px;
    font-weight: 600;

    text-decoration: none !important;
}

.portal-financial-role-action i {
    color: var(--primary-color);
}


/* SERVICES */

.portal-financial-services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;
}

.portal-financial-service {
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    gap: 9px;

    min-width: 0;
    min-height: 60px;

    padding: 9px 10px;

    border: 1px solid #eee;
    border-radius: 10px;

    background: #fff;
    color: inherit;

    text-decoration: none !important;
}

.portal-financial-service.disabled {
    opacity: .55;
}

.portal-financial-service.static {
    grid-template-columns: auto minmax(0,1fr);
}

.portal-financial-service-icon {
    flex: 0 0 38px;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: rgba(92,45,145,.08);
    color: var(--primary-color);

    font-size: 17px;
}

.portal-financial-service strong,
.portal-financial-service small {
    display: block;
}

.portal-financial-service strong {
    font-size: 9px;
}

.portal-financial-service small {
    margin-top: 2px;

    color: #888;

    font-size: 7px;
}

.portal-financial-service > i {
    color: var(--primary-color);

    font-size: 10px;
}


/* COMPONENTS */

.portal-financial-balance-pill {
    padding: 5px 8px;

    border-radius: 8px;

    background: rgba(92,45,145,.07);

    text-align: center;
}

.portal-financial-balance-pill.negative {
    background: rgba(220,53,69,.07);
}

.portal-financial-balance-pill span,
.portal-financial-balance-pill strong {
    display: block;
}

.portal-financial-balance-pill span {
    color: #888;

    font-size: 7px;
}

.portal-financial-balance-pill strong {
    margin-top: 1px;

    color: var(--primary-color);

    font-size: 9px;
}

.portal-financial-balance-pill.negative strong {
    color: #b22b39;
}

.portal-financial-components {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 6px;
}

.portal-financial-components > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;

    min-height: 39px;
    padding: 7px 9px;

    border-radius: 8px;

    background: #f8f9fa;
}

.portal-financial-components span {
    color: #777;

    font-size: 8px;
}

.portal-financial-components strong {
    color: #444;

    font-size: 9px;
}

.portal-financial-components-total {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 8px;
    padding: 10px;

    border-radius: 9px;

    background: rgba(92,45,145,.05);

    font-size: 9px;
    font-weight: 700;
}


/* COLORS */

.portal-financial-number.success {
    color: #27843c !important;
}

.portal-financial-number.info {
    color: #167587 !important;
}

.portal-financial-number.danger {
    color: #b22b39 !important;
}

.portal-financial-number.primary {
    color: var(--primary-color) !important;
}


/* EMPTY */

.portal-financial-empty {
    padding: 38px 15px;

    border: 1px solid #eee;
    border-radius: 15px;

    background: #fff;

    text-align: center;
}

.portal-financial-empty.compact {
    padding: 24px 12px;
}

.portal-financial-empty-icon {
    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 11px;

    border-radius: 50%;

    background: rgba(92,45,145,.07);
    color: var(--primary-color);

    font-size: 22px;
}

.portal-financial-empty h5 {
    margin-bottom: 4px;

    font-size: 13px;
}

.portal-financial-empty p {
    margin: 0;

    color: #999;

    font-size: 9px;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 575.98px) {

    .portal-financial-page {
        padding-right: 12px;
        padding-left: 12px;
    }

    .portal-financial-header {
        padding: 13px;
    }

    .portal-financial-header h3 {
        font-size: 16px;
    }

    .portal-financial-header-action span {
        display: none;
    }

    .portal-financial-header-action {
        width: 42px;
        padding: 0;
    }

    .portal-financial-scope-grid {
        grid-template-columns: 1fr 1fr;
    }

    .portal-financial-summary {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .portal-financial-summary-content strong {
        font-size: 14px;
    }

    .portal-financial-roles {
        grid-template-columns: 1fr;
    }

    .portal-financial-services {
        grid-template-columns: 1fr;
    }

    .portal-financial-components {
        grid-template-columns: 1fr;
    }

}

/* =====================================================
   FINANCIAL TRANSACTIONS
===================================================== */

.portal-finance-transactions-page {
    max-width: 1050px;
    margin: 0 auto;
    padding-bottom: 110px;
}


/* HEADER */

.portal-finance-transactions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    margin-bottom: 14px;
    padding: 16px;

    border: 1px solid #eee;
    border-radius: 16px;

    background: #fff;

    box-shadow: 0 4px 18px rgba(0,0,0,.035);
}

.portal-finance-transactions-header-main {
    display: flex;
    align-items: center;
    gap: 10px;

    min-width: 0;
}

.portal-finance-transactions-header-icon {
    flex: 0 0 46px;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: rgba(92,45,145,.08);
    color: var(--primary-color);

    font-size: 17px;
}

.portal-finance-transactions-eyebrow {
    display: block;

    margin-bottom: 2px;

    color: var(--primary-color);

    font-size: 9px;
    font-weight: 600;
}

.portal-finance-transactions-header h3 {
    margin: 0 0 2px;

    font-size: 17px;
    font-weight: 700;
}

.portal-finance-transactions-header p {
    margin: 0;

    color: #888;

    font-size: 9px;
}

.portal-finance-transactions-scope {
    flex: 0 0 auto;

    min-width: 130px;

    padding: 8px 10px;

    border-radius: 10px;

    background: #f8f9fa;

    text-align: center;
}

.portal-finance-transactions-scope small,
.portal-finance-transactions-scope strong,
.portal-finance-transactions-scope span {
    display: block;
}

.portal-finance-transactions-scope small {
    color: #999;

    font-size: 7px;
}

.portal-finance-transactions-scope strong {
    margin-top: 2px;

    color: #444;

    font-size: 9px;
}

.portal-finance-transactions-scope span {
    margin-top: 1px;

    color: #777;

    font-size: 8px;
}


/* FILTER */

.portal-finance-transactions-filter {
    margin-bottom: 15px;
    padding: 14px;

    border: 1px solid #eee;
    border-radius: 14px;

    background: #fff;
}

.portal-finance-transactions-filter-heading {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 12px;
}

.portal-finance-transactions-filter-heading > i {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: rgba(92,45,145,.08);
    color: var(--primary-color);
}

.portal-finance-transactions-filter-heading strong,
.portal-finance-transactions-filter-heading small {
    display: block;
}

.portal-finance-transactions-filter-heading strong {
    font-size: 11px;
}

.portal-finance-transactions-filter-heading small {
    margin-top: 1px;

    color: #999;

    font-size: 8px;
}

.portal-finance-transactions-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 8px;
}

.portal-finance-transactions-filter-grid label {
    display: block;

    margin-bottom: 4px;

    color: #777;

    font-size: 8px;
}

.portal-finance-transactions-filter-grid .form-control {
    min-height: 43px;

    border-radius: 9px;

    font-size: 10px;
}

.portal-finance-transactions-filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 7px;

    margin-top: 10px;
}

.portal-finance-transactions-filter-actions .btn,
.portal-finance-transactions-reset {
    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 8px 12px;

    border-radius: 9px;

    font-size: 10px;
    font-weight: 600;
}

.portal-finance-transactions-reset {
    border: 1px solid #e5e5e5;

    background: #fff;
    color: #666;

    text-decoration: none !important;
}


/* LIST HEADER */

.portal-finance-transactions-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    margin-bottom: 9px;
}

.portal-finance-transactions-list-header h4 {
    margin: 0;

    font-size: 13px;
    font-weight: 700;
}

.portal-finance-transactions-list-header p {
    margin: 2px 0 0;

    color: #999;

    font-size: 8px;
}

.portal-finance-transactions-list-header > span {
    padding: 5px 8px;

    border-radius: 20px;

    background: rgba(92,45,145,.07);
    color: var(--primary-color);

    font-size: 8px;
    font-weight: 600;
}


/* LIST */

.portal-finance-transactions-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 9px;
}


/* CARD */

.portal-finance-transaction-card {
    min-width: 0;

    padding: 12px;

    border: 1px solid #eee;
    border-radius: 13px;

    background: #fff;

    box-shadow: 0 4px 15px rgba(0,0,0,.025);
}


/* CARD HEADER */

.portal-finance-transaction-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;

    margin-bottom: 10px;
}

.portal-finance-transaction-main {
    display: flex;
    align-items: center;
    gap: 8px;

    min-width: 0;
}

.portal-finance-transaction-icon {
    flex: 0 0 36px;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: rgba(92,45,145,.08);
    color: var(--primary-color);
}

.portal-finance-transaction-main small,
.portal-finance-transaction-main strong {
    display: block;
}

.portal-finance-transaction-main small {
    color: #999;

    font-size: 7px;
}

.portal-finance-transaction-main strong {
    margin-top: 1px;

    overflow: hidden;

    color: #444;

    font-size: 10px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-finance-transaction-status {
    flex: 0 0 auto;

    padding: 5px 7px;

    border-radius: 20px;

    font-size: 8px;
}


/* AMOUNT */

.portal-finance-transaction-amount {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 8px;
    padding: 9px;

    border-radius: 9px;

    background: #f8f9fa;
}

.portal-finance-transaction-amount > span {
    color: #888;

    font-size: 8px;
}

.portal-finance-transaction-amount > strong {
    direction: ltr;

    color: #333;

    font-size: 15px;
    font-weight: 800;

    white-space: nowrap;
}

.portal-finance-transaction-amount small {
    font-size: 7px;
    font-weight: 500;
}


/* DETAILS */

.portal-finance-transaction-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 6px;
}

.portal-finance-transaction-details > div {
    min-width: 0;

    padding: 7px;

    border-radius: 8px;

    background: #fafafa;
}

.portal-finance-transaction-details span,
.portal-finance-transaction-details strong {
    display: block;
}

.portal-finance-transaction-details span {
    color: #999;

    font-size: 7px;
}

.portal-finance-transaction-details span i {
    margin-left: 3px;

    color: var(--primary-color);
}

.portal-finance-transaction-details strong {
    margin-top: 2px;

    overflow: hidden;

    color: #555;

    font-size: 8px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ROLE */

.portal-finance-transaction-role {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;

    margin-top: 7px;
    padding: 7px 8px;

    border-radius: 8px;

    background: rgba(23,162,184,.05);
}

.portal-finance-transaction-role span {
    color: #777;

    font-size: 7px;
}

.portal-finance-transaction-role strong {
    color: #167587;

    font-size: 8px;
}


/* ACTION */

.portal-finance-transaction-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;

    min-height: 42px;

    margin-top: 8px;
    padding: 8px 10px;

    border-radius: 9px;

    font-size: 9px;
    font-weight: 600;

    text-decoration: none !important;
}

.portal-finance-transaction-action > div {
    display: flex;
    align-items: center;
    gap: 6px;
}

.portal-finance-transaction-action.pay {
    background: rgba(40,167,69,.08);
    color: #27843c;
}

.portal-finance-transaction-action.receipt {
    border: 1px solid #e5e5e5;

    background: #fff;
    color: #555;
}


/* EMPTY */

.portal-finance-transactions-empty {
    padding: 38px 15px;

    border: 1px solid #eee;
    border-radius: 15px;

    background: #fff;

    text-align: center;
}

.portal-finance-transactions-empty-icon {
    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 11px;

    border-radius: 50%;

    background: rgba(92,45,145,.07);
    color: var(--primary-color);

    font-size: 20px;
}

.portal-finance-transactions-empty h5 {
    margin-bottom: 4px;

    font-size: 13px;
}

.portal-finance-transactions-empty p {
    margin: 0;

    color: #999;

    font-size: 9px;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767.98px) {

    .portal-finance-transactions-page {
        padding-right: 12px;
        padding-left: 12px;
    }

    .portal-finance-transactions-header {
        padding: 12px;
    }

    .portal-finance-transactions-header-icon {
        flex-basis: 42px;

        width: 42px;
        height: 42px;
    }

    .portal-finance-transactions-header h3 {
        font-size: 15px;
    }

    .portal-finance-transactions-header p {
        display: none;
    }

    .portal-finance-transactions-scope {
        min-width: 90px;
    }

    .portal-finance-transactions-filter-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .portal-finance-transactions-filter-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .portal-finance-transactions-list {
        grid-template-columns: 1fr;
    }

}

/* =====================================================
   AWARDS
===================================================== */

.portal-awards-page {
    max-width: 1050px;
    margin: 0 auto;
    padding-bottom: 110px;
}

.portal-awards-number {
    direction: ltr;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}


/* HEADER */

.portal-awards-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 14px;
    padding: 16px;

    border: 1px solid #eee;
    border-radius: 16px;

    background: #fff;

    box-shadow: 0 4px 18px rgba(0,0,0,.035);
}

.portal-awards-eyebrow {
    display: block;

    margin-bottom: 3px;

    color: var(--primary-color);

    font-size: 10px;
    font-weight: 600;
}

.portal-awards-header h3 {
    margin: 0 0 3px;

    font-size: 18px;
    font-weight: 700;
}

.portal-awards-header p {
    margin: 0;

    color: #888;

    font-size: 9px;
}

.portal-awards-header-action {
    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 8px 11px;

    border: 1px solid rgba(92,45,145,.14);
    border-radius: 9px;

    background: rgba(92,45,145,.05);
    color: var(--primary-color);

    font-size: 9px;
    font-weight: 600;

    text-decoration: none !important;
}


/* SUMMARY */

.portal-awards-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 8px;

    margin-bottom: 14px;
}

.portal-awards-summary-card {
    display: flex;
    align-items: center;
    gap: 8px;

    min-width: 0;
    padding: 11px;

    border: 1px solid #eee;
    border-radius: 12px;

    background: #fff;
}

.portal-awards-summary-icon {
    flex: 0 0 36px;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: rgba(92,45,145,.08);
    color: var(--primary-color);

    font-size: 16px;
}

.portal-awards-summary-icon.info {
    background: rgba(23,162,184,.09);
    color: #167587;
}

.portal-awards-summary-icon.warning {
    background: rgba(255,193,7,.11);
    color: #8a6d00;
}

.portal-awards-summary-icon.success {
    background: rgba(40,167,69,.09);
    color: #27843c;
}

.portal-awards-summary-card small,
.portal-awards-summary-card strong {
    display: block;
}

.portal-awards-summary-card small {
    color: #999;

    font-size: 7px;
}

.portal-awards-summary-card strong {
    margin-top: 2px;

    overflow: hidden;

    color: #333;

    font-size: 14px;
    font-weight: 800;

    text-overflow: ellipsis;
}


/* FILTER */

.portal-awards-filter {
    margin-bottom: 12px;
    padding: 14px;

    border: 1px solid #eee;
    border-radius: 14px;

    background: #fff;
}

.portal-awards-filter-heading {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 12px;
}

.portal-awards-filter-heading > i {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: rgba(92,45,145,.08);
    color: var(--primary-color);
}

.portal-awards-filter-heading strong,
.portal-awards-filter-heading small {
    display: block;
}

.portal-awards-filter-heading strong {
    font-size: 11px;
}

.portal-awards-filter-heading small {
    color: #999;

    font-size: 8px;
}

.portal-awards-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;
}

.portal-awards-filter-grid label {
    display: block;

    margin-bottom: 4px;

    color: #777;

    font-size: 8px;
}

.portal-awards-filter-grid .form-control {
    min-height: 43px;

    border-radius: 9px;

    font-size: 10px;
}

.portal-awards-filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;

    margin-top: 9px;
}

.portal-awards-filter-actions .btn,
.portal-awards-reset {
    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    border-radius: 9px;

    font-size: 9px;
    font-weight: 600;
}

.portal-awards-reset {
    border: 1px solid #e5e5e5;

    background: #fff;
    color: #666;

    text-decoration: none !important;
}


/* ROLES */

.portal-awards-role-tabs {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 6px;

    margin-bottom: 10px;
    padding: 5px;

    border: 1px solid #eee;
    border-radius: 12px;

    background: #f7f7f8;
}

.portal-awards-role-tabs a {
    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    border-radius: 8px;

    color: #777;

    font-size: 9px;
    font-weight: 600;

    text-decoration: none !important;
}

.portal-awards-role-tabs a.active {
    background: #fff;
    color: var(--primary-color);

    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}


/* CURRENT SCOPE */

.portal-awards-current-scope {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;

    margin-bottom: 12px;
}

.portal-awards-current-scope span {
    display: flex;
    align-items: center;
    gap: 4px;

    padding: 5px 7px;

    border-radius: 8px;

    background: #f8f9fa;
    color: #666;

    font-size: 8px;
}

.portal-awards-current-scope i {
    color: var(--primary-color);
}


/* LIST */

.portal-awards-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 9px;
}

.portal-award-card {
    min-width: 0;

    padding: 11px;

    border: 1px solid #eee;
    border-radius: 12px;

    background: #fff;

    box-shadow: 0 4px 14px rgba(0,0,0,.025);
}


/* CARD HEADER */

.portal-award-card-header {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 8px;
}

.portal-award-card-number {
    flex: 0 0 31px;

    width: 31px;
    height: 31px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: rgba(92,45,145,.07);
    color: var(--primary-color);

    font-size: 9px;
    font-weight: 700;
}

.portal-award-card-race {
    flex: 1;
    min-width: 0;
}

.portal-award-card-race span,
.portal-award-card-race strong,
.portal-award-card-race small {
    display: block;
}

.portal-award-card-race span {
    color: #999;

    font-size: 7px;
}

.portal-award-card-race strong {
    margin-top: 1px;

    font-size: 10px;
}

.portal-award-card-race small {
    margin-top: 1px;

    color: #999;

    font-size: 7px;
}

.portal-award-result {
    flex: 0 0 52px;

    padding: 5px;

    border-radius: 9px;

    background: rgba(92,45,145,.08);

    text-align: center;
}

.portal-award-result.empty {
    background: #f8f9fa;
}

.portal-award-result small,
.portal-award-result strong {
    display: block;
}

.portal-award-result small {
    color: #888;

    font-size: 6px;
}

.portal-award-result strong {
    color: var(--primary-color);

    font-size: 14px;
}


/* HORSE */

.portal-award-horse {
    position: relative;

    margin-bottom: 8px;
    padding: 8px;

    border-radius: 8px;

    background: #f8f9fa;
}

.portal-award-horse > span,
.portal-award-horse > strong,
.portal-award-horse > small {
    display: block;
}

.portal-award-horse > span {
    color: #999;

    font-size: 7px;
}

.portal-award-horse > span i {
    color: var(--primary-color);
}

.portal-award-horse > strong {
    margin-top: 2px;

    font-size: 10px;
}

.portal-award-horse > small {
    margin-top: 2px;

    color: #777;

    font-size: 7px;
}


/* CALCULATION */

.portal-award-calculation {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 5px;
}

.portal-award-calculation > div {
    min-width: 0;

    padding: 7px 3px;

    border-radius: 7px;

    background: #fafafa;

    text-align: center;
}

.portal-award-calculation span,
.portal-award-calculation strong,
.portal-award-calculation small {
    display: block;
}

.portal-award-calculation span {
    color: #999;

    font-size: 6px;
}

.portal-award-calculation strong {
    margin-top: 2px;

    color: #444;

    font-size: 8px;
}

.portal-award-calculation small {
    margin-top: 1px;

    color: #999;

    font-size: 6px;
}


/* TOTAL */

.portal-award-total {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 7px;
    padding: 8px;

    border-radius: 8px;

    background: rgba(40,167,69,.06);
}

.portal-award-total span {
    color: #666;

    font-size: 8px;
}

.portal-award-total strong {
    color: #27843c;

    font-size: 11px;
}

.portal-awards-total {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 6px;

    margin-top: 10px;
    padding: 10px;

    border: 1px solid #eee;
    border-radius: 11px;

    background: #fff;
}

.portal-awards-total > div {
    text-align: center;
}

.portal-awards-total span,
.portal-awards-total strong {
    display: block;
}

.portal-awards-total span {
    color: #888;

    font-size: 7px;
}

.portal-awards-total strong {
    margin-top: 2px;

    font-size: 10px;
}

.portal-awards-total .grand {
    border-radius: 8px;

    background: rgba(40,167,69,.06);
}

.portal-awards-total .grand strong {
    color: #27843c;
}


/* COLORS */

.portal-awards-number.info {
    color: #167587 !important;
}


/* EMPTY */

.portal-awards-empty {
    padding: 38px 15px;

    border: 1px solid #eee;
    border-radius: 14px;

    background: #fff;

    text-align: center;
}

.portal-awards-empty-icon {
    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 10px;

    border-radius: 50%;

    background: rgba(92,45,145,.07);
    color: var(--primary-color);

    font-size: 21px;
}

.portal-awards-empty h5 {
    margin-bottom: 4px;

    font-size: 13px;
}

.portal-awards-empty p {
    margin: 0;

    color: #999;

    font-size: 8px;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767.98px) {

    .portal-awards-page {
        padding-right: 12px;
        padding-left: 12px;
    }

    .portal-awards-header {
        padding: 12px;
    }

    .portal-awards-header h3 {
        font-size: 16px;
    }

    .portal-awards-header-action span {
        display: none;
    }

    .portal-awards-header-action {
        width: 42px;
        padding: 0;
    }

    .portal-awards-summary {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .portal-awards-list {
        grid-template-columns: 1fr;
    }

    .portal-award-calculation {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

}

/* =====================================================
   PAYOUTS
===================================================== */

.portal-payouts-page {
    max-width: 1050px;
    margin: 0 auto;
    padding-bottom: 110px;
}

.portal-payouts-number {
    direction: ltr;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}


/* HEADER */

.portal-payouts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 14px;
    padding: 16px;

    border: 1px solid #eee;
    border-radius: 16px;

    background: #fff;

    box-shadow: 0 4px 18px rgba(0,0,0,.035);
}

.portal-payouts-header-main {
    display: flex;
    align-items: center;
    gap: 10px;

    min-width: 0;
}

.portal-payouts-header-icon {
    flex: 0 0 46px;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: rgba(92,45,145,.08);
    color: var(--primary-color);

    font-size: 18px;
}

.portal-payouts-eyebrow {
    display: block;

    margin-bottom: 2px;

    color: var(--primary-color);

    font-size: 9px;
    font-weight: 600;
}

.portal-payouts-header h3 {
    margin: 0 0 2px;

    font-size: 17px;
    font-weight: 700;
}

.portal-payouts-header p {
    margin: 0;

    color: #888;

    font-size: 9px;
}

.portal-payouts-scope {
    flex: 0 0 auto;

    min-width: 125px;

    padding: 8px 10px;

    border-radius: 10px;

    background: #f8f9fa;

    text-align: center;
}

.portal-payouts-scope small,
.portal-payouts-scope strong,
.portal-payouts-scope span {
    display: block;
}

.portal-payouts-scope small {
    color: #999;

    font-size: 7px;
}

.portal-payouts-scope strong {
    margin-top: 2px;

    color: #444;

    font-size: 9px;
}

.portal-payouts-scope span {
    margin-top: 1px;

    color: #777;

    font-size: 8px;
}


/* SUMMARY */

.portal-payouts-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;

    margin-bottom: 14px;
}

.portal-payouts-summary-card {
    display: flex;
    align-items: center;
    gap: 9px;

    min-width: 0;

    padding: 11px;

    border: 1px solid #eee;
    border-radius: 12px;

    background: #fff;
}

.portal-payouts-summary-icon {
    flex: 0 0 38px;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: rgba(92,45,145,.08);
    color: var(--primary-color);

    font-size: 17px;
}

.portal-payouts-summary-icon.success {
    background: rgba(40,167,69,.09);
    color: #27843c;
}

.portal-payouts-summary-card small,
.portal-payouts-summary-card strong {
    display: block;
}

.portal-payouts-summary-card > div > small {
    color: #999;

    font-size: 8px;
}

.portal-payouts-summary-card strong {
    margin-top: 2px;

    color: #333;

    font-size: 15px;
    font-weight: 800;
}

.portal-payouts-summary-card strong span {
    display: inline;

    color: #888;

    font-size: 7px;
    font-weight: 500;
}


/* FILTER */

.portal-payouts-filter {
    margin-bottom: 14px;
    padding: 14px;

    border: 1px solid #eee;
    border-radius: 14px;

    background: #fff;
}

.portal-payouts-filter-heading {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 12px;
}

.portal-payouts-filter-heading > i {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: rgba(92,45,145,.08);
    color: var(--primary-color);
}

.portal-payouts-filter-heading strong,
.portal-payouts-filter-heading small {
    display: block;
}

.portal-payouts-filter-heading strong {
    font-size: 11px;
}

.portal-payouts-filter-heading small {
    margin-top: 1px;

    color: #999;

    font-size: 8px;
}

.portal-payouts-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;
}

.portal-payouts-filter-grid label {
    display: block;

    margin-bottom: 4px;

    color: #777;

    font-size: 8px;
}

.portal-payouts-filter-grid .form-control {
    min-height: 43px;

    border-radius: 9px;

    font-size: 10px;
}

.portal-payouts-filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;

    margin-top: 9px;
}

.portal-payouts-filter-actions .btn,
.portal-payouts-reset {
    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    border-radius: 9px;

    font-size: 9px;
    font-weight: 600;
}

.portal-payouts-reset {
    border: 1px solid #e5e5e5;

    background: #fff;
    color: #666;

    text-decoration: none !important;
}


/* LIST HEADER */

.portal-payouts-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    margin-bottom: 9px;
}

.portal-payouts-list-header h4 {
    margin: 0;

    font-size: 13px;
    font-weight: 700;
}

.portal-payouts-list-header p {
    margin: 2px 0 0;

    color: #999;

    font-size: 8px;
}

.portal-payouts-list-header > span {
    padding: 5px 8px;

    border-radius: 20px;

    background: rgba(92,45,145,.07);
    color: var(--primary-color);

    font-size: 8px;
    font-weight: 600;
}


/* LIST */

.portal-payouts-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 9px;
}

.portal-payout-card {
    min-width: 0;

    padding: 11px;

    border: 1px solid #eee;
    border-radius: 12px;

    background: #fff;

    box-shadow: 0 4px 14px rgba(0,0,0,.025);
}


/* CARD HEADER */

.portal-payout-card-header {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 8px;
}

.portal-payout-card-number {
    flex: 0 0 31px;

    width: 31px;
    height: 31px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: rgba(92,45,145,.07);
    color: var(--primary-color);

    font-size: 9px;
    font-weight: 700;
}

.portal-payout-card-title {
    flex: 1;
    min-width: 0;
}

.portal-payout-card-title small,
.portal-payout-card-title strong {
    display: block;
}

.portal-payout-card-title small {
    color: #999;

    font-size: 7px;
}

.portal-payout-card-title strong {
    margin-top: 1px;

    overflow: hidden;

    font-size: 10px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-payout-status {
    flex: 0 0 auto;

    padding: 5px 7px;

    border-radius: 20px;

    background: rgba(40,167,69,.09);
    color: #27843c;

    font-size: 7px;
    font-weight: 600;
}


/* AMOUNT */

.portal-payout-amount {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 8px;
    padding: 9px;

    border-radius: 9px;

    background: rgba(40,167,69,.05);
}

.portal-payout-amount > span {
    color: #777;

    font-size: 8px;
}

.portal-payout-amount > strong {
    color: #27843c;

    font-size: 14px;
    font-weight: 800;
}

.portal-payout-amount small {
    font-size: 7px;
    font-weight: 500;
}


/* DETAILS */

.portal-payout-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 6px;
}

.portal-payout-details > div {
    min-width: 0;

    padding: 7px;

    border-radius: 8px;

    background: #f8f9fa;
}

.portal-payout-details span,
.portal-payout-details strong {
    display: block;
}

.portal-payout-details span {
    color: #999;

    font-size: 7px;
}

.portal-payout-details i {
    color: var(--primary-color);
}

.portal-payout-details strong {
    margin-top: 2px;

    overflow: hidden;

    color: #555;

    font-size: 8px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* REFERENCE */

.portal-payout-reference {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;

    margin-top: 7px;
    padding: 7px 8px;

    border-radius: 8px;

    background: #fafafa;
}

.portal-payout-reference span {
    color: #888;

    font-size: 7px;
}

.portal-payout-reference code,
.portal-payout-reference strong {
    overflow-wrap: anywhere;

    color: #555;

    font-size: 8px;
}


/* DESCRIPTION */

.portal-payout-description {
    margin-top: 7px;
    padding: 8px;

    border-radius: 8px;

    background: #fafafa;
}

.portal-payout-description span {
    display: block;

    margin-bottom: 3px;

    color: #999;

    font-size: 7px;
}

.portal-payout-description p {
    margin: 0;

    color: #666;

    font-size: 8px;
    line-height: 1.7;
}


/* TOTAL */

.portal-payouts-total {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 10px;
    padding: 11px 12px;

    border: 1px solid rgba(40,167,69,.12);
    border-radius: 10px;

    background: rgba(40,167,69,.04);
}

.portal-payouts-total > span {
    color: #666;

    font-size: 9px;
    font-weight: 600;
}

.portal-payouts-total > strong {
    color: #27843c;

    font-size: 13px;
    font-weight: 800;
}

.portal-payouts-total small {
    font-size: 7px;
}


/* EMPTY */

.portal-payouts-empty {
    padding: 38px 15px;

    border: 1px solid #eee;
    border-radius: 14px;

    background: #fff;

    text-align: center;
}

.portal-payouts-empty-icon {
    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 10px;

    border-radius: 50%;

    background: rgba(92,45,145,.07);
    color: var(--primary-color);

    font-size: 21px;
}

.portal-payouts-empty h5 {
    margin-bottom: 4px;

    font-size: 13px;
}

.portal-payouts-empty p {
    margin: 0;

    color: #999;

    font-size: 8px;
}


/* MOBILE */

@media (max-width: 767.98px) {

    .portal-payouts-page {
        padding-right: 12px;
        padding-left: 12px;
    }

    .portal-payouts-header {
        padding: 12px;
    }

    .portal-payouts-header h3 {
        font-size: 15px;
    }

    .portal-payouts-header p {
        display: none;
    }

    .portal-payouts-scope {
        min-width: 90px;
    }

    .portal-payouts-list {
        grid-template-columns: 1fr;
    }

}


/* =====================================================
   FINANCIAL PENALTIES
===================================================== */

.portal-penalties-page {
    max-width: 1050px;
    margin: 0 auto;
    padding-bottom: 110px;
}


/* HEADER */

.portal-penalties-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 14px;
    padding: 16px;

    border: 1px solid #eee;
    border-radius: 16px;

    background: #fff;

    box-shadow: 0 4px 18px rgba(0,0,0,.035);
}

.portal-penalties-eyebrow {
    display: block;

    margin-bottom: 3px;

    color: var(--primary-color);

    font-size: 10px;
    font-weight: 600;
}

.portal-penalties-header h3 {
    margin: 0 0 3px;

    font-size: 18px;
    font-weight: 700;
}

.portal-penalties-header p {
    margin: 0;

    color: #888;

    font-size: 9px;
}

.portal-penalties-midan-photo {
    flex: 0 0 58px;

    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 13px;

    background: #f8f9fa;
}

.portal-penalties-midan-photo img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* FILTER */

.portal-penalties-filter {
    margin-bottom: 14px;
    padding: 14px;

    border: 1px solid #eee;
    border-radius: 14px;

    background: #fff;
}

.portal-penalties-filter-heading {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 12px;
}

.portal-penalties-filter-heading > i {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: rgba(92,45,145,.08);
    color: var(--primary-color);
}

.portal-penalties-filter-heading strong,
.portal-penalties-filter-heading small {
    display: block;
}

.portal-penalties-filter-heading strong {
    font-size: 11px;
}

.portal-penalties-filter-heading small {
    margin-top: 1px;

    color: #999;

    font-size: 8px;
}

.portal-penalties-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;
}

.portal-penalties-filter-grid label {
    display: block;

    margin-bottom: 4px;

    color: #777;

    font-size: 8px;
}

.portal-penalties-dropdown {
    width: 100%;
    min-height: 43px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 7px 10px;

    border: 1px solid #ddd;
    border-radius: 9px;

    background: #fff;
    color: #555;

    font-size: 10px;

    text-align: right;
}

.portal-penalties-dropdown span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.portal-penalties-dropdown i {
    color: var(--primary-color);
}

.portal-penalties-filter .dropdown-menu {
    width: 100%;

    text-align: right;
}


/* LIST HEADER */

.portal-penalties-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    margin-bottom: 9px;
}

.portal-penalties-list-header h4 {
    margin: 0;

    font-size: 13px;
    font-weight: 700;
}

.portal-penalties-list-header p {
    margin: 2px 0 0;

    color: #999;

    font-size: 8px;
}

.portal-penalties-list-header > span {
    padding: 5px 8px;

    border-radius: 20px;

    background: rgba(220,53,69,.07);
    color: #b22b39;

    font-size: 8px;
    font-weight: 600;
}


/* LIST */

.portal-penalties-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 9px;
}


/* CARD */

.portal-penalty-card {
    min-width: 0;

    padding: 11px;

    border: 1px solid #eee;
    border-radius: 12px;

    background: #fff;

    box-shadow: 0 4px 14px rgba(0,0,0,.025);
}


/* HEADER */

.portal-penalty-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;

    margin-bottom: 8px;
}

.portal-penalty-card-title {
    display: flex;
    align-items: center;
    gap: 8px;

    min-width: 0;
}

.portal-penalty-card-icon {
    flex: 0 0 35px;

    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: rgba(220,53,69,.07);
    color: #b22b39;
}

.portal-penalty-card-title > div {
    min-width: 0;
}

.portal-penalty-card-title small,
.portal-penalty-card-title strong {
    display: block;
}

.portal-penalty-card-title small {
    color: #999;

    font-size: 7px;
}

.portal-penalty-card-title strong {
    margin-top: 1px;

    color: #444;

    font-size: 10px;
    line-height: 1.5;
}

.portal-penalty-status {
    flex: 0 0 auto;

    padding: 5px 7px;

    border-radius: 20px;

    font-size: 7px;
}


/* AMOUNT */

.portal-penalty-amount {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 8px;
    padding: 9px;

    border-radius: 9px;

    background: rgba(220,53,69,.045);
}

.portal-penalty-amount > span {
    color: #777;

    font-size: 8px;
}

.portal-penalty-amount > strong {
    direction: ltr;

    color: #b22b39;

    font-size: 15px;
    font-weight: 800;

    white-space: nowrap;
}

.portal-penalty-amount small {
    font-size: 7px;
    font-weight: 500;
}


/* DETAILS */

.portal-penalty-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 6px;
}

.portal-penalty-details > div {
    min-width: 0;

    padding: 7px;

    border-radius: 8px;

    background: #f8f9fa;
}

.portal-penalty-details span,
.portal-penalty-details strong {
    display: block;
}

.portal-penalty-details span {
    color: #999;

    font-size: 7px;
}

.portal-penalty-details span i {
    margin-left: 3px;

    color: var(--primary-color);
}

.portal-penalty-details strong {
    margin-top: 2px;

    overflow: hidden;

    color: #555;

    font-size: 8px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ACTION */

.portal-penalty-action {
    margin-top: 8px;
}

.portal-penalty-pay,
.portal-penalty-paid,
.portal-penalty-unavailable {
    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;

    padding: 8px 10px;

    border-radius: 9px;

    font-size: 9px;
    font-weight: 600;
}

.portal-penalty-pay {
    background: rgba(40,167,69,.08);
    color: #27843c;

    text-decoration: none !important;
}

.portal-penalty-pay > div {
    display: flex;
    align-items: center;
    gap: 6px;
}

.portal-penalty-paid {
    justify-content: center;

    background: rgba(40,167,69,.07);
    color: #27843c;
}

.portal-penalty-unavailable {
    justify-content: center;

    background: #f8f9fa;
    color: #999;
}


/* EMPTY */

.portal-penalties-empty {
    padding: 38px 15px;

    border: 1px solid #eee;
    border-radius: 14px;

    background: #fff;

    text-align: center;
}

.portal-penalties-empty-icon {
    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 10px;

    border-radius: 50%;

    background: rgba(40,167,69,.07);
    color: #27843c;

    font-size: 21px;
}

.portal-penalties-empty h5 {
    margin-bottom: 4px;

    font-size: 13px;
}

.portal-penalties-empty p {
    margin: 0;

    color: #999;

    font-size: 8px;
}


/* MOBILE */

@media (max-width: 767.98px) {

    .portal-penalties-page {
        padding-right: 12px;
        padding-left: 12px;
    }

    .portal-penalties-header {
        padding: 12px;
    }

    .portal-penalties-header h3 {
        font-size: 15px;
    }

    .portal-penalties-midan-photo {
        flex-basis: 48px;

        width: 48px;
        height: 48px;
    }

    .portal-penalties-filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .portal-penalties-list {
        grid-template-columns: 1fr;
    }

}


/* =====================================================
   REQUESTS
===================================================== */

.portal-requests-page {
    max-width: 1050px;
    margin: 0 auto;
    padding-bottom: 110px;
}


/* HEADER */

.portal-requests-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 14px;
    padding: 16px;

    border: 1px solid #eee;
    border-radius: 16px;

    background: #fff;

    box-shadow: 0 4px 18px rgba(0,0,0,.035);
}

.portal-requests-eyebrow {
    display: block;

    margin-bottom: 3px;

    color: var(--primary-color);

    font-size: 10px;
    font-weight: 600;
}

.portal-requests-header h3 {
    margin: 0 0 3px;

    font-size: 18px;
    font-weight: 700;
}

.portal-requests-header p {
    margin: 0;

    color: #888;

    font-size: 9px;
}

.portal-requests-new {
    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 8px 12px;

    border-radius: 9px;

    background: var(--primary-color);
    color: #fff !important;

    font-size: 10px;
    font-weight: 600;

    text-decoration: none !important;
}


/* FILTER */

.portal-requests-filter {
    margin-bottom: 14px;
    padding: 14px;

    border: 1px solid #eee;
    border-radius: 14px;

    background: #fff;
}

.portal-requests-filter-heading {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 12px;
}

.portal-requests-filter-heading > i {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: rgba(92,45,145,.08);
    color: var(--primary-color);
}

.portal-requests-filter-heading strong,
.portal-requests-filter-heading small {
    display: block;
}

.portal-requests-filter-heading strong {
    font-size: 11px;
}

.portal-requests-filter-heading small {
    margin-top: 1px;

    color: #999;

    font-size: 8px;
}

.portal-requests-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;
}

.portal-requests-filter-grid label {
    display: block;

    margin-bottom: 4px;

    color: #777;

    font-size: 8px;
}

.portal-requests-dropdown {
    width: 100%;
    min-height: 43px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 7px 10px;

    border: 1px solid #ddd;
    border-radius: 9px;

    background: #fff;
    color: #555;

    font-size: 10px;

    text-align: right;
}

.portal-requests-dropdown span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.portal-requests-dropdown i {
    color: var(--primary-color);
}

.portal-requests-filter .dropdown-menu {
    width: 100%;

    text-align: right;
}


/* LIST HEADER */

.portal-requests-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    margin-bottom: 9px;
}

.portal-requests-list-header h4 {
    margin: 0;

    font-size: 13px;
    font-weight: 700;
}

.portal-requests-list-header p {
    margin: 2px 0 0;

    color: #999;

    font-size: 8px;
}

.portal-requests-list-header > span {
    padding: 5px 8px;

    border-radius: 20px;

    background: rgba(92,45,145,.07);
    color: var(--primary-color);

    font-size: 8px;
    font-weight: 600;
}


/* LIST */

.portal-requests-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 9px;
}


/* CARD */

.portal-request-card {
    min-width: 0;

    padding: 11px;

    border: 1px solid #eee;
    border-radius: 12px;

    background: #fff;

    box-shadow: 0 4px 14px rgba(0,0,0,.025);
}


/* CARD HEADER */

.portal-request-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;

    margin-bottom: 8px;
}

.portal-request-card-title {
    display: flex;
    align-items: center;
    gap: 8px;

    min-width: 0;
}

.portal-request-card-icon {
    flex: 0 0 35px;

    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: rgba(92,45,145,.08);
    color: var(--primary-color);
}

.portal-request-card-title > div {
    min-width: 0;
}

.portal-request-card-title small,
.portal-request-card-title strong {
    display: block;
}

.portal-request-card-title small {
    color: #999;

    font-size: 7px;
}

.portal-request-card-title strong {
    margin-top: 1px;

    color: #444;

    font-size: 10px;
    line-height: 1.5;
}

.portal-request-status {
    flex: 0 0 auto;

    max-width: 110px;

    padding: 5px 7px;

    border-radius: 20px;

    background: #f8f9fa;
    color: #666;

    font-size: 7px;
    font-weight: 600;

    text-align: center;
}


/* PRICE */

.portal-request-price {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 8px;
    padding: 9px;

    border-radius: 9px;

    background: rgba(92,45,145,.045);
}

.portal-request-price > span {
    color: #777;

    font-size: 8px;
}

.portal-request-price > strong {
    direction: ltr;

    color: var(--primary-color);

    font-size: 15px;
    font-weight: 800;

    white-space: nowrap;
}

.portal-request-price small {
    font-size: 7px;
    font-weight: 500;
}


/* DETAILS */

.portal-request-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 6px;
}

.portal-request-details > div {
    min-width: 0;

    padding: 7px;

    border-radius: 8px;

    background: #f8f9fa;
}

.portal-request-details > div.full {
    grid-column: 1 / -1;
}

.portal-request-details span,
.portal-request-details strong {
    display: block;
}

.portal-request-details span {
    color: #999;

    font-size: 7px;
}

.portal-request-details span i {
    margin-left: 3px;

    color: var(--primary-color);
}

.portal-request-details strong {
    margin-top: 2px;

    overflow: hidden;

    color: #555;

    font-size: 8px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ACTION */

.portal-request-action {
    margin-top: 8px;
}

.portal-request-action-link,
.portal-request-action-state {
    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;

    padding: 8px 10px;

    border-radius: 9px;

    font-size: 9px;
    font-weight: 600;
}

.portal-request-action-link {
    border: 1px solid rgba(92,45,145,.12);

    background: rgba(92,45,145,.05);
    color: var(--primary-color);

    text-decoration: none !important;
}

.portal-request-action-link > div {
    display: flex;
    align-items: center;
    gap: 6px;
}

.portal-request-action-link.pay {
    border: 0;

    background: rgba(40,167,69,.08);
    color: #27843c;
}

.portal-request-action-link.rejected {
    border: 0;

    background: rgba(220,53,69,.07);
    color: #b22b39;
}

.portal-request-action-state {
    justify-content: center;
}

.portal-request-action-state.warning {
    background: rgba(255,193,7,.10);
    color: #8a6d00;
}

.portal-request-action-state.info {
    background: rgba(23,162,184,.08);
    color: #167587;
}

.portal-request-action-state.muted {
    background: #f8f9fa;
    color: #888;
}


/* EMPTY */

.portal-requests-empty {
    padding: 38px 15px;

    border: 1px solid #eee;
    border-radius: 14px;

    background: #fff;

    text-align: center;
}

.portal-requests-empty-icon {
    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 10px;

    border-radius: 50%;

    background: rgba(92,45,145,.07);
    color: var(--primary-color);

    font-size: 20px;
}

.portal-requests-empty h5 {
    margin-bottom: 4px;

    font-size: 13px;
}

.portal-requests-empty p {
    margin: 0 0 12px;

    color: #999;

    font-size: 8px;
}

.portal-requests-empty .btn {
    min-height: 42px;

    padding: 8px 14px;

    border-radius: 9px;

    font-size: 9px;
}


/* MOBILE */

@media (max-width: 767.98px) {

    .portal-requests-page {
        padding-right: 12px;
        padding-left: 12px;
    }

    .portal-requests-header {
        padding: 12px;
    }

    .portal-requests-header h3 {
        font-size: 15px;
    }

    .portal-requests-new {
        width: 42px;
        padding: 0;
    }

    .portal-requests-new span {
        display: none;
    }

    .portal-requests-filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .portal-requests-list {
        grid-template-columns: 1fr;
    }

}


/* =====================================================
   REQUEST TYPES
===================================================== */

.portal-request-types-page {
    max-width: 950px;
    margin: 0 auto;
    padding-bottom: 110px;
}


/* HEADER */

.portal-request-types-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 14px;
    padding: 16px;

    border: 1px solid #eee;
    border-radius: 16px;

    background: #fff;

    box-shadow: 0 4px 18px rgba(0,0,0,.035);
}

.portal-request-types-eyebrow {
    display: block;

    margin-bottom: 3px;

    color: var(--primary-color);

    font-size: 10px;
    font-weight: 600;
}

.portal-request-types-header h3 {
    margin: 0 0 3px;

    font-size: 18px;
    font-weight: 700;
}

.portal-request-types-header p {
    margin: 0;

    color: #888;

    font-size: 9px;
}

.portal-request-types-header-icon {
    flex: 0 0 48px;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: rgba(92,45,145,.08);
    color: var(--primary-color);

    font-size: 19px;
}


/* LIST */

.portal-request-types-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px;
}


/* CARD */

.portal-request-type-card {
    min-width: 0;

    display: flex;
    flex-direction: column;

    padding: 13px;

    border: 1px solid #eee;
    border-radius: 13px;

    background: #fff;
    color: inherit;

    box-shadow: 0 4px 14px rgba(0,0,0,.025);

    text-decoration: none !important;
}

.portal-request-type-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 10px;

    border-radius: 10px;

    background: rgba(92,45,145,.08);
    color: var(--primary-color);

    font-size: 15px;
}

.portal-request-type-content {
    flex: 1;
    min-width: 0;
}

.portal-request-type-content > span {
    display: block;

    margin-bottom: 2px;

    color: #999;

    font-size: 7px;
}

.portal-request-type-content h4 {
    margin: 0;

    color: #333;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.portal-request-type-price {
    margin-top: 8px;
    padding: 7px 8px;

    border-radius: 8px;

    background: #f8f9fa;
    color: #666;

    font-size: 9px;
    font-weight: 600;
}


/* ACTION */

.portal-request-type-action {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 10px;
    padding-top: 9px;

    border-top: 1px solid #eee;

    color: var(--primary-color);

    font-size: 9px;
    font-weight: 600;
}

.portal-request-type-action i {
    font-size: 8px;
}


/* EMPTY */

.portal-request-types-empty {
    padding: 38px 15px;

    border: 1px solid #eee;
    border-radius: 14px;

    background: #fff;

    text-align: center;
}

.portal-request-types-empty-icon {
    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 10px;

    border-radius: 50%;

    background: rgba(92,45,145,.07);
    color: var(--primary-color);

    font-size: 20px;
}

.portal-request-types-empty h5 {
    margin-bottom: 4px;

    font-size: 13px;
}

.portal-request-types-empty p {
    margin: 0;

    color: #999;

    font-size: 8px;
}


/* MOBILE */

@media (max-width: 767.98px) {

    .portal-request-types-page {
        padding-right: 12px;
        padding-left: 12px;
    }

    .portal-request-types-header {
        padding: 12px;
    }

    .portal-request-types-header h3 {
        font-size: 16px;
    }

    .portal-request-types-header-icon {
        flex-basis: 44px;

        width: 44px;
        height: 44px;
    }

    .portal-request-types-list {
        grid-template-columns: 1fr;
    }

}

/* =====================================================
   REQUEST FORM
===================================================== */

.portal-request-form-page {
    max-width: 760px;
    margin: 0 auto;
    padding-bottom: 110px;
}


/* HEADER */

.portal-request-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 14px;
    padding: 16px;

    border: 1px solid #eee;
    border-radius: 16px;

    background: #fff;

    box-shadow: 0 4px 18px rgba(0,0,0,.035);
}

.portal-request-form-eyebrow {
    display: block;

    margin-bottom: 3px;

    color: var(--primary-color);

    font-size: 10px;
    font-weight: 600;
}

.portal-request-form-header h3 {
    margin: 0 0 3px;

    font-size: 18px;
    font-weight: 700;
}

.portal-request-form-header p {
    margin: 0;

    color: #888;

    font-size: 9px;
}

.portal-request-form-header-icon {
    flex: 0 0 48px;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: rgba(92,45,145,.08);
    color: var(--primary-color);

    font-size: 18px;
}


/* CARD */

.portal-request-form-card {
    padding: 15px;

    border: 1px solid #eee;
    border-radius: 15px;

    background: #fff;

    box-shadow: 0 4px 16px rgba(0,0,0,.025);
}


/* SECTION TITLE */

.portal-request-form-section-title {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 14px;
    padding-bottom: 11px;

    border-bottom: 1px solid #eee;
}

.portal-request-form-section-title > span {
    flex: 0 0 36px;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: rgba(92,45,145,.08);
    color: var(--primary-color);
}

.portal-request-form-section-title h4 {
    margin: 0;

    font-size: 13px;
    font-weight: 700;
}

.portal-request-form-section-title small {
    display: block;

    margin-top: 2px;

    color: #999;

    font-size: 8px;
}


/* FIELDS */

.portal-request-form-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
}

.portal-request-form-field.full {
    grid-column: 1 / -1;
}

.portal-request-form-field label {
    display: block;

    margin-bottom: 5px;

    color: #666;

    font-size: 9px;
    font-weight: 600;
}

.portal-request-form-field .form-control {
    min-height: 45px;

    border: 1px solid #ddd;
    border-radius: 9px;

    background: #fff;

    font-size: 10px;
}


/* SELECT2 */

.portal-request-form-field .select2-container {
    width: 100% !important;
}

.portal-request-form-field .select2-container--bootstrap4 .select2-selection {
    min-height: 45px;

    border-radius: 9px;
}

.portal-request-form-field .select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
    line-height: 43px;

    font-size: 10px;
}

.portal-request-form-field .select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow {
    height: 43px;
}


/* ACTIONS */

.portal-request-form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;

    margin-top: 16px;
    padding-top: 14px;

    border-top: 1px solid #eee;
}

.portal-request-form-actions .btn,
.portal-request-form-back {
    min-height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    border-radius: 9px;

    font-size: 10px;
    font-weight: 600;
}

.portal-request-form-back {
    border: 1px solid #e5e5e5;

    background: #fff;
    color: #666;

    text-decoration: none !important;
}


/* MOBILE */

@media (max-width: 575.98px) {

    .portal-request-form-page {
        padding-right: 12px;
        padding-left: 12px;
    }

    .portal-request-form-header {
        padding: 12px;
    }

    .portal-request-form-header h3 {
        font-size: 16px;
    }

    .portal-request-form-header-icon {
        flex-basis: 44px;

        width: 44px;
        height: 44px;
    }

    .portal-request-form-card {
        padding: 13px;
    }

    .portal-request-form-fields {
        grid-template-columns: 1fr;
    }

    .portal-request-form-field.full {
        grid-column: auto;
    }

}


/* =====================================================
   REQUEST VIEW
===================================================== */

.portal-request-view-page {
    max-width: 760px;
    margin: 0 auto;
    padding-bottom: 110px;
}


/* HEADER */

.portal-request-view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 14px;
    padding: 16px;

    border: 1px solid #eee;
    border-radius: 16px;

    background: #fff;

    box-shadow: 0 4px 18px rgba(0,0,0,.035);
}

.portal-request-view-eyebrow {
    display: block;
    margin-bottom: 3px;

    color: var(--primary-color);

    font-size: 10px;
    font-weight: 600;
}

.portal-request-view-header h3 {
    margin: 0 0 3px;

    font-size: 18px;
    font-weight: 700;
}

.portal-request-view-header p {
    margin: 0;

    color: #888;

    font-size: 9px;
}

.portal-request-view-status {
    flex: 0 0 auto;

    max-width: 130px;

    padding: 6px 9px;

    border-radius: 20px;

    background: #f8f9fa;
    color: #555;

    font-size: 8px;
    font-weight: 600;

    text-align: center;
}


/* CARD */

.portal-request-view-card {
    margin-bottom: 12px;
    padding: 15px;

    border: 1px solid #eee;
    border-radius: 15px;

    background: #fff;

    box-shadow: 0 4px 16px rgba(0,0,0,.025);
}

.portal-request-view-section-title {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 13px;
    padding-bottom: 11px;

    border-bottom: 1px solid #eee;
}

.portal-request-view-section-title > span {
    flex: 0 0 36px;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: rgba(92,45,145,.08);
    color: var(--primary-color);
}

.portal-request-view-section-title h4 {
    margin: 0;

    font-size: 13px;
    font-weight: 700;
}

.portal-request-view-section-title small {
    display: block;
    margin-top: 2px;

    color: #999;

    font-size: 8px;
}


/* DETAILS */

.portal-request-view-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 7px;
}

.portal-request-view-details > div {
    min-width: 0;

    padding: 9px;

    border-radius: 9px;

    background: #f8f9fa;
}

.portal-request-view-details span,
.portal-request-view-details strong {
    display: block;
}

.portal-request-view-details span {
    color: #999;

    font-size: 7px;
}

.portal-request-view-details span i {
    margin-left: 3px;

    color: var(--primary-color);
}

.portal-request-view-details strong {
    margin-top: 3px;

    color: #444;

    font-size: 9px;
}

.portal-request-view-price {
    direction: ltr;

    color: var(--primary-color) !important;

    font-size: 13px !important;
    font-weight: 800;
}

.portal-request-view-price small {
    display: inline;

    color: #888;

    font-size: 7px;
    font-weight: 500;
}


/* STATES */

.portal-request-view-state {
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;

    margin-bottom: 10px;
    padding: 11px;

    border-radius: 11px;
}

.portal-request-view-state.success {
    background: rgba(40,167,69,.07);
    color: #27843c;
}

.portal-request-view-state.payment {
    background: rgba(40,167,69,.07);
    color: #27843c;
}

.portal-request-view-state.warning {
    grid-template-columns: auto minmax(0,1fr);

    background: rgba(255,193,7,.10);
    color: #8a6d00;
}

.portal-request-view-state.info {
    grid-template-columns: auto minmax(0,1fr);

    background: rgba(23,162,184,.08);
    color: #167587;
}

.portal-request-view-state-icon {
    flex: 0 0 36px;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: rgba(255,255,255,.65);
}

.portal-request-view-state strong,
.portal-request-view-state small {
    display: block;
}

.portal-request-view-state strong {
    font-size: 9px;
}

.portal-request-view-state small {
    margin-top: 2px;

    opacity: .8;

    font-size: 7px;
}

.portal-request-view-state-action {
    min-height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    padding: 7px 10px;

    border-radius: 8px;

    background: #fff;
    color: inherit !important;

    font-size: 8px;
    font-weight: 600;

    text-decoration: none !important;
}


/* REJECTION */

.portal-request-view-rejection {
    margin-bottom: 10px;
    padding: 11px;

    border: 1px solid rgba(220,53,69,.12);
    border-radius: 11px;

    background: rgba(220,53,69,.05);
}

.portal-request-view-rejection-title {
    display: flex;
    align-items: center;
    gap: 6px;

    margin-bottom: 7px;

    color: #b22b39;
}

.portal-request-view-rejection-title strong {
    font-size: 9px;
}

.portal-request-view-rejection-text {
    color: #666;

    font-size: 8px;
    line-height: 1.8;
}


/* FOOTER */

.portal-request-view-footer {
    margin-top: 14px;
}

.portal-request-view-back {
    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    border: 1px solid #e5e5e5;
    border-radius: 9px;

    background: #fff;
    color: #666;

    font-size: 9px;
    font-weight: 600;

    text-decoration: none !important;
}


/* MOBILE */

@media (max-width: 575.98px) {

    .portal-request-view-page {
        padding-right: 12px;
        padding-left: 12px;
    }

    .portal-request-view-header {
        padding: 12px;
    }

    .portal-request-view-header h3 {
        font-size: 16px;
    }

    .portal-request-view-details {
        grid-template-columns: 1fr 1fr;
    }

    .portal-request-view-state.success,
    .portal-request-view-state.payment {
        grid-template-columns: auto minmax(0,1fr);
    }

    .portal-request-view-state-action {
        grid-column: 1 / -1;

        width: 100%;
    }

}


/* =====================================================
   USER DASHBOARD
===================================================== */

.portal-dashboard-page {
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 110px;
}


/* FILTER */

.portal-dashboard-filter {
    margin-bottom: 14px;
    padding: 14px;

    border: 1px solid #eee;
    border-radius: 14px;

    background: #fff;
}

.portal-dashboard-filter-heading {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 12px;
}

.portal-dashboard-filter-heading > i {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: rgba(92,45,145,.08);
    color: var(--primary-color);
}

.portal-dashboard-filter-heading strong,
.portal-dashboard-filter-heading small {
    display: block;
}

.portal-dashboard-filter-heading strong {
    font-size: 11px;
}

.portal-dashboard-filter-heading small {
    margin-top: 1px;

    color: #999;

    font-size: 8px;
}

.portal-dashboard-filter-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
}

.portal-dashboard-filter-grid label {
    display: block;

    margin-bottom: 4px;

    color: #777;

    font-size: 8px;
}

.portal-dashboard-dropdown {
    width: 100%;
    min-height: 43px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 7px 10px;

    border: 1px solid #ddd;
    border-radius: 9px;

    background: #fff;
    color: #555;

    font-size: 10px;

    text-align: right;
}

.portal-dashboard-dropdown span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.portal-dashboard-dropdown i {
    color: var(--primary-color);
}

.portal-dashboard-filter .dropdown-menu {
    width: 100%;
    text-align: right;
}


/* HERO */

.portal-dashboard-hero {
    display: flex;
    align-items: center;
    gap: 13px;

    margin-bottom: 9px;
    padding: 15px;

    border: 1px solid #eee;
    border-radius: 16px;

    background: #fff;

    box-shadow: 0 4px 18px rgba(0,0,0,.035);
}

.portal-dashboard-user-photo {
    flex: 0 0 64px;

    width: 64px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 50%;

    background: #f8f9fa;
}

.portal-dashboard-user-photo img {
    width: 100% !important;
    height: 100% !important;

    object-fit: cover;

    border-radius: 50% !important;
}

.portal-dashboard-user-info {
    flex: 1;
    min-width: 0;
}

.portal-dashboard-eyebrow {
    display: block;

    margin-bottom: 2px;

    color: var(--primary-color);

    font-size: 9px;
    font-weight: 600;
}

.portal-dashboard-user-info h2 {
    margin: 0;

    font-size: 18px;
    font-weight: 800;
}

.portal-dashboard-membership-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;

    margin-top: 7px;
}

.portal-dashboard-membership-badges span {
    padding: 4px 7px;

    border-radius: 7px;

    background: #f8f9fa;
    color: #666;

    font-size: 7px;
}


/* OVERALL */

.portal-dashboard-overall {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 7px;

    margin-bottom: 14px;
}

.portal-dashboard-overall > div {
    padding: 10px 5px;

    border: 1px solid #eee;
    border-radius: 10px;

    background: #fff;

    text-align: center;
}

.portal-dashboard-overall strong,
.portal-dashboard-overall span {
    display: block;
}

.portal-dashboard-overall strong {
    color: #333;

    font-size: 17px;
    font-weight: 800;
}

.portal-dashboard-overall span {
    margin-top: 2px;

    color: #888;

    font-size: 8px;
}


/* SECTION */

.portal-dashboard-section {
    margin-bottom: 14px;
    padding: 14px;

    border: 1px solid #eee;
    border-radius: 15px;

    background: #fff;

    box-shadow: 0 4px 16px rgba(0,0,0,.025);
}

.portal-dashboard-section-title {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 13px;
    padding-bottom: 11px;

    border-bottom: 1px solid #eee;
}

.portal-dashboard-section-title > span {
    flex: 0 0 35px;

    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: rgba(92,45,145,.08);
    color: var(--primary-color);
}

.portal-dashboard-section-title h4 {
    margin: 0;

    font-size: 13px;
    font-weight: 700;
}

.portal-dashboard-section-title small {
    display: block;

    margin-top: 2px;

    color: #999;

    font-size: 8px;
}


/* MEMBERSHIPS */

.portal-dashboard-memberships {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
}

.portal-dashboard-membership {
    padding: 10px;

    border-radius: 10px;

    background: #f8f9fa;
}

.portal-dashboard-membership > strong {
    display: block;

    margin-bottom: 6px;

    font-size: 10px;
}

.portal-dashboard-membership > div {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.portal-dashboard-membership span {
    padding: 4px 6px;

    border-radius: 7px;

    background: #fff;
    color: #777;

    font-size: 7px;
}


/* ROLE */

.portal-dashboard-role-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 8px;
}

.portal-dashboard-role-card {
    padding: 10px;

    border-radius: 10px;

    background: #f8f9fa;
}

.portal-dashboard-role-card h5 {
    margin-bottom: 8px;

    font-size: 10px;
    font-weight: 700;
}

.portal-dashboard-role-stats {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 5px;
}

.portal-dashboard-role-stats > div {
    padding: 6px;

    border-radius: 7px;

    background: #fff;

    text-align: center;
}

.portal-dashboard-role-stats span,
.portal-dashboard-role-stats strong {
    display: block;
}

.portal-dashboard-role-stats span {
    color: #999;

    font-size: 6px;
}

.portal-dashboard-role-stats strong {
    margin-top: 2px;

    font-size: 10px;
}


/* BEST BY ROLE */

.portal-dashboard-best-roles {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 8px;
}

.portal-dashboard-best-role {
    padding: 10px;

    border-radius: 10px;

    background: #f8f9fa;
}

.portal-dashboard-best-role > span {
    display: block;

    margin-bottom: 5px;

    color: #888;

    font-size: 8px;
}

.portal-dashboard-best-role > strong {
    display: block;

    font-size: 11px;
}

.portal-dashboard-best-role > div {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;

    margin-top: 7px;
}

.portal-dashboard-best-role > div > span {
    padding: 4px 6px;

    border-radius: 7px;

    background: #fff;
    color: #777;

    font-size: 7px;
}


/* ACCOUNT BEST */

.portal-dashboard-account-best {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
}

.portal-dashboard-account-best-card {
    padding: 11px;

    border-radius: 10px;

    background: #f8f9fa;
}

.portal-dashboard-account-best-card > span {
    display: block;

    color: #888;

    font-size: 8px;
}

.portal-dashboard-account-best-card h4 {
    margin: 4px 0 9px;

    font-size: 12px;
    font-weight: 700;
}

.portal-dashboard-account-best-data {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 5px;
}

.portal-dashboard-account-best-data > div {
    padding: 6px;

    border-radius: 7px;

    background: #fff;
}

.portal-dashboard-account-best-data span,
.portal-dashboard-account-best-data strong {
    display: block;
}

.portal-dashboard-account-best-data span {
    color: #999;

    font-size: 6px;
}

.portal-dashboard-account-best-data strong {
    margin-top: 2px;

    color: #444;

    font-size: 8px;
}


/* TABS */

.portal-dashboard-tabs {
    margin-bottom: 10px;
    padding: 5px;

    border-radius: 11px;

    background: #f7f7f8;
}

.portal-dashboard-tabs .nav {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 5px;
}

.portal-dashboard-tabs .nav-item {
    margin: 0;
}

.portal-dashboard-tabs .nav-link {
    min-height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    border: 0 !important;
    border-radius: 8px;

    color: #777;

    font-size: 8px;
    font-weight: 600;
}

.portal-dashboard-tabs .nav-link.active {
    background: #fff;
    color: var(--primary-color);

    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.portal-dashboard-tabs .nav-link span {
    min-width: 20px;

    padding: 2px 5px;

    border-radius: 20px;

    background: rgba(92,45,145,.07);

    font-size: 7px;
}

.portal-dashboard-tab-content {
    margin-top: 8px;
}


/* NOTIFICATIONS */

.portal-dashboard-notifications {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 7px;
}

.portal-dashboard-notification {
    padding: 9px;

    border: 1px solid #eee;
    border-radius: 9px;

    background: #fff;
}

.portal-dashboard-notification-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;

    margin-bottom: 6px;
}

.portal-dashboard-channel,
.portal-dashboard-notification-status {
    padding: 4px 6px;

    border-radius: 20px;

    font-size: 6px;
    font-weight: 600;
}

.portal-dashboard-channel {
    background: #f8f9fa;
    color: #666;
}

.portal-dashboard-channel.email {
    background: rgba(0,123,255,.08);
    color: #2768b2;
}

.portal-dashboard-channel.sms {
    background: rgba(255,193,7,.10);
    color: #8a6d00;
}

.portal-dashboard-channel.whatsapp {
    background: rgba(40,167,69,.09);
    color: #27843c;
}

.portal-dashboard-notification-status.seen {
    background: rgba(40,167,69,.08);
    color: #27843c;
}

.portal-dashboard-notification-status.unseen {
    background: rgba(220,53,69,.07);
    color: #b22b39;
}

.portal-dashboard-notification p {
    margin: 0 0 6px;

    color: #555;

    font-size: 8px;
    line-height: 1.7;
}

.portal-dashboard-notification > small {
    color: #999;

    font-size: 6px;
}


/* EMPTY */

.portal-dashboard-no-data,
.portal-dashboard-empty {
    padding: 14px 10px;

    border-radius: 8px;

    background: #fafafa;
    color: #999;

    font-size: 8px;

    text-align: center;
}


/* MOBILE */

@media (max-width: 767.98px) {

    .portal-dashboard-page {
        padding-right: 12px;
        padding-left: 12px;
    }

    .portal-dashboard-filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .portal-dashboard-hero {
        padding: 12px;
    }

    .portal-dashboard-user-photo {
        flex-basis: 56px;

        width: 56px;
        height: 56px;
    }

    .portal-dashboard-user-info h2 {
        font-size: 15px;
    }

    .portal-dashboard-overall {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .portal-dashboard-memberships {
        grid-template-columns: 1fr;
    }

    .portal-dashboard-role-grid {
        grid-template-columns: 1fr;
    }

    .portal-dashboard-best-roles {
        grid-template-columns: 1fr;
    }

    .portal-dashboard-account-best {
        grid-template-columns: 1fr;
    }

    .portal-dashboard-notifications {
        grid-template-columns: 1fr;
    }

}


/* =====================================================
   DASHBOARD HORSES
===================================================== */

.portal-dashboard-horses-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;
}

.portal-dashboard-horse-card {
    min-width: 0;

    padding: 10px;

    border: 1px solid #eee;
    border-radius: 10px;

    background: #fff;
}


/* HEAD */

.portal-dashboard-horse-head {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 8px;
}

.portal-dashboard-horse-number {
    flex: 0 0 30px;

    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: rgba(92,45,145,.07);
    color: var(--primary-color);

    font-size: 8px;
    font-weight: 700;
}

.portal-dashboard-horse-title {
    flex: 1;
    min-width: 0;
}

.portal-dashboard-horse-title strong,
.portal-dashboard-horse-title small {
    display: block;
}

.portal-dashboard-horse-title strong {
    overflow: hidden;

    color: #333;

    font-size: 10px;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-dashboard-horse-title small {
    margin-top: 1px;

    color: #999;

    font-size: 7px;
}

.portal-dashboard-horse-rating {
    flex: 0 0 auto;

    min-width: 50px;

    padding: 5px 7px;

    border-radius: 8px;

    background: rgba(23,162,184,.07);

    text-align: center;
}

.portal-dashboard-horse-rating span,
.portal-dashboard-horse-rating strong {
    display: block;
}

.portal-dashboard-horse-rating span {
    color: #888;

    font-size: 6px;
}

.portal-dashboard-horse-rating strong {
    margin-top: 1px;

    color: #167587;

    font-size: 10px;
}


/* STATS */

.portal-dashboard-horse-stats {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 5px;

    margin-bottom: 7px;
}

.portal-dashboard-horse-stats > div {
    padding: 6px;

    border-radius: 7px;

    background: #f8f9fa;

    text-align: center;
}

.portal-dashboard-horse-stats span,
.portal-dashboard-horse-stats strong {
    display: block;
}

.portal-dashboard-horse-stats span {
    color: #999;

    font-size: 6px;
}

.portal-dashboard-horse-stats strong {
    margin-top: 2px;

    color: #444;

    font-size: 10px;
}


/* INFO */

.portal-dashboard-horse-info {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 5px;
}

.portal-dashboard-horse-info > div {
    min-width: 0;

    padding: 6px;

    border-radius: 7px;

    background: #fafafa;
}

.portal-dashboard-horse-info > div.full {
    grid-column: 1 / -1;
}

.portal-dashboard-horse-info span,
.portal-dashboard-horse-info strong {
    display: block;
}

.portal-dashboard-horse-info span {
    color: #999;

    font-size: 6px;
}

.portal-dashboard-horse-info span i {
    margin-left: 3px;

    color: var(--primary-color);
}

.portal-dashboard-horse-info strong {
    margin-top: 2px;

    overflow: hidden;

    color: #555;

    font-size: 8px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* MOBILE */

@media (max-width: 767.98px) {

    .portal-dashboard-horses-list {
        grid-template-columns: 1fr;
    }

}


/* =====================================================
   LEFT ACTIONS
===================================================== */

.portal-navbar-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}


/* MENU */

.portal-navbar-menu-button {
    width: 42px !important;
    height: 42px !important;

    display: flex !important;
    align-items: center;
    justify-content: center;

    padding: 0 !important;

    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 10px !important;

    background: rgba(255,255,255,.08) !important;
    color: #fff !important;

    font-size: 15px !important;
}


/* MIDAN */

.portal-navbar-midan {
    min-height: 42px;

    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 7px 11px !important;

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;

    background: rgba(255,255,255,.08);
    color: #fff !important;

    font-size: 9px;
    font-weight: 600;
}

.portal-navbar-midan i {
    font-size: 10px;
}


/* =====================================================
   USER AREA
===================================================== */

.portal-navbar-user-area {
    display: flex;
    align-items: center;
    gap: 4px;
}

.portal-navbar-user {
    position: relative;
}

.portal-navbar-profile-dropdown {
    width: 230px;

    right: 0 !important;
    left: auto !important;

    overflow: hidden;

    padding: 0 !important;

    border: 1px solid #eee !important;
    border-radius: 13px !important;

    background: #fff;

    box-shadow: 0 8px 28px rgba(0,0,0,.10) !important;
}


/* =====================================================
   PORTAL BOTTOM NAVIGATION
===================================================== */

.portal-footer {
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* NAV */

.portal-bottom-nav.navigation-bar.fixed-bottom {
    height: 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;

    margin: 0 !important;
    padding: 5px 6px !important;

    border-radius: 14px 14px 0 0;
    box-sizing: border-box;

    background: #fff;

    overflow: hidden;
}

.portal-bottom-nav .portal-bottom-nav-items {
    width: 100% !important;
    height: 58px !important;
    min-height: 58px !important;

    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    align-items: center !important;

    margin: 0 !important;
    padding: 0 !important;
}

.portal-bottom-nav .item {
    height: 58px !important;
    min-height: 58px !important;

    margin: 0 !important;
    padding: 0 !important;
}

.portal-bottom-nav .link {
    width: 100% !important;
    height: 58px !important;
    min-height: 58px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;

    margin: 0 !important;
    padding: 3px 1px !important;

    line-height: 1 !important;
}

.portal-bottom-nav-icon {
    width: 26px !important;
    height: 25px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
}

.portal-bottom-nav-icon i {
    display: block !important;

    margin: 0 !important;
    padding: 0 !important;

    font-size: 17px !important;
    line-height: 1 !important;
}

.portal-bottom-nav-label {
    display: block !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    font-size: 7px !important;
    line-height: 1 !important;

    text-align: center !important;
}

/* ITEMS */

.portal-bottom-nav-items {
    height: 54px;
}

.portal-bottom-nav .item {
    height: 54px;
}


/* LINK */

.portal-bottom-nav .link {
    width: 100%;
    height: 54px;
    min-height: 54px;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;

    margin: 0 !important;
    padding: 3px 1px !important;

    line-height: 1 !important;
}


/* ICON */

.portal-bottom-nav-icon {
    width: 28px;
    height: 27px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto !important;
}

.portal-bottom-nav-icon i {
    display: block !important;

    margin: 0 !important;
    padding: 0 !important;

    font-size: 17px !important;
    line-height: 1 !important;
}


/* LABEL */

.portal-bottom-nav-label {
    display: block !important;

    width: 100%;

    margin: 0 !important;
    padding: 0 !important;

    color: inherit;

    font-size: 7px;
    font-weight: 600;
    line-height: 1.2 !important;

    text-align: center !important;
    white-space: nowrap;
}


/* ACTIVE */

.portal-bottom-nav .item.active .link {
    color: var(--primary-color);
}

.portal-bottom-nav .item.active .portal-bottom-nav-icon {
    background: rgba(92,45,145,.09);
    color: var(--primary-color);
}

.portal-bottom-nav .item.active .portal-bottom-nav-label {
    color: var(--primary-color);
    font-weight: 700;
}


/* SMALL ACTIVE INDICATOR */

.portal-bottom-nav .item.active .link:after {
    content: "";

    position: absolute;

    bottom: 0;

    width: 16px;
    height: 2px;

    border-radius: 5px;

    background: var(--primary-color);
}


/* OLD POINTER */

.portal-bottom-nav .pointer {
    display: none !important;
}


/* =====================================================
   SCROLL TO TOP
===================================================== */

.portal-scroll-top {
    position: fixed;

    right: 14px;
    bottom: calc(82px + env(safe-area-inset-bottom));

    width: 38px;
    height: 38px;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid rgba(92,45,145,.10);
    border-radius: 11px;

    background: #fff;
    color: var(--primary-color);

    box-shadow: 0 5px 16px rgba(0,0,0,.10);

    z-index: 1025;

    transition:
            transform .15s ease,
            opacity .15s ease;
}

.portal-scroll-top i {
    color: var(--primary-color);

    font-size: 12px;
}

.portal-scroll-top:hover {
    transform: translateY(-2px);
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 575.98px) {

    .portal-bottom-nav {
        min-height: 66px;
    }

    .portal-bottom-nav .link {
        min-height: 52px;

        margin: 0 1px;
    }

    .portal-bottom-nav-icon {
        width: 28px;
        height: 26px;
    }

    .portal-bottom-nav-icon i {
        font-size: 16px !important;
    }

    .portal-bottom-nav-label {
        font-size: 6.5px;
    }

}




/* USER LINK */

.portal-navbar-user-link {
    min-height: 48px;

    display: flex !important;
    align-items: center !important;
    gap: 7px;

    padding: 5px 8px !important;

    border-radius: 11px;

    color: #fff !important;
}

.portal-navbar-user-link:hover {
    background: rgba(255,255,255,.08);
}


/* AVATAR */

.portal-navbar-avatar {
    flex: 0 0 36px;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border: 2px solid rgba(255,255,255,.35);
    border-radius: 50%;

    background: rgba(255,255,255,.12);
}

.portal-navbar-avatar img {
    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;

    object-fit: cover;

    border-radius: 50% !important;
}


/* USER TEXT */

.portal-navbar-user-info {
    min-width: 0;

    line-height: 1.3;
}

.portal-navbar-user-info strong,
.portal-navbar-user-info small {
    display: block;
}

.portal-navbar-user-info strong {
    max-width: 145px;

    overflow: hidden;

    color: #fff;

    font-size: 9px;
    font-weight: 600;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-navbar-user-info small {
    margin-top: 1px;

    color: rgba(255,255,255,.65);

    font-size: 7px;
}

.portal-navbar-user-arrow {
    margin-right: 2px;

    color: rgba(255,255,255,.65);

    font-size: 7px;
}


/* =====================================================
   PROFILE DROPDOWN
===================================================== */

.portal-navbar-profile-dropdown {
    width: 230px;

    overflow: hidden;

    padding: 0 !important;

    border: 1px solid #eee !important;
    border-radius: 13px !important;

    background: #fff;

    box-shadow: 0 8px 28px rgba(0,0,0,.10) !important;
}


/* DROPDOWN HEAD */

.portal-navbar-profile-head {
    display: flex;
    align-items: center;
    gap: 9px;

    padding: 12px;

    border-bottom: 1px solid #eee;
}

.portal-navbar-profile-avatar {
    flex: 0 0 39px;

    width: 39px;
    height: 39px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 50%;

    background: #f7f7f8;
}

.portal-navbar-profile-avatar img {
    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;

    object-fit: cover;

    border-radius: 50% !important;
}

.portal-navbar-profile-head strong,
.portal-navbar-profile-head small {
    display: block;
}

.portal-navbar-profile-head strong {
    color: #333;

    font-size: 9px;
}

.portal-navbar-profile-head small {
    margin-top: 2px;

    color: #999;

    font-size: 7px;
}


/* LINKS */

.portal-navbar-profile-links {
    padding: 6px;
}

.portal-navbar-profile-links .dropdown-item {
    min-height: 39px;

    display: flex;
    align-items: center;
    gap: 8px;

    margin: 2px 0;
    padding: 7px 9px;

    border-radius: 8px;

    color: #555;

    font-size: 9px;
}

.portal-navbar-profile-links .dropdown-item i {
    width: 18px;

    color: #999;

    font-size: 10px;

    text-align: center;
}

.portal-navbar-profile-links .dropdown-item:hover {
    background: #f8f7fa;
    color: var(--primary-color);
}

.portal-navbar-profile-links .dropdown-item:hover i {
    color: var(--primary-color);
}


/* LOGOUT */

.portal-navbar-profile-links .portal-navbar-logout {
    margin-top: 5px;

    border-top: 1px solid #eee;
    border-radius: 0 0 8px 8px;

    color: #a9414c;
}

.portal-navbar-profile-links .portal-navbar-logout i {
    color: #b22b39;
}

.portal-navbar-profile-links .portal-navbar-logout:hover {
    background: rgba(220,53,69,.05);
    color: #b22b39;
}


/* =====================================================
   LOGIN
===================================================== */

.portal-navbar-login {
    min-height: 42px;

    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 7px 11px !important;

    border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px;

    background: rgba(255,255,255,.08);
    color: #fff !important;

    font-size: 9px;
    font-weight: 600;
}


/* =====================================================
   BACK
===================================================== */

.portal-navbar-back-item {
    margin: 0 !important;
}

.portal-navbar-back {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;

    background: rgba(255,255,255,.08);
    color: #fff !important;

    font-size: 12px;

    text-decoration: none !important;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767.98px) {

    .portal-navbar {
        padding-right: 7px !important;
        padding-left: 7px !important;
    }

    .portal-navbar-user-info {
        display: none;
    }

    .portal-navbar-user-arrow {
        display: none;
    }

    .portal-navbar-user-link {
        padding: 4px !important;
    }

    .portal-navbar-avatar {
        flex-basis: 35px;

        width: 35px;
        height: 35px;
    }

    .portal-navbar-midan {
        width: 42px;
        padding: 0 !important;
    }

    .portal-navbar-midan span {
        display: none;
    }

    .portal-navbar-profile-dropdown {
        width: 220px;
    }






    /*سسسسسسس*/


    /* =====================================================
   PORTAL SIDEBAR
===================================================== */

    .portal-sidebar {
        background: #fff;

        border-left: 1px solid #eee;

        box-shadow: -3px 0 18px rgba(0,0,0,.025);
    }


    /* INNER */

    .portal-sidebar .sidebar-inner {
        padding: 10px 10px 30px;
    }


    /* TITLE */

    .portal-sidebar-title {
        margin: 8px 8px 7px !important;
        padding: 0 !important;

        color: #aaa !important;

        font-size: 8px !important;
        font-weight: 600 !important;

        letter-spacing: 0;
    }


    /* MAIN MENU */

    .portal-sidebar-menu {
        margin: 0;
        padding: 0;
    }

    .portal-sidebar-menu > li {
        margin-bottom: 4px;
    }


    /* MAIN LINKS */

    .portal-sidebar-link {
        min-height: 46px !important;

        display: flex !important;
        align-items: center !important;

        position: relative;

        padding: 7px 9px !important;

        border-radius: 10px !important;

        color: #555 !important;

        transition:
                background .15s ease,
                color .15s ease;
    }

    .portal-sidebar-link:hover {
        background: #f8f7fa !important;
        color: var(--primary-color) !important;
    }


    /* ICON */

    .portal-sidebar-link-icon {
        flex: 0 0 34px;

        width: 34px;
        height: 34px;

        display: flex;
        align-items: center;
        justify-content: center;

        margin-left: 8px;

        border-radius: 9px;

        background: #f7f7f8;
        color: #777;

        font-size: 13px;
    }

    .portal-sidebar-link:hover .portal-sidebar-link-icon {
        background: rgba(92,45,145,.08);
        color: var(--primary-color);
    }


    /* TEXT */

    .portal-sidebar-link-text {
        flex: 1;

        min-width: 0;

        font-size: 10px;
        font-weight: 600;

        white-space: nowrap;
    }


    /* PARENT */

    .portal-sidebar-parent {
        padding-left: 8px !important;
    }

    .portal-sidebar-arrow {
        flex: 0 0 20px;

        width: 20px;

        display: flex;
        align-items: center;
        justify-content: center;

        margin: 0 !important;

        color: #aaa;

        font-size: 7px;

        transition: transform .2s ease;
    }


    /* OPEN GROUP */

    .portal-sidebar-group.nav-active > .portal-sidebar-parent,
    .portal-sidebar-group.active > .portal-sidebar-parent {
        background: rgba(92,45,145,.055) !important;
        color: var(--primary-color) !important;
    }

    .portal-sidebar-group.nav-active > .portal-sidebar-parent .portal-sidebar-link-icon,
    .portal-sidebar-group.active > .portal-sidebar-parent .portal-sidebar-link-icon {
        background: rgba(92,45,145,.09);
        color: var(--primary-color);
    }


    /* =====================================================
       SUB MENU
    ===================================================== */

    .portal-sidebar-submenu {
        position: relative;

        margin: 4px 0 7px !important;
        padding: 4px 12px 4px 0 !important;
    }

    .portal-sidebar-submenu:before {
        content: "";

        position: absolute;

        top: 5px;
        bottom: 5px;
        right: 20px;

        width: 1px;

        background: #eee;
    }

    .portal-sidebar-submenu li {
        position: relative;

        margin: 2px 0;
    }

    .portal-sidebar-submenu li a {
        min-height: 38px !important;

        display: flex !important;
        align-items: center !important;
        gap: 7px;

        position: relative;

        margin-right: 17px;
        padding: 6px 12px !important;

        border-radius: 8px !important;

        color: #777 !important;

        font-size: 9px !important;

        transition:
                background .15s ease,
                color .15s ease;
    }

    .portal-sidebar-submenu li a:before {
        content: "";

        position: absolute;

        top: 50%;
        right: -10px;

        width: 5px;
        height: 5px;

        transform: translateY(-50%);

        border: 1px solid #ccc;
        border-radius: 50%;

        background: #fff;
    }

    .portal-sidebar-submenu li a i {
        width: 15px;

        color: #aaa;

        font-size: 9px;

        text-align: center;
    }

    .portal-sidebar-submenu li a:hover {
        background: #f8f7fa !important;
        color: var(--primary-color) !important;
    }

    .portal-sidebar-submenu li a:hover i {
        color: var(--primary-color);
    }


    /* ACTIVE SUB LINK */

    .portal-sidebar-submenu li.active > a,
    .portal-sidebar-submenu li > a.active {
        background: rgba(92,45,145,.06) !important;
        color: var(--primary-color) !important;

        font-weight: 600;
    }

    .portal-sidebar-submenu li.active > a:before,
    .portal-sidebar-submenu li > a.active:before {
        border-color: var(--primary-color);
        background: var(--primary-color);
    }


    /* =====================================================
       DANGER
    ===================================================== */

    .portal-sidebar-danger-item {
        margin-top: 14px;
        padding-top: 10px;

        border-top: 1px solid #eee;
    }

    .portal-sidebar-danger {
        color: #a9414c !important;
    }

    .portal-sidebar-danger .portal-sidebar-link-icon {
        background: rgba(220,53,69,.06);
        color: #b22b39;
    }

    .portal-sidebar-danger:hover {
        background: rgba(220,53,69,.05) !important;
        color: #b22b39 !important;
    }

    .portal-sidebar-danger:hover .portal-sidebar-link-icon {
        background: rgba(220,53,69,.09);
        color: #b22b39;
    }


    /* =====================================================
       MOBILE CLOSE
    ===================================================== */

    .portal-sidebar-close {
        width: 38px;
        height: 38px;

        display: none;

        align-items: center;
        justify-content: center;

        top: 9px;
        left: 9px;

        padding: 0 !important;

        border: 1px solid #eee !important;
        border-radius: 10px !important;

        background: #fff !important;
        color: #555 !important;

        box-shadow: 0 3px 10px rgba(0,0,0,.04);

        font-size: 14px;
    }


    /* =====================================================
       MOBILE LOGO
    ===================================================== */

    .portal-sidebar-mobile-logo {
        min-height: 58px;

        align-items: center;
        justify-content: center;

        padding: 10px 50px;

        border-bottom: 1px solid #eee;
    }


    /* =====================================================
       MOBILE
    ===================================================== */

    @media (max-width: 991.98px) {

        .portal-sidebar-close {
            display: flex;
        }

        .portal-sidebar-mobile-logo {
            display: flex !important;
        }

        .portal-sidebar .sidebar-inner {
            padding-top: 8px;
        }

    }


    /* =====================================================
       PORTAL TOPBAR
    ===================================================== */

    .portal-topbar {
        border: 0;

        box-shadow: 0 3px 16px rgba(0,0,0,.08);
    }


    /* NAVBAR */

    .portal-navbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }


    /* =====================================================
       DESKTOP LOGO
    ===================================================== */

    /* =====================================================
       DESKTOP LOGO
    ===================================================== */

    /* =====================================================
       DESKTOP LOGO
    ===================================================== */

    .portal-topbar-logo {
        height: 90px;

        background: var(--primary-color);
    }

    .portal-topbar-logo > div {
        width: 100%;
        height: 100%;
    }

    .portal-topbar-logo .logo {
        width: 100%;
        height: 100%;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    .portal-topbar-logo .logo img {
        display: block;

        width: auto !important;
        height: 38px !important;
        max-width: 115px !important;

        margin: 0 !important;

        object-fit: contain;
    }

}

