/* IVMEDIASMM v6.4.5 */
.iv-best-card,
.iv-order-card,
.iv-order-result,
.iv-admin-stat-card {
    border: 1px solid rgba(90, 107, 130, .16);
    box-shadow: 0 8px 26px rgba(31, 45, 61, .055);
}
.iv-best-card .card-body { padding: .8rem .9rem; }
.iv-best-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:.65rem; }
.iv-best-heading h6 { font-size:.9rem; font-weight:750; }
.iv-best-kicker { display:inline-flex; align-items:center; gap:.3rem; margin-bottom:.16rem; color:#b76a00; font-size:.68rem; font-weight:800; text-transform:uppercase; letter-spacing:.035em; }
.iv-best-ticker { position:relative; overflow:hidden; padding:1px 0; mask-image:linear-gradient(90deg, transparent, #000 2.5%, #000 97.5%, transparent); }
.iv-best-ticker-track { display:flex; width:max-content; animation:iv-best-news-left 36s linear infinite; will-change:transform; }
.iv-best-ticker:hover .iv-best-ticker-track,
.iv-best-ticker:focus-within .iv-best-ticker-track { animation-play-state:paused; }
.iv-best-ticker-group { display:flex; flex-shrink:0; gap:.48rem; padding-right:.48rem; }
.iv-best-item { width:260px; min-height:52px; display:grid; grid-template-columns:30px minmax(0,1fr) auto; align-items:center; gap:.5rem; padding:.48rem .58rem; color:var(--bs-body-color); background:rgba(245, 158, 11, .075); border:1px solid rgba(245, 158, 11, .25); border-radius:8px; text-align:left; }
.iv-best-item:hover { background:rgba(245, 158, 11, .14); border-color:rgba(245, 158, 11, .48); transform:translateY(-1px); }
.iv-best-rank { width:30px; height:30px; display:grid; place-items:center; color:#a76500; background:rgba(245,158,11,.16); border-radius:7px; font-size:.7rem; font-weight:850; }
.iv-best-copy { min-width:0; display:block; }
.iv-best-copy strong, .iv-best-copy small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.iv-best-copy strong { font-size:.75rem; line-height:1.25; }
.iv-best-copy small { margin-top:2px; color:var(--bs-secondary-color); font-size:.63rem; }
.iv-best-count { color:#a76500; font-size:.64rem; font-weight:750; white-space:nowrap; }
@keyframes iv-best-news-left { from { transform:translateX(0); } to { transform:translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .iv-best-ticker-track { animation:none; } .iv-best-ticker { overflow-x:auto; mask-image:none; } }

.iv-platform-filter { margin-bottom:.85rem; }
.iv-platform-label { display:block; margin-bottom:.36rem; font-size:.76rem; font-weight:700; }
.iv-platform-chips { display:flex; flex-wrap:wrap; gap:.34rem; overflow-x:auto; overscroll-behavior-inline:contain; }
.iv-platform-chip { min-height:29px; display:inline-flex; align-items:center; gap:.32rem; padding:.29rem .56rem; color:var(--bs-body-color); background:var(--bs-body-bg); border:1px solid var(--bs-border-color); border-radius:7px; font-size:.7rem; line-height:1; white-space:nowrap; transition:.15s ease; }
.iv-platform-chip i { width:13px; font-size:.69rem; text-align:center; }
.iv-platform-chip:hover, .iv-platform-chip.active { color:#fff; background:var(--bs-primary); border-color:var(--bs-primary); }
.iv-platform-chip.is-loading { opacity:.65; pointer-events:none; }

.iv-order-result { display:flex; align-items:flex-start; gap:.8rem; padding:.9rem; border-radius:10px; background:var(--bs-body-bg); }
.iv-order-result-icon { width:40px; height:40px; flex:0 0 40px; display:grid; place-items:center; border-radius:50%; font-size:1.05rem; }
.iv-order-result-content { min-width:0; flex:1; }
.iv-order-result h6 { margin:0 0 .2rem; font-weight:800; }
.iv-order-result-message { color:var(--bs-secondary-color); font-size:.79rem; line-height:1.55; }
.iv-order-result--success { border-left:4px solid #16a672; }
.iv-order-result--success .iv-order-result-icon { color:#087b51; background:rgba(22,166,114,.13); }
.iv-order-result--warning { border-left:4px solid #e6a000; }
.iv-order-result--warning .iv-order-result-icon { color:#a66e00; background:rgba(230,160,0,.14); }
.iv-order-result--maintenance { border-left:4px solid #64748b; }
.iv-order-result--maintenance .iv-order-result-icon { color:#475569; background:rgba(100,116,139,.14); }
.iv-order-result--error { border-left:4px solid #dc3545; }
.iv-order-result--error .iv-order-result-icon { color:#b42332; background:rgba(220,53,69,.12); }
.iv-order-result-details { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.42rem .8rem; margin-top:.68rem; padding-top:.68rem; border-top:1px dashed var(--bs-border-color); }
.iv-order-result-details div { min-width:0; }
.iv-order-result-details span, .iv-order-result-details strong { display:block; }
.iv-order-result-details span { color:var(--bs-secondary-color); font-size:.64rem; text-transform:uppercase; letter-spacing:.035em; }
.iv-order-result-details strong { overflow:hidden; margin-top:1px; font-size:.75rem; text-overflow:ellipsis; white-space:nowrap; }
.iv-order-id-list { margin-top:.58rem; padding:.48rem .58rem; border-radius:7px; background:rgba(var(--bs-primary-rgb),.08); color:var(--bs-primary); font-size:.72rem; font-weight:700; word-break:break-word; }

.iv-order-card .card-header { display:flex; align-items:center; justify-content:space-between; min-height:52px; }
.iv-order-tabs { gap:.35rem; padding:.28rem; border-radius:8px; background:rgba(100,116,139,.065); }
.iv-order-tabs .nav-link { padding:.5rem .72rem !important; border-radius:6px !important; font-size:.74rem; }
.iv-select-state { min-height:18px; margin-top:.28rem; color:var(--bs-secondary-color); font-size:.67rem; }
.iv-inline-spinner { display:inline-block; width:.75rem; height:.75rem; margin-right:.28rem; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; vertical-align:-.08rem; animation:iv-spin .65s linear infinite; }
@keyframes iv-spin { to { transform:rotate(360deg); } }
.iv-order-actions { display:flex; justify-content:flex-end; gap:.5rem; margin-top:1rem; }
.iv-order-actions .btn { min-width:112px; }
.iv-order-submit[disabled] { cursor:wait; opacity:.78; }
.iv-line-summary { min-height:20px; margin-top:.4rem; font-size:.7rem; }
.iv-empty-state { display:flex; align-items:center; gap:.45rem; color:var(--bs-secondary-color); font-size:.75rem; }

/* Dashboard news scroll: same permanent subtle style as the right/sidebar scrollbar. */
.iv-news-scroll { overflow-y:auto !important; scrollbar-width:thin; scrollbar-color:rgba(94,105,120,.55) rgba(94,105,120,.08); }
.iv-news-scroll::-webkit-scrollbar { width:7px; }
.iv-news-scroll::-webkit-scrollbar-track { background:rgba(94,105,120,.08); border-radius:8px; }
.iv-news-scroll::-webkit-scrollbar-thumb { background:rgba(94,105,120,.55); border-radius:8px; border:1px solid transparent; background-clip:padding-box; }
.iv-news-scroll:hover::-webkit-scrollbar-thumb { background:rgba(75,85,99,.78); background-clip:padding-box; }

.iv-admin-stat-card { height:100%; overflow:hidden; }
.iv-admin-stat-card .card-body { padding:1rem; }
.iv-admin-stat-icon { width:44px; height:44px; display:grid; place-items:center; border-radius:11px; font-size:1.05rem; }
.iv-admin-stat-label { color:var(--bs-secondary-color); font-size:.68rem; font-weight:700; text-transform:uppercase; letter-spacing:.035em; }
.iv-admin-stat-value { margin:.12rem 0 0; font-size:1.12rem; font-weight:800; }
.iv-status-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:.7rem; }
.iv-status-box { padding:.75rem; border:1px solid var(--bs-border-color); border-radius:9px; background:rgba(100,116,139,.035); }
.iv-status-box span { display:block; color:var(--bs-secondary-color); font-size:.65rem; font-weight:700; text-transform:uppercase; }
.iv-status-box strong { display:block; margin-top:.16rem; font-size:1.05rem; }

@media (max-width: 767.98px) {
    .iv-best-heading { align-items:flex-start; flex-direction:column; gap:.2rem; }
    .iv-best-item { width:235px; }
    .iv-platform-chips { flex-wrap:nowrap; padding-bottom:2px; scrollbar-width:none; }
    .iv-platform-chips::-webkit-scrollbar,
    .iv-best-ticker::-webkit-scrollbar { display:none; width:0; height:0; }
    .iv-best-ticker { scrollbar-width:none; }
    .iv-order-result-details { grid-template-columns:1fr; }
    .iv-order-actions { display:grid; grid-template-columns:1fr 1fr; }
    .iv-order-actions .btn { min-width:0; }
    .iv-status-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}


/* v6.4.5: Select2 icon spacing for Single and Mass Order. */
.iv-order-card .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: .28rem !important;
    padding-right: .2rem !important;
}
.iv-order-card .select2-selection__rendered > span,
.iv-order-card .select2-results__option > span {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    gap: .42rem;
    vertical-align: middle;
}
.iv-order-card .select2-selection__rendered i,
.select2-dropdown .select2-results__option i {
    min-width: 16px;
    margin-left: 2px;
    text-align: center;
    line-height: 1;
}
.select2-dropdown .select2-results__option {
    padding-left: .78rem !important;
}

/* Footer text is centered in the actual content area on member and admin layouts. */
.iv-layout-flat .pc-footer .footer-wrapper,
.iv-layout-flat .pc-footer .footer-wrapper > .row,
.iv-layout-flat .pc-footer .footer-wrapper > .row > .col {
    width: 100%;
}
.iv-layout-flat .pc-footer .footer-wrapper > .row {
    margin-right: 0;
    margin-left: 0;
}
.iv-layout-flat .pc-footer .footer-wrapper > .row > .col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 1rem;
    padding-left: 1rem;
    text-align: center;
}
.iv-layout-flat .pc-footer center {
    display: block;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

/* IVMEDIASMM v6.4.10: order response and information cards. */
.iv-order-result {
    position: relative;
    overflow: hidden;
    padding: 1rem 1.05rem;
    border-top: 1px solid rgba(100, 116, 139, .16);
    border-right: 1px solid rgba(100, 116, 139, .16);
    border-bottom: 1px solid rgba(100, 116, 139, .16);
    box-shadow: 0 10px 26px rgba(30, 41, 59, .055);
}
.iv-order-result::after {
    position: absolute;
    top: 0;
    right: 0;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: currentColor;
    content: '';
    opacity: .035;
    transform: translate(35%, -45%);
    pointer-events: none;
}
.iv-order-result h6 {
    margin-bottom: .28rem;
    font-size: .87rem;
    line-height: 1.35;
}
.iv-order-result-message {
    max-width: 760px;
    color: var(--bs-secondary-color);
    font-size: .75rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.iv-order-result--maintenance {
    color: #475569;
    background: linear-gradient(135deg, rgba(100, 116, 139, .075), rgba(148, 163, 184, .035));
    border-left-color: #64748b;
}
.iv-order-result--maintenance .iv-order-result-icon {
    color: #475569;
    background: rgba(100, 116, 139, .14);
    box-shadow: inset 0 0 0 1px rgba(100, 116, 139, .12);
}
.iv-order-result--error {
    background: linear-gradient(135deg, rgba(220, 53, 69, .055), rgba(220, 53, 69, .018));
}
.iv-order-result .btn-close {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    opacity: .55;
}
.iv-order-result .btn-close:hover { opacity: .9; }

.iv-order-help-card {
    position: sticky;
    top: 84px;
    overflow: hidden;
    border: 1px solid rgba(90, 107, 130, .16);
    box-shadow: 0 10px 30px rgba(31, 45, 61, .055);
}
.iv-order-help-card .card-header {
    display: flex;
    align-items: center;
    gap: .68rem;
    min-height: 68px;
    padding: .85rem 1rem;
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), .085), rgba(100, 116, 139, .025));
    border-bottom: 1px solid rgba(90, 107, 130, .12);
}
.iv-order-help-card .card-header > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: .1rem;
}
.iv-order-help-card .card-header small {
    color: var(--bs-primary);
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .09em;
}
.iv-order-help-card .card-header strong {
    overflow: hidden;
    color: var(--bs-heading-color);
    font-size: .82rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.iv-order-help-icon {
    width: 38px;
    height: 38px;
    display: grid;
    flex: 0 0 38px;
    place-items: center;
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), .11);
    border: 1px solid rgba(var(--bs-primary-rgb), .13);
    border-radius: 10px;
}
.iv-order-help-content {
    padding: 1rem 1.05rem !important;
    color: var(--bs-secondary-color);
    font-size: .75rem;
    line-height: 1.68;
}
.iv-order-help-content > :last-child { margin-bottom: 0; }
.iv-order-help-content h1,
.iv-order-help-content h2,
.iv-order-help-content h3,
.iv-order-help-content h4,
.iv-order-help-content h5,
.iv-order-help-content h6,
.iv-order-help-content strong {
    color: var(--bs-heading-color);
}
.iv-order-help-content ul,
.iv-order-help-content ol {
    margin-bottom: .8rem;
    padding-left: 1.15rem;
}
.iv-order-help-content li + li { margin-top: .34rem; }
.iv-order-help-content hr {
    margin: .85rem 0;
    border-color: var(--bs-border-color);
}

@media (max-width: 991.98px) {
    .iv-order-help-card { position: static; margin-top: .85rem; }
}
@media (max-width: 575.98px) {
    .iv-order-result { gap: .68rem; padding: .82rem; }
    .iv-order-result-icon { width: 36px; height: 36px; flex-basis: 36px; }
    .iv-order-result h6 { font-size: .81rem; }
    .iv-order-result-message { font-size: .71rem; }
}
