/* Mail Room Hub */
.mailroom-hub { width: 100%; }

/* Mail Room Lists Grid — hide default grid header, full width */
.mailroom-lists-grid { width: 100% !important; }
.mailroom-lists-grid thead { display: none; }
.mailroom-lists-grid tr { border: none !important; }
.mailroom-lists-grid td { padding: .35rem .5rem !important; border: none !important; background: transparent !important; width: 100% !important; }

/* Row card */
.mr-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .85rem 1.1rem;
    background: #FFF;
    border: 1px solid #E8EAED;
    border-left: 4px solid #CCC;
    border-radius: .5rem;
    transition: box-shadow .15s ease, border-color .15s ease;
}
.mr-row:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
    border-left-width: 4px;
}
.mr-row-email { border-left-color: #00A1BE; }
.mr-row-email:hover { border-left-color: #00839B; }
.mr-row-postal { border-left-color: #7C5FC5; }
.mr-row-postal:hover { border-left-color: #5E44A0; }
.mr-row-text { border-left-color: #FF4A11; }
.mr-row-text:hover { border-left-color: #CC3B0E; }

/* Row icon */
.mr-row-icon {
    width: 48px;
    height: 48px;
    border-radius: .625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mr-row-email .mr-row-icon { background: #E0F5F9; color: #00A1BE; }
.mr-row-postal .mr-row-icon { background: #F0ECFB; color: #7C5FC5; }
.mr-row-text .mr-row-icon { background: #FFF3EB; color: #FF4A11; }

/* Row body */
.mr-row-body { flex: 1; min-width: 0; }
.mr-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .35rem;
}
.mr-row-title {
    font-family: var(--font-headings);
    font-size: 1rem;
    font-weight: 600;
    color: #27282A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Row actions */
.mr-row-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}
.mr-row-action {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    transition: background .15s ease, color .15s ease;
    text-decoration: none !important;
}
.mr-action-open { color: #00CC78; background: rgba(0, 204, 120, .08); }
.mr-action-open:hover { background: rgba(0, 204, 120, .18); color: #00995A; }
.mr-action-copy { color: #FF4A11; background: rgba(255, 74, 17, .08); }
.mr-action-copy:hover { background: rgba(255, 74, 17, .18); color: #CC3B0E; }
.mr-action-delete { color: #D8237C; background: rgba(216, 35, 124, .08); }
.mr-action-delete:hover { background: rgba(216, 35, 124, .18); color: #B01A65; }

/* Row meta */
.mr-row-meta {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}
.mr-list-type-badge {
    display: inline-flex;
    align-items: center;
    padding: .15rem .6rem;
    border-radius: 1rem;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .02em;
}
.mr-badge-email { background: #E0F5F9; color: #00839B; }
.mr-badge-postal { background: #F0ECFB; color: #5E44A0; }
.mr-badge-text { background: #FFF3EB; color: #CC3B0E; }
.mr-row-id { font-size: .78rem; color: #8C9197; font-weight: 500; }
.mr-row-date { font-size: .78rem; color: #8C9197; }
.mr-row-locked {
    font-size: .75rem;
    font-weight: 600;
    color: #D8237C;
    background: #FDE8F0;
    padding: .1rem .5rem;
    border-radius: 1rem;
}

/* Responsive */
@media (max-width: 767.98px) {
    .mr-row { flex-direction: column; align-items: flex-start; gap: .5rem; }
    .mr-row-icon { width: 36px; height: 36px; }
    .mr-row-icon i { font-size: 1.2rem !important; }
    .mr-row-top { flex-direction: column; align-items: flex-start; gap: .35rem; }
    .mr-row-title { white-space: normal; }
}

/* Hero */
.mr-hero {
    background: linear-gradient(135deg, #00A1BE 0%, #038CA5 60%, #026E82 100%);
    border-radius: .75rem;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}
.mr-hero::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 320px;
    height: 320px;
    background: rgba(255, 255, 255, .06);
    border-radius: 50%;
    pointer-events: none;
}
.mr-hero::before {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 5%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, .04);
    border-radius: 50%;
    pointer-events: none;
}
.mr-hero-content { position: relative; z-index: 1; }
.mr-hero h2 {
    font-family: var(--font-headings);
    color: #FFF;
    font-size: 1.6rem;
    margin: 0 0 .5rem;
    font-weight: 700;
}
.mr-hero p {
    color: rgba(255, 255, 255, .85);
    font-family: var(--font-primary);
    font-size: .95rem;
    margin: 0;
    max-width: 600px;
    line-height: 1.5;
}

/* Section */
.mr-section { margin-bottom: 2rem; }
.mr-section-label {
    font-family: var(--font-headings);
    font-size: .85rem;
    font-weight: 700;
    color: #6C757D;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .75rem;
    padding-left: .25rem;
}
.mr-section-label i {
    color: #00A1BE;
    margin-right: .4rem;
}

/* Quick Action Cards — large, prominent */
.mr-action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.mr-action-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: .75rem;
    text-decoration: none !important;
    transition: transform .15s ease, box-shadow .15s ease;
    border: 1px solid transparent;
}
.mr-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
}
.mr-action-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.4rem;
}
.mr-action-text { display: flex; flex-direction: column; }
.mr-action-text strong {
    font-family: var(--font-headings);
    font-size: 1.05rem;
    margin-bottom: .25rem;
}
.mr-action-text span {
    font-size: .82rem;
    line-height: 1.4;
}

/* Card color themes */
.mr-action-primary {
    background: #EBF9FC;
    border-color: #C6EFF6;
}
.mr-action-primary .mr-action-icon {
    background: #00A1BE;
    color: #FFF;
}
.mr-action-primary .mr-action-text strong { color: #00839B; }
.mr-action-primary .mr-action-text span { color: #5A9DAD; }

.mr-action-send {
    background: #E8FBF2;
    border-color: #B8F0D5;
}
.mr-action-send .mr-action-icon {
    background: #00CC78;
    color: #FFF;
}
.mr-action-send .mr-action-text strong { color: #00995A; }
.mr-action-send .mr-action-text span { color: #5AAD86; }

.mr-action-text-msg {
    background: #FFF3EB;
    border-color: #FFDCC4;
}
.mr-action-text-msg .mr-action-icon {
    background: #FF4A11;
    color: #FFF;
}
.mr-action-text-msg .mr-action-text strong { color: #CC3B0E; }
.mr-action-text-msg .mr-action-text span { color: #B07A60; }

.mr-action-postal {
    background: #F0ECFB;
    border-color: #D5CCF3;
}
.mr-action-postal .mr-action-icon {
    background: #7C5FC5;
    color: #FFF;
}
.mr-action-postal .mr-action-text strong { color: #5E44A0; }
.mr-action-postal .mr-action-text span { color: #8E7FB3; }

/* Tile Grid — smaller, even cards */
.mr-tile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
}
.mr-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    background: #FFF;
    border: 1px solid #E8EAED;
    border-radius: .625rem;
    text-decoration: none !important;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
    cursor: pointer;
}
.mr-tile:hover {
    border-color: #00A1BE;
    box-shadow: 0 4px 16px rgba(0, 161, 190, .12);
    transform: translateY(-2px);
}
.mr-tile i {
    font-size: 1.6rem;
    color: #00A1BE;
    margin-bottom: .65rem;
}
.mr-tile:hover i { color: #038CA5; }
.mr-tile span {
    font-family: var(--font-headings);
    font-size: .88rem;
    font-weight: 600;
    color: #27282A;
    margin-bottom: .25rem;
}
.mr-tile small {
    font-size: .75rem;
    color: #8C9197;
    line-height: 1.35;
}

/* Responsive */
@media (max-width: 991.98px) {
    .mr-action-grid { grid-template-columns: 1fr; }
    .mr-tile-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
    .mr-hero { padding: 1.5rem 1.25rem; }
    .mr-hero h2 { font-size: 1.3rem; }
    .mr-tile-grid { grid-template-columns: 1fr; }
    .mr-action-card { padding: 1.1rem; gap: 1rem; }
    .mr-action-icon { width: 44px; height: 44px; font-size: 1.1rem; }
}
