@charset "UTF-8";
/*
    대시보드 > 주소록 (/dashboard/addr)
    + 주소 고르기 드롭다운(.apk) — 메일 쓰기에서도 쓴다

    메일함과 같은 틀이다 : 좌(그룹) + 우(표), 높이 고정.
    그룹이 늘거나 줄어도 바깥 틀이 출렁이지 않는다.
*/

/* ── 틀 ───────────────────────────────────────────────────────── */

.ab-page{
    display:flex; gap:14px; align-items:stretch;
    height:calc(100vh - 230px); min-height:430px;
}

.ab-side{
    flex:0 0 220px; display:flex; flex-direction:column; min-height:0;
    background:#fff; border:1px solid #e3e8f0; border-radius:10px; overflow:hidden;
}
.ab-side__head{
    display:flex; align-items:center; justify-content:space-between; gap:8px;
    padding:12px 14px; border-bottom:1px solid #eef1f6; background:#fafbfd;
}
.ab-side__head h2{ margin:0; font-size:14px; font-weight:700; color:#243247; }
/* index.css 의 .btn 은 width:90px 로 못박혀 있다. 좁은 자리라 풀어 준다 */
.ab-side__head .btn{
    flex:none; width:auto; min-width:0; height:26px; padding:0 9px; font-size:11.5px;
}
.ab-side__body{ flex:1 1 auto; min-height:0; overflow:auto; padding:6px; }

.ab-main{ flex:1 1 auto; min-width:0; display:flex; flex-direction:column; min-height:0; }

/* ── 그룹 목록 ────────────────────────────────────────────────── */

.ab-groups{ margin:0; padding:0; list-style:none; }

.ab-grp{
    position:relative; display:flex; align-items:center; gap:6px; width:100%;
    padding:0 8px; height:32px; margin-bottom:2px;
    border:none; border-radius:6px; background:transparent;
    font-size:12.5px; color:#41506a; text-align:left; cursor:pointer;
}
.ab-grp:hover{ background:#eaf1f9; }
.ab-grp.is-on{ background:#0a529d; color:#fff; font-weight:700; }
.ab-grp--none{ color:#8a94a6; }
.ab-grp.ab-grp--none.is-on{ color:#fff; }

.ab-grp__nm{
    flex:1 1 auto; min-width:0;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.ab-grp > b{
    flex:none; padding:0 6px; height:17px; line-height:17px; border-radius:9px;
    font-size:11px; font-weight:700; color:#55637a; background:#eceff4;
}
.ab-grp.is-on > b{ color:#fff; background:rgba(255,255,255,.26); }

/* 이름 바꾸기 · 지우기 — 그 줄에 올렸을 때만 보인다 */
.ab-grp__act{
    flex:none; display:none; align-items:center; gap:2px;
    position:absolute; right:6px; top:50%; transform:translateY(-50%);
}
.ab-grp:hover .ab-grp__act{ display:flex; }
.ab-grp:hover > b{ visibility:hidden; }
.ab-grp__act i{
    width:19px; height:19px; line-height:19px; border-radius:4px;
    font-style:normal; font-size:12px; text-align:center; color:#55637a; background:#e6ebf2;
}
.ab-grp__act i:hover{ color:#fff; background:#0a529d; }
.ab-grp__act .ab-grp__del:hover{ background:#c9313d; }
.ab-grp.is-on .ab-grp__act i{ color:#0a529d; background:#fff; }

/* ── 도구줄 ───────────────────────────────────────────────────── */

.ab-tool{
    display:flex; align-items:center; justify-content:space-between;
    gap:10px; flex-wrap:wrap; margin-bottom:8px;
}
.ab-tool__left,
.ab-tool__right{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }

.ab-cur{ font-size:14px; font-weight:700; color:#243247; }
.ab-tool .cfg-total{ font-size:12.5px; color:#77839a; }
.ab-tool .cfg-total b{ color:#0a529d; }

.ab-search{
    display:flex; align-items:center; height:34px; width:260px;
    border:1px solid #dfe4ec; border-radius:6px; background:#fff; overflow:hidden;
}
.ab-search input{ flex:1 1 auto; min-width:0; height:100%; border:none; padding:0 10px; font-size:13px; }
.ab-search input:focus{ outline:none; }
.ab-search .search-btn{ flex:none; width:36px; height:100%; border:none; background:#f2f5f9; cursor:pointer; }

.ab-tool .btn{
    flex:none; width:auto; min-width:0; height:34px; padding:0 13px;
    gap:5px; font-size:12.5px; white-space:nowrap;
}
/* .btn 은 display:inline-flex 라 hidden 속성만으로는 안 숨는다 */
.ab-tool .btn[hidden]{ display:none; }

/* ── 표 ───────────────────────────────────────────────────────── */

.ab-table-scroll{
    flex:1 1 auto; min-height:0; overflow:auto;
    background:#fff; border:1px solid #e3e8f0; border-radius:10px;
}
.ab-table-scroll > .simplebar-wrapper{ height:100%; }

.ab-table{ width:100%; border-collapse:collapse; table-layout:fixed; }
.ab-table th,
.ab-table td{
    padding:9px 10px; font-size:13px; text-align:left;
    border-bottom:1px solid #f1f4f8;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.ab-table thead th{
    position:sticky; top:0; z-index:2;
    font-size:12.5px; font-weight:700; color:#55637a; background:#f6f8fb;
    border-bottom:1px solid #e3e8f0;
}
.ab-table tbody tr:hover{ background:#f7fafd; }
.ab-table td.cfg-empty{ padding:30px 10px; text-align:center; color:#8a94a6; }

.ab-nm{ font-weight:600; color:#243247; }
.ab-memo{
    display:block; font-style:normal; font-size:11px; font-weight:400; color:#8a94a6;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.ab-mail{ color:#0a529d; text-decoration:none; }
.ab-mail:hover{ text-decoration:underline; }

.ab-act{ white-space:nowrap; }
.ab-act .btn{
    width:auto; min-width:0; height:26px; padding:0 9px; font-size:11.5px;
}

/* ── 모달 ─────────────────────────────────────────────────────── */

.ab-modal{
    display:none; position:fixed; inset:0; z-index:1050;
    align-items:center; justify-content:center;
}
.ab-modal.active{ display:flex; }
.ab-modal .modal__dim{ position:absolute; inset:0; background:rgba(16,32,56,.45); }

.ab-modal .modal__box{
    position:relative; display:flex; flex-direction:column;
    background:#fff; border-radius:12px; overflow:hidden;
    box-shadow:0 18px 48px rgba(16,32,56,.25);
}
/* 칸이 늘고 줄어도 모달 크기는 그대로다 */
.ab-modal .ab-form__box{ width:min(620px, calc(100vw - 32px)); height:min(560px, calc(100vh - 48px)); }
.ab-modal .ab-move__box{ width:min(440px, calc(100vw - 32px)); height:min(300px, calc(100vh - 48px)); }

.ab-modal .modal__head{
    flex:none; display:flex; align-items:center; gap:10px;
    padding:14px 18px; border-bottom:1px solid #eef1f6; background:#fafbfd;
}
.ab-modal .mskin__ttl{ flex:1 1 auto; min-width:0; display:flex; flex-direction:column; }
.ab-modal .mskin__ttl h3{ margin:0; font-size:15px; font-weight:700; color:#243247; }
.ab-modal .mskin__ttl i{ font-style:normal; font-size:12px; color:#8a94a6; }
.ab-modal .modal__close{
    flex:none; width:34px; height:34px; border:none; background:transparent;
    font-size:24px; color:#8a94a1; cursor:pointer; border-radius:6px;
}
.ab-modal .modal__close:hover{ background:rgba(10,82,157,.08); color:#0a529d; }

.ab-modal .modal__body{ flex:1 1 auto; min-height:0; overflow-y:auto; }
.ab-modal .modal__card{ padding:16px 20px; }

.ab-modal .modal__foot{
    flex:none; display:flex; justify-content:flex-end; gap:8px;
    padding:12px 18px; border-top:1px solid #eef1f6; background:#fafbfd;
}
.ab-modal .modal__foot .btn{
    flex:none; width:auto; min-width:0; height:34px; padding:0 15px; font-size:13px;
}

.ab-f{ display:block; margin-bottom:11px; }
.ab-f > span{
    display:block; margin-bottom:5px; font-size:12.5px; font-weight:600; color:#55637a;
}
.ab-f > span em{ font-style:normal; color:#d9534f; }
.ab-f .form-control{ width:100%; height:38px; }

.ab-f2{ display:flex; gap:10px; }
.ab-f2 .ab-f{ flex:1 1 0; min-width:0; }

/* ── 주소 고르기 드롭다운 (메일 쓰기에서도 쓴다) ──────────────── */

.apk{
    position:absolute; left:0; right:0; top:100%; z-index:20;
    margin-top:3px; max-height:260px; overflow:auto;
    background:#fff; border:1px solid #cfd8e4; border-radius:8px;
    box-shadow:0 10px 28px rgba(16,32,56,.16);
}
.apk__it{
    display:flex; align-items:baseline; gap:8px;
    padding:7px 11px; cursor:pointer;
    border-bottom:1px solid #f4f6fa;
}
.apk__it:last-child{ border-bottom:none; }
.apk__it:hover,
.apk__it.is-on{ background:#eef5fc; }

.apk__nm{ flex:none; font-size:13px; font-weight:700; color:#243247; }
.apk__sub{
    flex:0 1 auto; min-width:0; font-size:11.5px; color:#8a94a6;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.apk__em{
    flex:1 1 auto; min-width:0; text-align:right;
    font-size:12px; color:#0a529d;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

/* ── 좁은 화면 ────────────────────────────────────────────────── */

@media (max-width: 900px){
    .ab-page{ flex-direction:column; height:auto; min-height:0; }
    .ab-side{ flex:0 0 auto; }
    .ab-side__body{ max-height:200px; }
    .ab-table-scroll{ max-height:60vh; }
    .ab-search{ width:100%; }
    .ab-f2{ flex-direction:column; gap:0; }
}
