/* Light "inbox" boxes (same look as My Messages: one thin frame, small_box header, white body) for legacy grey layouts.
   Applied with the .light_boxes class on account pages and on the Videos / Channels / Groups pages. */

/* Legacy rounded grey frames: no grey, no second frame. */
.light_boxes table[bgcolor="#CCCCCC"], .light_boxes table[bgcolor="#cccccc"] { background: none !important; border: 0 !important; }
.light_boxes table[bgcolor="#CCCCCC"] img[src*="box_login_"], .light_boxes table[bgcolor="#cccccc"] img[src*="box_login_"] { visibility: hidden; }

/* Title bars look like .small_box_header. */
.light_boxes .moduleTitleBar, .light_boxes .videos_box_head, .light_boxes .watchTitleBar {
    background: linear-gradient(to bottom, #eaeaea 1%, #fff 61%) !important; border: 1px solid #ccc; border-radius: 5px 5px 0 0; color: #757575; }
.light_boxes .moduleTitleBar { box-sizing: border-box; padding: 6px 8px 5px !important; }
.light_boxes .moduleTitleBar .moduleTitle, .light_boxes .moduleTitleBar td { line-height: 16px; vertical-align: middle; }
.light_boxes .videos_box_head, .light_boxes .watchTitleBar { padding: 6px 8px 5px !important; }
/* Sort/view links in the middle of a title bar are centred on the whole bar (legacy markup nudged them with right:90px). */
.light_boxes .moduleTitleBar { position: relative; }
.light_boxes .moduleTitleBar .moduleTitle { margin: 0 !important; }
.light_boxes .moduleTitleBar td[align="center"] { position: absolute !important; left: 50% !important; right: auto !important; top: 50%; transform: translate(-50%, -50%); width: auto !important; white-space: nowrap; }
.light_boxes .moduleTitleBar td[align="center"] div { padding: 0 !important; }

/* Entries / bodies look like .small_box_in. */
.light_boxes .moduleEntry, .light_boxes .videos_box_in {
    background: #fff !important; background-image: none !important; border: 1px solid #ccc; border-top: 0; }
.light_boxes .moduleEntry + .moduleEntry { border-top: 1px dashed #ddd; }

/* Grey legacy box wrappers. */
.light_boxes .videos_box { background: none !important; margin: 0 0 12px; }
.light_boxes .videos_box_conainer { padding: 0 !important; }
.light_boxes div[style*="background:#ccc"] { background: linear-gradient(to bottom, #eaeaea 1%, #fff 61%) !important; border: 1px solid #ccc; border-radius: 5px 5px 0 0; }
