﻿body {
    padding-top: 0px;
    padding-bottom: 20px;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 95%;
}

/*.body-ltr {*/
     /*stick with defaults*/
/*}

.body-rtl {
    direction:rtl;
    text-align:right;
}*/

.multi-line-label {
    white-space:pre-line;
}

.post-type-image {
    height:35px;
}

.feedbacktab {
    right:0;
    position:fixed;
    width:45px;
    height:150px;
    top: 150px;
    opacity: 0.7;
    z-index:1;
}
.feedbacktab:hover {
    opacity: 0.9;
}

.badge-notice {
    background-color:#b51f1f;
    color:white;
}

.text-nowrap {
    white-space: nowrap;
}

/* ── Mobile "stacked card" tables ──────────────────────────────────────
   Opt in by adding class="table-stack" to a <table> that has a <thead>,
   and give each body <td> a data-label="<column name>". Below the md
   breakpoint each row renders as a labelled card (label on the start edge,
   value on the end edge) instead of a wide grid, so phones don't need to
   scroll sideways. Cells with an empty data-label (e.g. action buttons)
   render without a label and align to the start edge. RTL-safe via the
   logical start/end keywords. */
@media (max-width: 767.98px) {
    table.table-stack thead {
        display: none;
    }

    table.table-stack tr {
        display: block;
        margin-bottom: 1rem;
        padding: .5rem .75rem;
        border: 1px solid var(--bs-border-color, #dee2e6);
        border-radius: .375rem;
    }

    table.table-stack td {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        padding: .35rem 0;
        border: 0;
        text-align: end;
    }

    table.table-stack td::before {
        content: attr(data-label);
        font-weight: 600;
        text-align: start;
        white-space: nowrap;
    }

    table.table-stack td[data-label=""] {
        justify-content: flex-start;
        text-align: start;
    }

    table.table-stack td[data-label=""]::before {
        content: "";
    }
}

/* Emoji reactions on posts */
.post-reactions { margin-top: 8px; }
.reaction-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.reaction-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; line-height: 1.4; padding: 2px 10px; border-radius: 999px; border: 1px solid #dee2e6; background: #f8f9fa; cursor: pointer; }
.reaction-pill.mine { background: #cfe2ff; border-color: #9ec5fe; }
.reaction-actions { position: relative; margin-top: 4px; }
.reaction-react-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: #65676b; font-size: 14px; font-weight: 600; padding: 5px 10px; border-radius: 6px; cursor: pointer; transition: background-color .12s; }
.reaction-react-btn:hover { background: #f0f2f5; }
.reaction-react-btn i { font-size: 16px; }
.quick-react { position: absolute; bottom: calc(100% + 6px); inset-inline-start: 0; z-index: 1030; display: inline-flex; gap: 2px; border: 1px solid #e4e6eb; border-radius: 999px; padding: 4px 8px; background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.16); animation: qr-pop .12s ease; }
.quick-react .qr { font-size: 26px; line-height: 1; background: none; border: 0; padding: 2px 4px; border-radius: 50%; cursor: pointer; transition: transform .12s ease; }
.quick-react .qr:hover { transform: scale(1.35) translateY(-3px); }
.quick-react .qr.selected { background: #e7f1ff; box-shadow: 0 0 0 2px #9ec5fe; }
@keyframes qr-pop { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
/* "Who reacted" popover (WhatsApp/Facebook style) */
.rp-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 1080; display: flex; align-items: center; justify-content: center; padding: 16px; }
.rp-card { background: #fff; border-radius: 12px; width: 360px; max-width: 100%; max-height: 70vh; display: flex; flex-direction: column; box-shadow: 0 10px 40px rgba(0,0,0,.2); overflow: hidden; }
.rp-headwrap { display: flex; align-items: center; border-bottom: 1px solid #eee; }
.rp-tabs { display: flex; gap: 2px; overflow-x: auto; flex: 1; padding: 0 4px; }
.rp-tab { flex: 0 0 auto; background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 12px; font-size: 14px; color: #555; cursor: pointer; white-space: nowrap; }
.rp-tab.active { color: #0d6efd; border-bottom-color: #0d6efd; font-weight: 500; }
.rp-close { background: none; border: 0; font-size: 24px; line-height: 1; color: #777; cursor: pointer; padding: 6px 12px; }
.rp-list { overflow-y: auto; padding: 6px 0; }
.rp-row { display: flex; align-items: center; gap: 10px; padding: 8px 14px; }
.rp-avatar { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; background: #e7f1ff; color: #0d6efd; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.rp-name { flex: 1; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-emoji { font-size: 22px; }