/* =========================================================
   REE MANAGEMENT SUITE
   ========================================================= */

.ree-suite,
.ree-suite * {
    box-sizing: border-box;
}

.ree-suite {
    --sidebar: 270px;
    --navy: #101b2b;
    --navy-light: #18283d;
    --accent: #d78b32;
    --bg: #f4f6f8;
    --border: #e2e7ec;
    --text: #17202a;
    --muted: #687482;

    display: flex;
    min-height: 100vh;
    width: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Arial, sans-serif;
}

/* SIDEBAR */

.ree-suite-sidebar {
    width: var(--sidebar);
    min-width: var(--sidebar);
    min-height: 100vh;
    background: var(--navy);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 100;
}

.ree-suite-brand {
    min-height: 92px;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 13px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.ree-suite-logo {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: .5px;
}

.ree-suite-brand strong {
    display: block;
    font-size: 15px;
    letter-spacing: .8px;
}

.ree-suite-brand span {
    display: block;
    margin-top: 3px;
    color: #9caabd;
    font-size: 10px;
    letter-spacing: 1.3px;
}

/* NAVIGATION */

.ree-suite-nav {
    flex: 1;
    overflow-y: auto;
    padding: 18px 12px;
}

.ree-suite-nav a,
.ree-suite-group-toggle {
    font-family: inherit;
}

.ree-suite-dashboard-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cbd4df !important;
    text-decoration: none !important;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
}

.ree-suite-dashboard-link:hover,
.ree-suite-dashboard-link.active {
    background: var(--navy-light);
    color: #fff !important;
}

.nav-icon {
    width: 20px;
    text-align: center;
    color: var(--accent);
    font-size: 18px;
}

.ree-suite-nav-group {
    margin-bottom: 5px;
}

.ree-suite-group-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    color: #aeb9c7;
    cursor: pointer;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .65px;
    text-transform: uppercase;
}

.ree-suite-group-toggle:hover {
    background: rgba(255,255,255,.04);
    color: #fff;
}

.ree-suite-arrow {
    font-size: 22px;
    line-height: 15px;
    transition: transform .2s ease;
}

.ree-suite-nav-group.open .ree-suite-arrow {
    transform: rotate(90deg);
}

.ree-suite-submenu {
    display: none;
    padding: 3px 0 8px 13px;
}

.ree-suite-nav-group.open .ree-suite-submenu {
    display: block;
}

.ree-suite-submenu a {
    display: block;
    color: #aeb9c7 !important;
    text-decoration: none !important;
    padding: 9px 12px 9px 18px;
    margin: 2px 0;
    border-radius: 7px;
    font-size: 13px;
    border-left: 2px solid transparent;
}

.ree-suite-submenu a:hover {
    background: rgba(255,255,255,.04);
    color: #fff !important;
}

.ree-suite-submenu a.active {
    color: #fff !important;
    background: var(--navy-light);
    border-left-color: var(--accent);
}

.ree-suite-sidebar-footer {
    padding: 18px 22px;
    border-top: 1px solid rgba(255,255,255,.08);
    color: #8492a5;
}

.ree-suite-sidebar-footer small,
.ree-suite-sidebar-footer span {
    display: block;
    font-size: 10px;
}

.ree-suite-sidebar-footer span {
    margin-top: 4px;
}

/* MAIN */

.ree-suite-main {
    flex: 1;
    min-width: 0;
}

.ree-suite-header {
    min-height: 92px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 18px 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ree-suite-header small {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 10px;
}

.ree-suite-header h1 {
    margin: 3px 0 0;
    font-size: 25px;
    line-height: 1.2;
    color: var(--text);
}

.ree-suite-status {
    font-size: 12px;
    color: #28754b;
    font-weight: 600;
}

.ree-suite-content {
    padding: 30px 34px 50px;
    max-width: 1500px;
}

/* WELCOME */

.ree-suite-welcome {
    padding: 5px 0 24px;
}

.eyebrow {
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.ree-suite-welcome h2 {
    margin: 5px 0 5px;
    font-size: 27px;
}

.ree-suite-welcome p {
    color: var(--muted);
    margin: 0;
    font-size: 14px;
}

/* DASHBOARD CARDS */

.ree-suite-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 25px;
}

.ree-suite-stat {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 11px;
    padding: 21px;
    text-decoration: none !important;
    color: var(--text) !important;
    min-height: 165px;
    transition: transform .15s ease, box-shadow .15s ease;
}

.ree-suite-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16,27,43,.08);
}

.stat-icon {
    display: block;
    font-size: 24px;
    color: var(--accent);
    margin-bottom: 18px;
}

.ree-suite-stat small {
    display: block;
    color: #8994a0;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.ree-suite-stat strong {
    display: block;
    font-size: 16px;
}

.ree-suite-stat p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
    margin: 7px 0 0;
}

/* PANELS */

.ree-suite-dashboard-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 20px;
}

.ree-suite-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 11px;
    padding: 23px;
}

.panel-heading {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}

.panel-heading small {
    color: #8994a0;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

.panel-heading h3 {
    margin: 3px 0 0;
    font-size: 17px;
}

.ree-suite-quick-links a {
    padding: 13px 4px;
    border-bottom: 1px solid #edf0f3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none !important;
    color: var(--text) !important;
    font-size: 13px;
    font-weight: 600;
}

.ree-suite-quick-links a:last-child {
    border-bottom: 0;
}

.ree-suite-quick-links a span {
    color: var(--accent);
}

.ree-suite-module-status > div {
    display: flex;
    justify-content: space-between;
    padding: 12px 3px;
    border-bottom: 1px solid #edf0f3;
    font-size: 13px;
}

.ree-suite-module-status > div:last-child {
    border-bottom: 0;
}

.ree-suite-module-status b {
    color: #28754b;
    font-size: 11px;
}

/* PLACEHOLDER MODULE */

.ree-suite-module-placeholder {
    max-width: 850px;
    min-height: 280px;
}

.ree-suite-module-placeholder h2 {
    font-size: 25px;
    margin: 7px 0;
}

.ree-suite-module-placeholder p {
    color: var(--muted);
}

.ree-suite-coming {
    margin-top: 30px;
    background: var(--bg);
    border: 1px dashed #cbd3db;
    border-radius: 8px;
    padding: 17px;
    color: #64717e;
    font-size: 13px;
}

/* MOBILE */

.ree-suite-mobile-bar {
    display: none;
}

.ree-suite-overlay {
    display: none;
}

@media (max-width: 1100px) {

    .ree-suite-stat-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

}

@media (max-width: 800px) {

    .ree-suite {
        display: block;
    }

    .ree-suite-mobile-bar {
        display: flex;
        height: 62px;
        background: var(--navy);
        color: #fff;
        align-items: center;
        gap: 15px;
        padding: 0 18px;
    }

    .ree-suite-menu-toggle {
        border: 0;
        background: transparent;
        color: #fff;
        font-size: 25px;
        cursor: pointer;
        padding: 4px;
    }

    .ree-suite-sidebar {
        position: fixed;
        left: -290px;
        top: 0;
        transition: left .25s ease;
        box-shadow: 8px 0 30px rgba(0,0,0,.15);
    }

    .ree-suite.sidebar-open .ree-suite-sidebar {
        left: 0;
    }

    .ree-suite-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.45);
        z-index: 90;
    }

    .ree-suite.sidebar-open .ree-suite-overlay {
        display: block;
    }

    .ree-suite-header {
        min-height: 75px;
        padding: 15px 20px;
    }

    .ree-suite-header h1 {
        font-size: 21px;
    }

    .ree-suite-header-actions {
        display: none;
    }

    .ree-suite-content {
        padding: 22px 18px 40px;
    }

    .ree-suite-stat-grid,
    .ree-suite-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {

    .ree-suite-stat-grid {
        grid-template-columns: 1fr;
    }

    .ree-suite-welcome h2 {
        font-size: 23px;
    }
}

/* =========================================================
   EVENTS & MEETINGS MODULE
   ========================================================= */

.ree-suite-module-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 24px;
}

.ree-suite-module-top h2 {
    margin: 5px 0 6px;
    font-size: 27px;
}

.ree-suite-module-top p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.ree-suite-primary-button {
    border: 0;
    border-radius: 7px;
    background: var(--accent);
    color: #fff;
    padding: 11px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.ree-suite-primary-button:hover {
    opacity: .9;
}

/* SUMMARY COUNTERS */

.ree-suite-mini-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 15px;
    margin-bottom: 22px;
}

.ree-suite-mini-stats > div {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 17px 19px;
}

.ree-suite-mini-stats small {
    display: block;
    color: #8994a0;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

.ree-suite-mini-stats strong {
    display: block;
    margin-top: 4px;
    font-size: 25px;
    line-height: 1.2;
}

/* EVENT TABLE */

.ree-suite-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.ree-suite-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ree-suite-table th {
    text-align: left;
    padding: 11px 12px;
    color: #7b8794;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.ree-suite-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #edf0f3;
    vertical-align: middle;
}

.ree-suite-table tbody tr:hover {
    background: #fafbfc;
}

.ree-suite-table tbody tr:last-child td {
    border-bottom: 0;
}

.ree-suite-table td strong {
    display: block;
    font-size: 13px;
}

.ree-suite-table td small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

/* EVENT STATUS */

.ree-event-status {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
}

.ree-event-status.status-upcoming {
    background: #e8f4ee;
    color: #28754b;
}

.ree-event-status.status-completed {
    background: #edf1f5;
    color: #56616d;
}

.ree-event-status.status-cancelled {
    background: #fbecec;
    color: #a43d3d;
}

/* RESPONSES */

.ree-response-summary {
    display: flex;
    gap: 9px;
    white-space: nowrap;
}

.ree-response-summary span {
    font-size: 11px;
    color: #64717e;
}

/* ROW ACTION */

.ree-suite-row-button {
    background: #fff;
    border: 1px solid #ccd4dc;
    border-radius: 6px;
    padding: 6px 11px;
    color: var(--text);
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
}

.ree-suite-row-button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.ree-suite-empty {
    padding: 35px 10px;
    text-align: center;
    color: var(--muted);
}

/* EVENTS RESPONSIVE */

@media (max-width: 900px) {

    .ree-suite-mini-stats {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

}

@media (max-width: 600px) {

    .ree-suite-module-top {
        display: block;
    }

    .ree-suite-primary-button {
        margin-top: 17px;
        width: 100%;
    }

    .ree-suite-mini-stats {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

}

/* Event row actions */

.ree-suite-row-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.ree-suite-delete-form {
    display: inline;
    margin: 0;
}

.ree-suite-delete-button {
    background: #fff;
    border: 1px solid #e0b5b5;
    border-radius: 6px;
    padding: 6px 11px;
    color: #b23b3b;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
}

.ree-suite-delete-button:hover {
    background: #fff5f5;
    border-color: #b23b3b;
}

/* Module notifications */

.ree-suite-notice {
    padding: 11px 14px;
    margin-bottom: 18px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
}

.ree-suite-notice-success {
    background: #eaf6ef;
    border: 1px solid #b9dfc8;
    color: #28754b;
}

.ree-suite-notice-error {
    background: #fbecec;
    border: 1px solid #ebc1c1;
    color: #a43d3d;
}

/* Event recipient people */

.ree-event-people {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ree-event-person {
    padding: 14px 16px;
    background: #f8fafb;
    border: 1px solid #e4e9ee;
    border-radius: 8px;
}

.ree-event-person-name {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.ree-event-person-contact {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.5;
    color: var(--muted);
}

@media (max-width: 700px) {
    .ree-event-people {
        grid-template-columns: 1fr;
    }
}

/* Detailed Event Attendance */
.ree-attendance-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.ree-attendance-group {
    border: 1px solid #e4e9ee;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.ree-attendance-group-heading {
    padding: 14px 16px;
    background: #f7f9fa;
    border-bottom: 1px solid #e4e9ee;
}

.ree-attendance-group-heading h4 {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
}

.ree-attendance-group-heading h4 span {
    min-width: 28px;
    padding: 3px 8px;
    border-radius: 20px;
    text-align: center;
    background: #e9edf1;
    font-size: 12px;
}

.ree-attendance-list {
    padding: 8px;
}

.ree-attendance-person {
    padding: 14px;
    margin-bottom: 8px;
    border: 1px solid #edf0f2;
    border-radius: 8px;
    background: #fff;
}

.ree-attendance-person:last-child {
    margin-bottom: 0;
}

.ree-attendance-person-main > strong {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
}

.ree-attendance-contact {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ree-attendance-contact small {
    font-size: 11px;
    color: #6b7280;
}

.ree-attendance-reason {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    background: #fff4f4;
    border-left: 3px solid #b42318;
}

.ree-attendance-reason small,
.ree-attendance-time small {
    display: block;
    margin-bottom: 3px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    color: #7a828a;
}

.ree-attendance-reason strong {
    font-size: 13px;
    color: #9b1c1c;
}

.ree-attendance-time {
    margin-top: 10px;
}

.ree-attendance-time span {
    font-size: 11px;
    color: #5f6872;
}

.ree-attendance-empty {
    padding: 18px 16px;
    font-size: 12px;
    color: #7a828a;
}

@media (max-width: 900px) {
    .ree-attendance-groups {
        grid-template-columns: 1fr;
    }
}


/* Attendance - full width layout */
.ree-attendance-groups {
    display: block;
    width: 100%;
    margin-top: 24px;
}

.ree-attendance-group {
    width: 100%;
    margin-bottom: 18px;
    box-sizing: border-box;
}

.ree-attendance-list {
    width: 100%;
    box-sizing: border-box;
}

.ree-attendance-person {
    width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) minmax(220px, 2fr) minmax(160px, 1fr);
    gap: 20px;
    align-items: center;
}

.ree-attendance-reason,
.ree-attendance-time {
    margin-top: 0;
}

@media (max-width: 800px) {
    .ree-attendance-person {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ree-attendance-reason,
    .ree-attendance-time {
        margin-top: 8px;
    }
}


/* Attendance groups: horizontal across full content width */
.ree-attendance-groups {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
    width: 100% !important;
    align-items: start;
}

.ree-attendance-group {
    width: 100% !important;
    margin-bottom: 0 !important;
    min-width: 0;
}

.ree-attendance-person {
    display: block !important;
    width: 100% !important;
}

.ree-attendance-reason {
    margin-top: 12px !important;
}

.ree-attendance-time {
    margin-top: 10px !important;
}

@media (max-width: 900px) {
    .ree-attendance-groups {
        grid-template-columns: 1fr !important;
    }
}


/* Event Register - Response Dropdown */
.ree-response-dropdown {
    position: relative;
    min-width: 150px;
}

.ree-response-dropdown summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border: 1px solid #dce2e7;
    border-radius: 7px;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: #263442;
    cursor: pointer;
    list-style: none;
}

.ree-response-dropdown summary::-webkit-details-marker {
    display: none;
}

.ree-response-dropdown summary::after {
    content: "▾";
    margin-left: auto;
    color: #7b8793;
    font-size: 11px;
}

.ree-response-dropdown[open] summary::after {
    content: "▴";
}

.ree-response-total {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 20px;
    background: #edf1f4;
    font-size: 11px;
    font-weight: 700;
}

.ree-response-dropdown-menu {
    margin-top: 6px;
    border: 1px solid #dce2e7;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(25, 38, 52, .10);
}

.ree-response-option {
    display: grid;
    grid-template-columns: 24px 1fr 30px;
    align-items: center;
    gap: 7px;
    padding: 10px 12px;
    border-bottom: 1px solid #edf0f2;
    font-size: 12px;
}

.ree-response-option:last-child {
    border-bottom: 0;
}

.ree-response-checkbox {
    font-size: 16px;
    line-height: 1;
}

.ree-response-label {
    font-weight: 600;
}

.ree-response-option strong {
    text-align: right;
    font-size: 12px;
}

.ree-response-accepted .ree-response-checkbox {
    color: #238653;
}

.ree-response-rejected .ree-response-checkbox {
    color: #bd3030;
}

.ree-response-pending .ree-response-checkbox {
    color: #c58a17;
}


/* =========================================================
   Compact Event Detail Summary
   ========================================================= */

.ree-event-detail-grid {
    display: flex !important;
    align-items: center;
    gap: 0 !important;
    width: 100%;
}

.ree-event-detail-grid > div {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    min-width: 0;
    border-right: 1px solid #e5e7eb;
    white-space: nowrap;
}

.ree-event-detail-grid > div:first-child {
    padding-left: 0;
}

.ree-event-detail-grid > div:last-child {
    border-right: 0;
}

.ree-event-detail-grid small {
    margin: 0 !important;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    color: #6b7280;
}

.ree-event-detail-grid strong {
    margin: 0 !important;
    font-size: 13px;
    line-height: 1.2;
}

.ree-event-detail-grid .ree-event-status {
    margin: 0 !important;
    padding: 3px 8px;
    font-size: 11px;
    line-height: 1.2;
}

/* Reduce surrounding panel height */
.ree-suite-panel:has(.ree-event-detail-grid) {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

/* Allow wrapping only when screen becomes too narrow */
@media (max-width: 1000px) {
    .ree-event-detail-grid {
        flex-wrap: wrap;
        row-gap: 8px !important;
    }
}


/* =========================================================
   Event Notification - Consistent Typography
   ========================================================= */

.ree-notification-panel .panel-heading small,
.ree-notification-message > small {
    display: block;
    margin: 0 0 5px 0 !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em;
    color: #6b7280;
}

.ree-notification-panel .panel-heading h3 {
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
}

.ree-notification-message {
    margin-top: 12px;
}

.ree-notification-panel .ree-event-message {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
    background: transparent !important;
    border: 0 !important;
}


/* =========================================================
   Meeting Record / Minutes
   ========================================================= */

.ree-meeting-record-panel {
    padding: 22px 24px !important;
}

.ree-meeting-record-panel .panel-heading {
    margin-bottom: 18px;
}

.ree-meeting-record-panel .panel-heading small {
    display: block;
    margin-bottom: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    color: #6b7280;
}

.ree-meeting-record-panel .panel-heading h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
}

.ree-meeting-record-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ree-meeting-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ree-meeting-field label {
    margin: 0;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 600;
    color: #374151;
}

.ree-meeting-field textarea,
.ree-meeting-field input[type="text"] {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    font: inherit;
    font-size: 13px;
    line-height: 1.5;
    outline: none;
}

.ree-meeting-field textarea {
    padding: 11px 12px;
    resize: vertical;
}

.ree-meeting-field input[type="text"] {
    height: 40px;
    padding: 0 12px;
}

.ree-meeting-field textarea:focus,
.ree-meeting-field input[type="text"]:focus {
    border-color: #6b7280;
    box-shadow: 0 0 0 2px rgba(107,114,128,.12);
}

.ree-meeting-record-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
}

.ree-meeting-record-grid textarea {
    min-height: 115px;
}

.ree-meeting-record-form > .ree-meeting-field:first-child textarea {
    min-height: 145px;
}

.ree-meeting-record-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding-top: 4px;
}

.ree-prepared-by {
    width: min(360px, 100%);
}

.ree-meeting-record-footer .ree-suite-primary-button {
    min-height: 40px;
    padding: 9px 18px;
    white-space: nowrap;
}

@media (max-width: 800px) {
    .ree-meeting-record-grid {
        grid-template-columns: 1fr;
    }

    .ree-meeting-record-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .ree-prepared-by {
        width: 100%;
    }

    .ree-meeting-record-footer .ree-suite-primary-button {
        width: 100%;
    }
}



/* =========================================================
   SITE SUBMISSIONS — RESPONSIVE WIDTH SAFETY
   ========================================================= */

.ree-suite-main,
.ree-suite-content,
.ree-suite-panel {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.ree-suite-content {
    width: 100%;
}

.ree-suite-panel {
    overflow: visible;
}

.ree-suite-panel img,
.ree-suite-panel video {
    max-width: 100%;
    height: auto;
}

@media (max-width: 1100px) {

    .ree-suite-content {
        padding-left: 20px;
        padding-right: 20px;
    }

}

@media (max-width: 700px) {

    .ree-suite-content {
        padding-left: 12px;
        padding-right: 12px;
    }

}


/* =========================================================
   LAPTOP RESPONSIVE LAYOUT
   ========================================================= */

@media screen and (max-width: 1450px) {

    .ree-suite {
        --sidebar: 220px;
    }

    .ree-suite-brand {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ree-suite-nav {
        padding-left: 8px;
        padding-right: 8px;
    }

    .ree-suite-header {
        padding-left: 22px;
        padding-right: 22px;
    }

    .ree-suite-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 22px 22px 40px;
    }

    .ree-suite-panel {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 18px;
        overflow: hidden;
    }
}


/*
 * Site Submission table:
 * keep the Management Suite inside the viewport.
 * Only the table area may scroll horizontally.
 */
.ree-suite-panel > div[style*="overflow-x:auto"] {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto !important;
    overflow-y: hidden;
}


/* Smaller laptop / tablet landscape */
@media screen and (max-width: 1150px) {

    .ree-suite {
        --sidebar: 190px;
    }

    .ree-suite-brand strong {
        font-size: 13px;
    }

    .ree-suite-brand span {
        font-size: 9px;
    }

    .ree-suite-submenu a {
        padding-left: 12px;
        font-size: 12px;
    }

    .ree-suite-content {
        padding: 18px 16px 35px;
    }

    .ree-suite-panel {
        padding: 15px;
    }

}


/* Mobile */
@media screen and (max-width: 782px) {

    .ree-suite {
        display: block;
    }

    .ree-suite-sidebar {
        position: relative;
        width: 100%;
        min-width: 100%;
        height: auto !important;
        min-height: auto;
        top: auto !important;
    }

    .ree-suite-main {
        width: 100%;
        min-width: 0;
    }

    .ree-suite-header {
        padding: 15px;
    }

    .ree-suite-content {
        padding: 15px 10px 30px;
    }

    .ree-suite-panel {
        padding: 12px;
    }

}


/* =========================================================
   SITE SUBMISSIONS — LAPTOP TABLE FIX
   ========================================================= */

/* Never clip content inside the main panel */
.ree-suite-panel {
    overflow: visible !important;
}

/* Main content must be allowed to shrink beside sidebar */
.ree-suite-main,
.ree-suite-content {
    min-width: 0 !important;
    max-width: 100% !important;
}

/* Site Submissions horizontal table container */
.ree-suite-panel > div[style*="overflow-x"] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    display: block !important;

    scrollbar-width: auto;
    padding-bottom: 8px;
}

/* Keep the table wide enough to remain readable */
.ree-suite-panel > div[style*="overflow-x"] > table {
    width: 100% !important;
    min-width: 1050px !important;
    max-width: none !important;
}

/* Don't allow the Actions column text to be chopped */
.ree-suite-panel table th:last-child,
.ree-suite-panel table td:last-child {
    white-space: nowrap !important;
    padding-right: 18px !important;
}


/* Laptop: tighten the table slightly */
@media screen and (max-width: 1450px) {

    .ree-suite-panel > div[style*="overflow-x"] > table {
        min-width: 1000px !important;
    }

    .ree-suite-panel table th,
    .ree-suite-panel table td {
        padding-left: 7px !important;
        padding-right: 7px !important;
    }
}


/* =========================================================
   SITE SUBMISSIONS TABLE — FINAL WIDTH FIX
   ========================================================= */

.ree-site-submissions-table-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}

.ree-site-submissions-table {
    width: 100%;
    min-width: 1000px;
    max-width: none;
    border-collapse: collapse;
}

.ree-site-submissions-table th,
.ree-site-submissions-table td {
    padding: 12px 8px;
    vertical-align: middle;
}

.ree-site-submissions-table th:last-child,
.ree-site-submissions-table td:last-child {
    white-space: nowrap;
    padding-right: 12px;
}


/* Laptop */
@media screen and (max-width: 1450px) {

    .ree-site-submissions-table {
        min-width: 980px;
    }

    .ree-site-submissions-table th,
    .ree-site-submissions-table td {
        padding-left: 6px;
        padding-right: 6px;
    }
}


/* =========================================================
   SITE SUBMISSIONS — FIT LAPTOP WIDTH
   ========================================================= */

.ree-site-submissions-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.ree-site-submissions-table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: fixed;
    border-collapse: collapse;
}

.ree-site-submissions-table th,
.ree-site-submissions-table td {
    padding: 11px 7px !important;
    overflow-wrap: anywhere;
    word-break: normal;
}

/* Record */
.ree-site-submissions-table th:nth-child(1),
.ree-site-submissions-table td:nth-child(1) {
    width: 11%;
}

/* Date */
.ree-site-submissions-table th:nth-child(2),
.ree-site-submissions-table td:nth-child(2) {
    width: 13%;
    white-space: normal !important;
}

/* Employee */
.ree-site-submissions-table th:nth-child(3),
.ree-site-submissions-table td:nth-child(3) {
    width: 11%;
}

/* Job */
.ree-site-submissions-table th:nth-child(4),
.ree-site-submissions-table td:nth-child(4) {
    width: 6%;
}

/* Location */
.ree-site-submissions-table th:nth-child(5),
.ree-site-submissions-table td:nth-child(5) {
    width: 9%;
}

/* Category */
.ree-site-submissions-table th:nth-child(6),
.ree-site-submissions-table td:nth-child(6) {
    width: 11%;
}

/* Title */
.ree-site-submissions-table th:nth-child(7),
.ree-site-submissions-table td:nth-child(7) {
    width: 13%;
}

/* Media */
.ree-site-submissions-table th:nth-child(8),
.ree-site-submissions-table td:nth-child(8) {
    width: 6%;
    text-align: center;
}

/* Actions — ninth column after Status removal */
.ree-site-submissions-table th:nth-child(9),
.ree-site-submissions-table td:nth-child(9) {
    width: 20%;
    white-space: nowrap !important;
}

.ree-site-view-record {
    display: inline-block;
    white-space: nowrap;
}


/* Laptop */
@media screen and (max-width: 1450px) {

    .ree-site-submissions-table {
        font-size: 13px;
    }

    .ree-site-submissions-table th,
    .ree-site-submissions-table td {
        padding: 10px 5px !important;
    }
}


/* =========================================================
   SITE SUBMISSIONS — START CONVERSATION
   ========================================================= */

.ree-site-start-button {
    appearance:none;
    border:0;
    border-radius:8px;
    background:#202b33;
    color:#fff;
    padding:11px 18px;
    font-size:14px;
    font-weight:700;
    cursor:pointer;
    white-space:nowrap;
}

.ree-site-start-button:hover {
    background:#111a20;
}

.ree-site-start-modal[hidden] {
    display:none !important;
}

.ree-site-start-modal {
    position:fixed;
    inset:0;
    z-index:99999;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
}

.ree-site-start-backdrop {
    position:absolute;
    inset:0;
    background:rgba(20,28,34,.65);
}

.ree-site-start-dialog {
    position:relative;
    z-index:1;
    width:min(760px, 100%);
    max-height:calc(100vh - 48px);
    overflow:auto;
    background:#fff;
    border-radius:14px;
    box-shadow:0 20px 70px rgba(0,0,0,.28);
}

.ree-site-start-header {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:20px;
    padding:22px 24px 18px;
    border-bottom:1px solid #e5e7e9;
}

.ree-site-start-header h2 {
    margin:3px 0 0;
}

.ree-site-start-close {
    appearance:none;
    border:0;
    background:transparent;
    color:#333;
    font-size:32px;
    line-height:1;
    cursor:pointer;
    padding:0 4px;
}

.ree-site-start-body {
    padding:24px;
}

.ree-site-start-placeholder {
    padding:40px 20px;
    text-align:center;
    border:2px dashed #d9dde0;
    border-radius:10px;
    background:#f8f9fa;
    color:#68737b;
}

body.ree-site-modal-open {
    overflow:hidden !important;
}

@media screen and (max-width:782px) {

    .ree-site-start-modal {
        padding:10px;
    }

    .ree-site-start-dialog {
        max-height:calc(100vh - 20px);
        border-radius:10px;
    }

    .ree-site-start-header,
    .ree-site-start-body {
        padding:18px;
    }
}


/* =========================================================
   SITE SUBMISSIONS — START FORM
   ========================================================= */

.ree-site-start-form {
    display:flex;
    flex-direction:column;
    gap:18px;
}

.ree-site-form-field {
    display:flex;
    flex-direction:column;
    gap:7px;
}

.ree-site-form-field label {
    margin:0;
}

.ree-site-form-field input[type="text"],
.ree-site-form-field input[type="file"],
.ree-site-form-field select,
.ree-site-form-field textarea {
    width:100%;
    box-sizing:border-box;
    border:1px solid #ccd2d7;
    border-radius:8px;
    background:#fff;
    padding:11px 12px;
    font:inherit;
}

.ree-site-form-field textarea {
    resize:vertical;
}

.ree-site-form-row {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
}

.ree-site-form-help {
    display:block;
    color:#66727a;
    line-height:1.45;
}

.ree-site-chat-list {
    border:1px solid #d8dde1;
    border-radius:9px;
    max-height:210px;
    overflow:auto;
    background:#fff;
}

.ree-site-chat-person {
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 12px;
    border-bottom:1px solid #eef0f2;
    cursor:pointer;
}

.ree-site-chat-person:last-child {
    border-bottom:0;
}

.ree-site-chat-person:hover {
    background:#f7f8f9;
}

.ree-site-chat-person input {
    width:18px;
    height:18px;
    margin:0;
}

.ree-site-form-actions {
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:10px;
    padding-top:4px;
}

.ree-site-cancel-button,
.ree-site-submit-button {
    border-radius:8px;
    padding:11px 17px;
    font-weight:700;
    cursor:pointer;
}

.ree-site-cancel-button {
    border:1px solid #ccd2d7;
    background:#fff;
    color:#333;
}

.ree-site-submit-button {
    border:0;
    background:#202b33;
    color:#fff;
}

.ree-site-submit-button:hover {
    background:#111a20;
}

@media screen and (max-width:650px) {

    .ree-site-form-row {
        grid-template-columns:1fr;
    }

    .ree-site-form-actions {
        flex-direction:column-reverse;
    }

    .ree-site-cancel-button,
    .ree-site-submit-button {
        width:100%;
    }
}

/* Site Submissions row actions */
.ree-site-row-actions {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
}

.ree-site-row-actions form {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ree-site-row-actions form button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #555 !important;
    cursor: pointer !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.ree-site-row-actions form button svg {
    display: block !important;
    width: 17px !important;
    height: 17px !important;
    visibility: visible !important;
    opacity: 1 !important;
}


/* Incident Manager sub-navigation */
.ree-incident-subnav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
    margin: 0 0 22px;
    padding: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.ree-incident-subnav a {
    display: inline-block;
    padding: 9px 14px;
    border-radius: 7px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #374151;
    transition: background .15s ease, color .15s ease;
}

.ree-incident-subnav a:hover {
    background: #f3f4f6;
    color: #111827;
}

.ree-incident-subnav a.active {
    background: #111827;
    color: #fff;
}

@media (max-width: 760px) {
    .ree-incident-subnav {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .ree-incident-subnav a {
        white-space: nowrap;
    }
}


/* =========================================================
   Incident Register
   Scoped to Incident Manager only
   ========================================================= */

.ree-incident-register {
    margin-top: 4px;
}

/* Filters */
.ree-incident-filters {
    margin: 0 0 24px;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.ree-incident-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
}

.ree-incident-filter-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    min-width: 0;
}

.ree-incident-filter-grid label > span {
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
    color: #475569;
}

.ree-incident-filter-grid input[type="search"],
.ree-incident-filter-grid input[type="date"],
.ree-incident-filter-grid select {
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 8px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.4;
    box-sizing: border-box;
}

.ree-incident-filter-grid input:focus,
.ree-incident-filter-grid select:focus {
    border-color: #64748b;
    outline: none;
    box-shadow: 0 0 0 2px rgba(100,116,139,.12);
}

/* Archived checkbox */
.ree-incident-filter-grid .ree-incident-archive-filter {
    min-height: 42px;
    padding: 0 12px;
    flex-direction: row;
    align-items: center;
    gap: 9px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    cursor: pointer;
}

.ree-incident-filter-grid .ree-incident-archive-filter input {
    width: 16px;
    height: 16px;
    margin: 0;
}

.ree-incident-filter-grid .ree-incident-archive-filter span {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

/* Filter buttons */
.ree-incident-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.ree-incident-filter-actions .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 7px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
    color: #334155;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.ree-incident-filter-actions .button-primary {
    border-color: #0f172a;
    background: #0f172a;
    color: #fff;
}

/* Register table */
.ree-incident-register .ree-table-scroll {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
}

.ree-incident-table {
    width: 100%;
    min-width: 1050px;
    border: 0;
    border-collapse: collapse;
    background: #fff;
}

.ree-incident-table thead {
    background: #f8fafc;
}

.ree-incident-table th {
    padding: 13px 14px;
    border: 0;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #64748b;
}

.ree-incident-table th a {
    color: inherit;
    text-decoration: none;
}

.ree-incident-table th a:hover {
    color: #0f172a;
}

.ree-incident-table td {
    padding: 14px;
    border: 0;
    border-bottom: 1px solid #edf2f7;
    vertical-align: middle;
    font-size: 13px;
    line-height: 1.45;
    color: #334155;
}

.ree-incident-table tbody tr:last-child td {
    border-bottom: 0;
}

.ree-incident-table tbody tr:hover {
    background: #f8fafc;
}

.ree-incident-table td:first-child a {
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
}

.ree-incident-table td:first-child a:hover {
    text-decoration: underline;
}

/* Risk badge */
.ree-incident-table .ree-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
}

/* Footer / pagination */
.ree-incident-register-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 16px;
}

.ree-incident-register-footer p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.ree-incident-register-footer .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    margin-left: 4px;
    padding: 4px 9px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    color: #334155;
    text-decoration: none;
}

.ree-incident-register-footer .page-numbers.current {
    border-color: #0f172a;
    background: #0f172a;
    color: #fff;
}

/* Responsive */
@media (max-width: 1200px) {
    .ree-incident-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .ree-incident-filter-grid {
        grid-template-columns: 1fr;
    }

    .ree-incident-filters {
        padding: 15px;
    }

    .ree-incident-register-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Incident Manager header action */
.ree-incident-hub .ree-suite-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.ree-incident-hub .ree-suite-welcome .button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 17px;
    border: 1px solid #0f172a;
    border-radius: 8px;
    background: #0f172a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: none;
}

.ree-incident-hub .ree-suite-welcome .button-primary:hover {
    background: #1e293b;
    border-color: #1e293b;
    color: #fff;
    text-decoration: none;
}

/* Compact Incident Manager statistics */
.ree-incident-hub .ree-suite-stat-grid {
    margin-top: 22px;
    margin-bottom: 24px;
}

.ree-incident-hub .ree-suite-stat {
    min-height: 0;
    padding: 20px 24px;
}

.ree-incident-hub .ree-suite-stat small {
    display: block;
    margin-bottom: 7px;
}

.ree-incident-hub .ree-suite-stat strong {
    display: block;
    margin: 0 0 5px;
    font-size: 25px;
    line-height: 1.1;
}

.ree-incident-hub .ree-suite-stat p {
    margin: 0;
}

@media (max-width: 700px) {
    .ree-incident-hub .ree-suite-welcome {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   Incident Manager - Report Incident
   Management Hub presentation only
   ========================================================= */

.ree-incident-hub .ree-manager {
    max-width: none;
    width: 100%;
    color: #334155;
}

/* Intro text */
.ree-incident-hub .ree-report-form > p:first-of-type {
    margin: 0 0 18px;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    font-size: 13px;
}

/* Form sections */
.ree-incident-hub .ree-manager .ree-card {
    margin: 0 0 18px;
    padding: 22px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: none;
}

.ree-incident-hub .ree-manager .ree-card h2 {
    margin: 0 0 18px;
    padding: 0 0 12px;
    border-bottom: 1px solid #e2e8f0;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
}

.ree-incident-hub .ree-manager .ree-card > p {
    margin: -7px 0 18px;
    color: #64748b;
    font-size: 13px;
}

/* Main field grid */
.ree-incident-hub .ree-manager .ree-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}

/* Labels */
.ree-incident-hub .ree-manager .ree-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    min-width: 0;
    color: #475569;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
}

/* Inputs */
.ree-incident-hub .ree-manager .ree-field input,
.ree-incident-hub .ree-manager .ree-field select,
.ree-incident-hub .ree-manager .ree-field textarea {
    width: 100%;
    max-width: none;
    min-height: 42px;
    margin: 0;
    padding: 9px 11px;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;
    box-shadow: none;
}

.ree-incident-hub .ree-manager .ree-field textarea {
    min-height: 110px;
    resize: vertical;
}

.ree-incident-hub .ree-manager .ree-field input:focus,
.ree-incident-hub .ree-manager .ree-field select:focus,
.ree-incident-hub .ree-manager .ree-field textarea:focus {
    border-color: #64748b;
    outline: none;
    box-shadow: 0 0 0 2px rgba(100,116,139,.12);
}

/* Incident type checkboxes */
.ree-incident-hub .ree-manager .ree-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    margin: 4px 8px 4px 0;
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    background: #f8fafc;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.ree-incident-hub .ree-manager .ree-checkbox:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.ree-incident-hub .ree-manager .ree-checkbox input {
    width: 15px;
    height: 15px;
    margin: 0;
}

/* People and witness records */
.ree-incident-hub .ree-manager .ree-person {
    margin: 14px 0;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.ree-incident-hub .ree-manager .ree-person legend {
    padding: 0 8px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
}

/* Add Person / Add Witness */
.ree-incident-hub .ree-manager .ree-add-row {
    min-height: 38px;
    margin-top: 6px;
    padding: 7px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.ree-incident-hub .ree-manager .ree-add-row:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

/* Risk result */
.ree-incident-hub .ree-manager .ree-risk-preview {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-left: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
}

/* File upload */
.ree-incident-hub .ree-manager input[type="file"] {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
}

/* Main Submit button */
.ree-incident-hub .ree-manager .ree-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 22px;
    border: 1px solid #0f172a;
    border-radius: 8px;
    background: #0f172a;
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none;
}

.ree-incident-hub .ree-manager .ree-submit:hover {
    border-color: #1e293b;
    background: #1e293b;
}

/* Success / error */
.ree-incident-hub .ree-manager .ree-notice,
.ree-incident-hub .ree-manager .ree-error {
    margin: 0 0 18px;
    padding: 13px 15px;
    border-radius: 8px;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 800px) {
    .ree-incident-hub .ree-manager .ree-grid {
        grid-template-columns: 1fr;
    }

    .ree-incident-hub .ree-manager .ree-card {
        padding: 17px;
    }

    .ree-incident-hub .ree-manager .ree-submit {
        width: 100%;
    }
}

/* REE Incident Details modal */

.ree-incident-detail-modal {
    width: min(1100px, 95vw);
    max-width: 1100px;
    height: min(850px, 90vh);
    max-height: 90vh;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 70px rgba(0,0,0,.25);
    overflow: hidden;
}

.ree-incident-detail-modal::backdrop {
    background: rgba(15,23,42,.65);
}

.ree-incident-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 24px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
    font-size: 18px;
}

.ree-incident-modal-close {
    border: 0;
    background: transparent;
    color: #475569;
    font-size: 28px;
    cursor: pointer;
}

.ree-incident-detail-modal iframe {
    display: block;
    width: 100%;
    height: calc(100% - 62px);
    border: 0;
}

@media (max-width: 768px) {
    .ree-incident-detail-modal {
        width: 100vw;
        max-width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
    }

    .ree-incident-modal-header {
        padding: 12px 16px;
    }
}

/* Incident Details AJAX popup adjustments */

.ree-incident-detail-modal {
    flex-direction: column;
}

.ree-incident-detail-modal[open] {
    display: flex;
}

.ree-incident-modal-header {
    flex-shrink: 0;
}

.ree-incident-modal-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 24px;
    background: #fff;
}

.ree-incident-modal-content .ree-incident-details {
    max-width: 100%;
}

@media (max-width: 768px) {
    .ree-incident-modal-content {
        padding: 14px;
    }
}

/* =========================================================
   SITE SUBMISSIONS — COMPACT TABLE
   ========================================================= */

.ree-site-submissions-table {
    font-size: 12px !important;
    line-height: 1.35;
}

.ree-site-submissions-table th,
.ree-site-submissions-table td {
    font-size: 12px !important;
    padding: 5px 6px !important;
    vertical-align: middle;
}

.ree-site-submissions-table th {
    font-weight: 600;
}

.ree-site-submissions-table .ree-site-view-record {
    font-size: 11px !important;
    padding: 5px 8px !important;
    line-height: 1.3;
}


/* =========================================================
   SITE SUBMISSIONS — HIDE SELECTED COLUMNS
   ========================================================= */

/* Employee — column 3 */
.ree-site-submissions-table th:nth-child(3),
.ree-site-submissions-table td:nth-child(3) {
    display: none !important;
}

/* Distribute remaining columns automatically */
.ree-site-submissions-table {
    table-layout: auto !important;
}

