/* 표/캘린더 */
.rb-att-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.rb-att-head a{padding:6px 10px;border:1px solid #ddd;border-radius:6px;text-decoration:none}
.rb-att-title{font-size:18px;}
.rb-att-cal{width:100%;border-collapse:collapse;table-layout:fixed}
.rb-att-cal th,.rb-att-cal td{border:1px solid #eee;padding:10px;vertical-align:top;cursor:pointer;}
.rb-att-cal td:hover {background-color: #fafafa;}
.rb-att-cal th{background:#fafafa;}
.rb-att-day{font-size:13px;margin-bottom:6px}
.rb-att-cell{min-height:72px;position:relative}
.rb-att-today{background-color:#f0f5f9;}
.rb-att-selected{box-shadow:inset 0 0 0 1px #111}
.rb-att-img{text-align:center;}
.rb-att-img img{width:80px;height:auto;max-width:100%}

/* 폼/버튼 */
.rb-att-form{margin-top:0;border:0;border-radius:10px;padding:20px;background:#f9f9f9;}
.rb-att-form textarea{width:100%;height:80px;padding:15px !important;border:0 !important;border-radius:8px;font-size:14px}
.rb-att-btn{margin-top:8px;display:flex;gap:8px;align-items:center}
.rb-att-btn button{padding:8px 14px;border:1px solid #111;background:#111;color:#fff;border-radius:8px;cursor:pointer}
.rb-att-msg{font-size:12px;color:#666;margin-left:6px}

/* 리스트 */
.rb-att-list{margin-top:25px;}
.rb-att-list-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #eee;font-size:16px;padding-bottom:15px;}
.rb-att-list-box{padding:0;}
.rb-att-item{display:flex;gap:15px;align-items:flex-start;padding:20px 0;border-bottom:1px solid #eee}
.rb-att-item:last-child{border-bottom:none}
.rb-att-badge{flex:none;text-align:center;font-size:11px;padding:3px 7px;border:0px;border-radius:4px;background:#f8f8f8; display: inline-block; margin-right: 3px;}
.rb-att-badge.r1{background:#000;color:#fff;}
.rb-att-badge.r2{background:#444;color:#fff;}
.rb-att-badge.r3{background:#888;color:#fff;}
.rb-att-badge.r4{background:#aaa;color:#fff;}
.rb-att-badge.r5{background:#ccc;color:#fff;}
.rb-att-body{flex:1}
.rb-att-meta{font-size:12px;color:#666;margin-bottom:4px}
.rb-att-text{font-size:14px;line-height:1.5;word-break:break-word}
.rb-att-empty{padding:20px;color:#888;text-align:center;}
.rb-att-top-wrap{display:flex;gap:10px;}
.rb-att-top-wrap > .rb-att-top-no{flex:1 1 0;min-width:0;text-align:center;padding:10px 12px;font-size: 13px;}
.rb-att-top-no {padding: 15px; border-radius: 10px; margin-bottom: 10px; border:1px solid #eee;}
.rb-att-earned {margin-top:6px; font-size:11px; padding: 3px 7px; background-color: #f0f5f9; border-radius: 4px; width: auto; display: inline-block;}
    
.rb-att-left {float:left; width:48%;}
.rb-att-right{float:right; width:48%;}

#rb-att-left {position: sticky;}
    
@media all and (max-width: 768px){
    .rb-att-left,.rb-att-right{float:none;width:100%}
    .rb-att-right {margin-top: 20px;}
    .rb-att-form {margin-top: 20px;}
    #rb-att-left {position:relative; top: auto !important;}
    .rb-att-top-no {margin-bottom: 0px;}
    
}

/* ==========================================================
   BITE DATA - 출석 페이지 기존 공통 야간 모드 연동
   전환 기준: 사이트 공통 body.dark-mode
   새로운 테마/JS/DB 없이 기존 출석 모듈 색상만 보정
   ========================================================== */
body.dark-mode .rb-att-head a {
    color: #d8dce0;
    background-color: #242628;
    border-color: #383b3f;
}
body.dark-mode .rb-att-head a:hover {
    background-color: #303338;
    border-color: #555b60;
}
body.dark-mode .rb-att-title,
body.dark-mode .rb-att-day,
body.dark-mode .rb-att-list-head,
body.dark-mode .rb-att-text,
body.dark-mode .rb-att-top-no {
    color: #e9ecef;
}
body.dark-mode .rb-att-cal th,
body.dark-mode .rb-att-cal td {
    color: #dfe2e5;
    border-color: #303338;
}
body.dark-mode .rb-att-cal th { background-color: #242628; }
body.dark-mode .rb-att-cal td { background-color: #191b1d; }
body.dark-mode .rb-att-cal td:hover { background-color: #272a2e; }
body.dark-mode .rb-att-cal td.rb-att-today { background-color: #242d21; }
body.dark-mode .rb-att-cal td.rb-att-selected {
    box-shadow: inset 0 0 0 2px #88b64b;
}
/* 이미지 출석 도장은 원본 그대로 유지 */
body.dark-mode .rb-att-top-no {
    background-color: #1c1e20;
    border-color: #303338;
}
body.dark-mode .rb-att-form {
    background-color: #1c1e20;
    border: 1px solid #303338;
}
body.dark-mode .rb-att-form textarea {
    background-color: #25272a !important;
    color: #e9ecef !important;
    border: 1px solid #383b3f !important;
    outline: none;
    color-scheme: dark;
}
body.dark-mode .rb-att-form textarea::placeholder { color: #9299a1; }
body.dark-mode .rb-att-form textarea:focus {
    border-color: #88b64b !important;
    box-shadow: 0 0 0 2px rgba(136,182,75,.13);
}
body.dark-mode .rb-att-btn button {
    background-color: #2a2d30;
    color: #eef0f2;
    border-color: #3b3f43;
}
body.dark-mode .rb-att-btn button:hover:not(:disabled) {
    background-color: #353a3d;
    border-color: #89af52;
}
body.dark-mode .rb-att-btn button:focus-visible,
body.dark-mode .rb-att-head a:focus-visible {
    outline: 2px solid #89af52;
    outline-offset: 2px;
}
body.dark-mode .rb-att-msg,
body.dark-mode .rb-att-meta,
body.dark-mode .rb-att-empty { color: #9da5ad; }
body.dark-mode .rb-att-list-head,
body.dark-mode .rb-att-item { border-color: #303338; }
body.dark-mode .rb-att-badge { background-color: #303338; color: #e9ecef; }
body.dark-mode .rb-att-badge.r1 { background-color: #111; color: #fff; }
body.dark-mode .rb-att-badge.r2 { background-color: #444; color: #fff; }
body.dark-mode .rb-att-badge.r3 { background-color: #62676b; color: #fff; }
body.dark-mode .rb-att-badge.r4 { background-color: #747a80; color: #fff; }
body.dark-mode .rb-att-badge.r5 { background-color: #898e94; color: #111; }
body.dark-mode .rb-att-earned {
    background-color: #293426;
    color: #b5d77a;
}

/* BITE DATA attendance: reuse the existing member profile image helper. */
.rb-att-meta .rb-att-profile-avatar {
    display: inline-flex;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    margin-right: 6px;
    vertical-align: middle;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
}
.rb-att-meta .rb-att-profile-avatar img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 50%;
}
.rb-att-meta .rb-att-profile-avatar + .sv_wrap .sv_member::before,
.rb-att-meta .rb-att-profile-avatar + .sv_wrap .sv_member::after {
    display: none !important;
    content: none !important;
}


/* BITE DATA attendance: retain only the dedicated member profile picture.
   Gnuboard/Rebuilder get_sideview() can supply its own fallback/avatar.
   Hide that redundant visual in this widget without touching sideview name/menu. */
.rb-att-meta > .sv_wrap img,
.rb-att-meta > .sv_wrap .sv_member::before,
.rb-att-meta > .sv_wrap .sv_member::after,
.rb-att-meta > .sv_wrap .sv_member img,
.rb-att-meta .sv_wrap > a > img,
.rb-att-meta .sv_wrap > span > img {
    display: none !important;
    content: none !important;
}
.rb-att-meta > .rb-att-profile-avatar img {
    display: block !important;
}
