/* 042.4.6.12.3.7.1 CLUB MAIL HEADER SPACING COMPATIBILITY CORRECTION */
/* Preserves 12.3.6 selection, bulk actions, sorting and pagination behavior. */

/* Existing toolbar foundation retained. */
.jw-mailbox-shell .communications-hero{margin:0 0 4px !important;padding-top:10px !important;padding-bottom:0 !important;}
.jw-mailbox-shell .communications-hero .eyebrow,
.jw-mailbox-shell .communications-hero [class*="eyebrow"]{margin-bottom:3px !important;}
.jw-mailbox-shell .communications-hero h1{margin:0 0 4px !important;line-height:1.05 !important;}
.jw-mailbox-shell .communications-hero p{margin:0 !important;line-height:1.25 !important;}
.jw-mailbox-shell .communications-hero + *{margin-top:0 !important;}
.communications-hero a[href*="direct-message-compose.cfm"]{display:none !important;}
.communications-hero p:has(> a[href*="direct-message-compose.cfm"]){display:none !important;margin:0 !important;}

.jw-mailbox-toolbar{display:flex;align-items:center;gap:8px;margin:6px 0 6px;padding:0 0 6px;border-bottom:1px solid rgb(205,214,226);}
.jw-mailbox-toolbar .jw-mailbox-compose{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:5px 11px;border:1px solid rgb(27,84,166);border-radius:8px;background:rgb(27,84,166);color:#fff;font-weight:800;text-decoration:none;white-space:nowrap;}
.jw-mailbox-toolbar .jw-mailbox-compose:hover,.jw-mailbox-toolbar .jw-mailbox-compose:focus-visible{background:rgb(15,57,111);color:#fff;}
.jw-mailbox-shell .jw-mailbox-nav{display:flex;align-items:center;gap:2px;margin:0;padding:0;border:0;}
.jw-mailbox-shell .jw-mailbox-nav a{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:5px 9px;margin:0;border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;color:rgb(15,57,111);font-weight:800;text-decoration:none;white-space:nowrap;}
.jw-mailbox-shell .jw-mailbox-nav a[aria-current="page"]{color:rgb(27,84,166);border-bottom-color:rgb(255,196,0);}
.jw-mailbox-shell .jw-mailbox-nav a:hover,.jw-mailbox-shell .jw-mailbox-nav a:focus-visible{background:rgb(247,249,252);text-decoration:none;}
.jw-mailbox-toolbar .jw-mailbox-count{margin-left:auto;white-space:nowrap;padding:4px 9px;border-radius:999px;background:rgb(237,242,250);color:rgb(15,57,111);font-size:13px;font-weight:800;}
.jw-mailbox-heading{display:none !important;}

.jw-mailbox-bulkbar{display:flex;align-items:center;gap:8px;margin:0 0 4px;min-height:30px;}
.jw-mailbox-bulkbar[hidden]{display:none !important;}
.jw-mailbox-bulk-count{font-size:12px;font-weight:800;color:rgb(84,95,112);}
.jw-mailbox-bulk-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;}
.jw-mailbox-bulk-actions button{min-height:28px;padding:3px 8px;border:1px solid rgb(27,84,166);border-radius:6px;background:#fff;color:rgb(15,57,111);font-family:Arial,Helvetica,sans-serif;font-size:11px;font-weight:800;cursor:pointer;white-space:nowrap;}
.jw-mailbox-bulk-actions button:hover,.jw-mailbox-bulk-actions button:focus-visible{background:rgb(247,249,252);}

.jw-mailbox-column-head{display:grid;grid-template-columns:34px 104px minmax(150px,190px) minmax(320px,1fr);gap:10px;align-items:center;padding:7px 10px 7px 10px;border:1px solid rgb(205,214,226);border-bottom:0;border-radius:10px 10px 0 0;background:rgb(247,249,252);color:rgb(84,95,112);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.02em;}
.jw-mailbox-column-head .jw-mailbox-select-all-wrap{display:flex;align-items:center;justify-content:center;}
.jw-mailbox-column-head button.jw-mailbox-sort{display:inline-flex;align-items:center;gap:4px;border:0;background:transparent;padding:0;color:inherit;font:inherit;text-transform:inherit;letter-spacing:inherit;cursor:pointer;}
.jw-mailbox-column-head button.jw-mailbox-sort:hover,.jw-mailbox-column-head button.jw-mailbox-sort:focus-visible{color:rgb(27,84,166);}
.jw-mailbox-sort-indicator{position:relative;display:inline-block;width:10px;height:12px;flex:0 0 10px;}
.jw-mailbox-sort-indicator:before,
.jw-mailbox-sort-indicator:after{content:"";position:absolute;left:2px;width:0;height:0;border-left:3px solid transparent;border-right:3px solid transparent;opacity:.35;}
.jw-mailbox-sort-indicator:before{top:1px;border-bottom:4px solid currentColor;}
.jw-mailbox-sort-indicator:after{bottom:1px;border-top:4px solid currentColor;}
.jw-mailbox-sort[data-dir="asc"] .jw-mailbox-sort-indicator:before{opacity:1;}
.jw-mailbox-sort[data-dir="asc"] .jw-mailbox-sort-indicator:after{opacity:.12;}
.jw-mailbox-sort[data-dir="desc"] .jw-mailbox-sort-indicator:before{opacity:.12;}
.jw-mailbox-sort[data-dir="desc"] .jw-mailbox-sort-indicator:after{opacity:1;}

.jw-mailbox-list{display:block;margin:0;border:1px solid rgb(205,214,226);border-radius:0 0 10px 10px;overflow:hidden;background:#fff;box-shadow:0 3px 10px rgba(15,57,111,.04);}
.jw-mailbox-list .jw-mailbox-row{position:relative;display:grid;grid-template-columns:34px 104px minmax(150px,190px) minmax(320px,1fr);gap:10px;align-items:center;min-height:44px;margin:0;padding:5px 10px 5px 10px;border:0;border-bottom:1px solid rgb(226,232,240);border-radius:0;box-shadow:none;background:#fff;overflow:hidden;cursor:pointer;}
.jw-mailbox-list .jw-mailbox-row:last-child{border-bottom:0;}
.jw-mailbox-list .jw-mailbox-row:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:transparent;}
.jw-mailbox-list .jw-mailbox-row.is-unread{background:rgb(252,253,255);}
.jw-mailbox-list .jw-mailbox-row.is-unread:before{background:rgb(255,196,0);}
.jw-mailbox-list .jw-mailbox-row:hover{background:rgb(247,250,254);}
.jw-mailbox-list .jw-mailbox-row:focus-visible{outline:2px solid rgb(27,84,166);outline-offset:-2px;}

.jw-mailbox-list .jw-mailbox-select-cell{grid-column:1;display:flex;align-items:center;justify-content:center;}
.jw-mailbox-list .jw-mailbox-date-cell{grid-column:2;min-width:0;display:flex;align-items:center;justify-content:flex-start;gap:5px;margin:0;color:rgb(84,95,112);font-size:12px;white-space:nowrap;overflow:hidden;}
.jw-mailbox-list .jw-mailbox-date-text{min-width:0;overflow:hidden;text-overflow:ellipsis;}
.jw-mailbox-list .jw-mailbox-unread-count{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:rgb(255,236,153);color:rgb(79,59,0);font-size:10px;font-weight:800;vertical-align:middle;flex:0 0 auto;}
.jw-mailbox-list .jw-mailbox-from-cell{grid-column:3;min-width:0;margin:0;color:rgb(40,51,67);font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.jw-mailbox-list .jw-mailbox-subject-cell{grid-column:4;min-width:0;display:flex;align-items:baseline;gap:6px;overflow:hidden;white-space:nowrap;}
.jw-mailbox-list .jw-mailbox-subject-cell h2{flex:0 1 auto;min-width:0;max-width:58%;margin:0;font-size:13px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.jw-mailbox-list .jw-mailbox-subject-cell h2 a{color:rgb(8,39,82);text-decoration:none;}
.jw-mailbox-list .jw-mailbox-preview-cell{flex:1 1 auto;min-width:0;color:rgb(84,95,112);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.jw-mailbox-list .jw-mailbox-preview-cell:before{content:"- ";color:rgb(124,134,149);}
.jw-mailbox-list .jw-mailbox-row.is-unread .jw-mailbox-from-cell,
.jw-mailbox-list .jw-mailbox-row.is-unread .jw-mailbox-subject-cell h2{font-weight:800;color:rgb(8,39,82);}
.jw-mailbox-list .jw-mailbox-original-hidden{display:none !important;}

.jw-mailbox-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;flex-wrap:wrap;}
.jw-mailbox-page-size{display:flex;align-items:center;gap:6px;font-size:12px;color:rgb(84,95,112);}
.jw-mailbox-page-size select{min-height:30px;border:1px solid rgb(180,194,214);border-radius:6px;background:#fff;color:rgb(15,57,111);font-family:Arial,Helvetica,sans-serif;font-weight:700;padding:2px 6px;}
.jw-mailbox-pager{display:flex;align-items:center;gap:6px;font-size:12px;}
.jw-mailbox-pager button{min-height:30px;padding:3px 8px;border:1px solid rgb(180,194,214);border-radius:6px;background:#fff;color:rgb(15,57,111);font-family:Arial,Helvetica,sans-serif;font-weight:800;cursor:pointer;}
.jw-mailbox-pager button[disabled]{opacity:.45;cursor:default;}
.jw-mailbox-page-status{color:rgb(84,95,112);font-weight:700;}

@media (max-width:900px){
  .jw-mailbox-column-head{display:none;}
  .jw-mailbox-list{border-radius:10px;}
  .jw-mailbox-list .jw-mailbox-row{grid-template-columns:28px minmax(0,1fr) auto;gap:4px 8px;min-height:0;padding:9px 10px 9px 10px;cursor:pointer;}
  .jw-mailbox-list .jw-mailbox-select-cell{grid-column:1;grid-row:1 / span 2;}
  .jw-mailbox-list .jw-mailbox-from-cell{grid-column:2;grid-row:1;font-size:13px;}
  .jw-mailbox-list .jw-mailbox-date-cell{grid-column:3;grid-row:1;text-align:right;justify-content:flex-end;}
  .jw-mailbox-list .jw-mailbox-subject-cell{grid-column:2 / -1;grid-row:2;display:block;}
  .jw-mailbox-list .jw-mailbox-subject-cell h2{max-width:100%;font-size:14px;margin-bottom:2px;}
  .jw-mailbox-list .jw-mailbox-preview-cell{display:block;font-size:12px;}
  .jw-mailbox-list .jw-mailbox-preview-cell:before{content:"";}
}
@media (max-width:620px){
  .jw-mailbox-toolbar{align-items:flex-start;flex-wrap:wrap;}
  .jw-mailbox-toolbar .jw-mailbox-count{margin-left:0;}
  .jw-mailbox-shell .jw-mailbox-nav{order:3;width:100%;overflow-x:auto;}
  .jw-mailbox-footer{align-items:flex-start;}
}


/* 042.4.6.12.3.7.1 HEADER SPACING COMPATIBILITY LAYER
   The prior 12.3.7 hero selectors did not control the rendered whitespace.
   These rules are scoped to the Club Mail shell and heading relationships only. */
.jw-mailbox-shell{
  padding-top:8px !important;
  margin-top:0 !important;
}
.jw-mailbox-shell > :first-child{
  margin-top:0 !important;
}
.jw-mailbox-shell > section:first-of-type,
.jw-mailbox-shell > header:first-of-type,
.jw-mailbox-shell > div:first-of-type{
  min-height:0 !important;
}
.jw-mailbox-shell h1{
  margin-top:4px !important;
  margin-bottom:4px !important;
  line-height:1.05 !important;
}
.jw-mailbox-shell h1 + p{
  margin-top:0 !important;
  margin-bottom:6px !important;
  line-height:1.2 !important;
}
.jw-mailbox-shell .jw-mailbox-toolbar{
  margin-top:6px !important;
  margin-bottom:6px !important;
  padding-bottom:6px !important;
}
.jw-mailbox-shell .jw-mailbox-toolbar + *{
  margin-top:0 !important;
}
.jw-mailbox-shell .jw-mailbox-column-head{
  margin-top:0 !important;
}


/* 042.4.6.12.3.7.4 CLUB MAIL FINAL HEADER POLISH */
/* Presentation-only closeout. Preserves 12.3.6 mailbox behavior and 12.3.7 sort arrows. */
.jw-mailbox-shell .jw-mailbox-title-row{
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  column-gap:10px;
  row-gap:0;
  margin:0 0 4px !important;
}
.jw-mailbox-shell .jw-mailbox-title-row h1{
  margin:0 !important;
  line-height:1.05 !important;
}
.jw-mailbox-shell .jw-mailbox-title-row .jw-mailbox-title-helper{
  margin:0 !important;
  font-size:inherit;
  font-weight:400;
  line-height:1.25 !important;
  color:inherit;
}
.jw-mailbox-shell .jw-mailbox-nav a[aria-current="page"]{
  background:transparent !important;
  color:rgb(15,57,111) !important;
  border-bottom-color:rgb(255,196,0) !important;
  box-shadow:none !important;
}
@media (max-width:640px){
  .jw-mailbox-shell .jw-mailbox-title-row{
    align-items:flex-start;
    column-gap:8px;
  }
}