*{box-sizing:border-box}
html,body{margin:0;min-height:100%}
body{font-family:'Malgun Gothic','Apple SD Gothic Neo',Arial,sans-serif;background:#f5f8fc;color:#1f2937;font-size:14px;line-height:1.5}
a{color:#1f4e78}
h1,h2,h3{color:#1f4e78;margin:0 0 10px}
h2{font-size:20px}h3{font-size:16px}
.muted{color:#667085}.small{font-size:12px}.center{text-align:center}

/* 공통 틀 (상단 바 + 왼쪽 메뉴) */
form.inline{display:inline;margin:0}
.shell-header{display:flex;align-items:center;height:62px;background:linear-gradient(90deg,#0b5cad,#0751a0);color:#fff;position:sticky;top:0;z-index:50;box-shadow:0 2px 10px rgba(2,64,130,.12)}
.brand-zone{width:210px;min-width:210px;padding:0 14px;display:flex;align-items:center;justify-content:center}
.shell-header .brand{display:flex;align-items:center;justify-content:center;width:184px;height:54px;padding:3px 5px;text-decoration:none}
.shell-header .brand img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;opacity:.97}
.topbar-center{flex:1;min-width:0;padding:0 26px;display:flex;justify-content:center}
.global-search-wrap{width:min(520px,100%);position:relative}
.global-search-wrap .global-search{display:block;width:100%;height:38px;margin:0;border:none;border-radius:10px;padding:0 44px 0 40px;font-size:13px;color:#344054;background:rgba(255,255,255,.96);outline:none}
.global-search-wrap .global-search:focus{outline:2px solid rgba(255,255,255,.55);border:none}
.search-icon{position:absolute;left:14px;top:10px;color:#4f6d90;font-size:15px;pointer-events:none}
.search-go{position:absolute;right:5px;top:5px;width:30px;height:28px;border:0;border-radius:7px;background:#eaf3ff;color:#0b5cad;font-weight:900;cursor:pointer}
.search-results{display:none;position:absolute;top:44px;left:0;right:0;background:#fff;color:#243b5a;border:1px solid #dce5f0;border-radius:10px;box-shadow:0 14px 32px rgba(26,54,93,.16);overflow:hidden;z-index:80}
.search-result{padding:11px 13px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid #edf1f5;cursor:pointer;font-size:12px;color:#243b5a;text-decoration:none}
.search-result:last-child{border-bottom:0}
.search-result:hover{background:#f5f9ff}
.search-result strong{font-size:13px}
.search-result small{color:#78869a}
.search-result.search-recent-h{background:#f5f9ff;cursor:default;padding:7px 13px}
.search-recent-h small{font-weight:700;color:#4a5b73}
.search-recent-h .search-recent-clr{font-weight:500;color:#98a2b3;cursor:pointer}
.search-recent-h .search-recent-clr:hover{color:#d92d20;text-decoration:underline}
.topbar-right{display:flex;align-items:center;gap:18px;padding-right:20px;white-space:nowrap;font-size:12px;font-weight:800}
.user-chip{display:flex;align-items:center;gap:10px;padding-left:16px;border-left:1px solid rgba(255,255,255,.24)}
.user-link{display:flex;align-items:center;gap:8px;color:#fff;text-decoration:none}
.avatar{width:32px;height:32px;border-radius:50%;background:rgba(255,255,255,.96);color:#0b5cad;display:grid;place-items:center;font-weight:900}
.shell-header .spacer{flex:1}
.hdr-link{color:#dbe7f3;text-decoration:none;font-size:13px}
.hdr-btn{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.3);color:#fff;border-radius:7px;padding:5px 11px;font:inherit;font-size:12px;cursor:pointer}
.hdr-btn:hover{background:rgba(255,255,255,.22)}
.menu-toggle{display:none;background:none;border:0;color:#fff;font-size:22px;cursor:pointer;padding:0 4px}
.shell-layout{display:grid;grid-template-columns:210px minmax(0,1fr);min-height:calc(100vh - 62px)}
.sidebar{background:#fff;border-right:1px solid #e1e8f0;padding:12px 10px 10px;display:flex;flex-direction:column;position:sticky;top:62px;height:calc(100vh - 62px);overflow:hidden}
.nav{display:flex;flex-direction:column;gap:2px;flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding-right:3px;scrollbar-width:thin;scrollbar-color:#b8c4d1 transparent}
.nav::-webkit-scrollbar{width:6px}.nav::-webkit-scrollbar-thumb{background:#b8c4d1;border-radius:999px}
.nav-group{margin-top:10px}
.nav-group:first-child{margin-top:0}
.nav-group-title{padding:5px 14px 4px;color:#8a98ab;font-size:11px;font-weight:900;letter-spacing:.7px;line-height:1.2;margin:0;user-select:none}
.nav-group+.nav-group{padding-top:8px;border-top:1px solid #edf1f5}
.nav-link{min-height:38px;display:flex;align-items:center;gap:11px;padding:0 13px;border-radius:9px;text-decoration:none;color:#17345b;font-size:13px;font-weight:800}
.nav-link:hover{background:#f1f6fc}
.nav-link.active{background:#dfeeff;color:#0864c7}
.nav-icon{width:20px;flex:0 0 20px;text-align:center;font-size:16px;color:inherit}
.nav-link.soon{color:#a7b0bd;cursor:default}
.nav-link.soon:hover{background:none}
.nav-link.soon em{white-space:nowrap;flex:none;margin-left:auto;font-style:normal;font-size:11px;font-weight:700;background:#f2f4f7;color:#98a2b3;border-radius:999px;padding:1px 7px}
.sidebar-bottom{flex:0 0 auto;margin-top:10px;padding:12px 13px;border-radius:12px;background:linear-gradient(145deg,#eef7ff,#e1f2ff);color:#0b6bc9;font-size:12px;font-weight:800;line-height:1.55;position:relative;overflow:hidden;border:1px solid #dceeff}
.sidebar-bottom::after{content:"🌿";position:absolute;right:8px;bottom:5px;font-size:34px;opacity:.26}
.shell-main{padding:18px 20px 40px;min-width:0}
.shell-main .page{max-width:none;width:100%;margin:0;padding:0}
.shell-main .page.narrow{max-width:none}

/* 본문 */
.page{max-width:1100px;margin:0 auto;padding:18px 16px}
.page.narrow{max-width:520px}
.card{background:#fff;border:1px solid #e2e7ec;border-radius:12px;padding:16px;margin-bottom:14px;box-shadow:0 2px 8px rgba(0,0,0,.04)}

/* 버튼 */
.btn{display:inline-block;border:1px solid #cfd6dd;background:#fff;color:#344054;border-radius:8px;padding:8px 14px;font:inherit;font-weight:700;cursor:pointer;text-decoration:none}
.btn:hover{background:#f6f8fa}
.btn.primary{background:#1769cf;border-color:#1769cf;color:#fff}.btn.primary:hover{background:#1259b3}
.btn.warn{color:#9a6700;border-color:#f0d9a0;background:#fff8e6}
.btn.danger{color:#b42318;border-color:#fecdca;background:#fef3f2}
.btn.sm{padding:4px 9px;font-size:12px;margin:1px 2px}
.btn.block{display:block;width:100%;padding:12px;font-size:15px}

/* 로그인·가입 */
body.auth{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:20px}
.authbox{width:100%;max-width:420px;background:#fff;border:1px solid #e2e7ec;border-radius:16px;padding:28px;box-shadow:0 8px 28px rgba(0,0,0,.07)}
.authbox h1{text-align:center;font-size:24px;margin-bottom:4px}
.authbox .sub{text-align:center;color:#667085;margin:0 0 18px}
.authbox .links{text-align:center;margin:16px 0 0;font-size:13px}
label{display:block;font-weight:700;font-size:13px;color:#344054;margin-bottom:12px}
label small{font-weight:400;color:#667085}
label.check{display:flex;align-items:center;gap:8px}
input[type=text],input[type=email],input[type=password],input[type=number],select,textarea{display:block;width:100%;margin-top:5px;border:1px solid #cfd6dd;border-radius:8px;padding:10px 11px;font:inherit;background:#fff}
input:focus,select:focus,textarea:focus{outline:2px solid #bcd3ea;border-color:#1f4e78}
input:disabled{background:#f2f4f7;color:#667085}
input[type=checkbox]{width:auto;margin:0}
.stack>*{margin-bottom:0}
.row{display:flex;gap:8px}.row.end{justify-content:flex-end;margin-top:12px}

/* 메시지 */
.msg{padding:10px 12px;border-radius:8px;margin:0 0 12px;font-size:13px;line-height:1.55}
.msg.ok{background:#ecfdf3;color:#067647;border:1px solid #abefc6}
.msg.err{background:#fef3f2;color:#b42318;border:1px solid #fecdca}

/* 탭 */
.tabs{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}
.tab{border:1px solid #cfd6dd;background:#fff;border-radius:999px;padding:6px 14px;font:inherit;font-weight:700;cursor:pointer;color:#475467}
.tab.on{background:#1f4e78;border-color:#1f4e78;color:#fff}
.tab.alert:not(.on){border-color:#f59e0b;color:#b54708;background:#fffaeb}

/* 표 */
.tablewrap{background:#fff;border:1px solid #e2e7ec;border-radius:12px;overflow:auto}
table.grid{width:100%;border-collapse:collapse;min-width:820px}
table.grid th{background:#34495e;color:#fff;font-size:12px;padding:9px 8px;text-align:center;white-space:nowrap}
table.grid td{border-bottom:1px solid #eef1f4;padding:8px;font-size:13px;vertical-align:middle}
table.grid td.acts{white-space:nowrap;text-align:right}
.badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:800;margin-right:4px;background:#eef2f6;color:#475467}
.badge.s-승인대기{background:#fffaeb;color:#b54708}
.badge.s-사용{background:#ecfdf3;color:#067647}
.badge.s-중지{background:#f2f4f7;color:#667085}
.badge.s-반려{background:#fef3f2;color:#b42318}
.badge.s-nopw,.badge.s-lock{background:#eff6ff;color:#175cd3}

/* 대화상자 */
dialog{border:0;border-radius:14px;padding:20px;width:min(440px,92vw);box-shadow:0 18px 55px rgba(0,0,0,.3)}
dialog::backdrop{background:rgba(15,23,42,.5)}
#linkUrl{font-size:12px}

@media (max-width:640px){
  .page{padding:12px}
}

/* 홈 */
.card-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:8px}
.card-head h3{margin:0}
.homelist{list-style:none;margin:0;padding:0}
.homelist li{padding:8px 0;border-bottom:1px solid #eef1f4;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.homelist li:last-child{border-bottom:0}
.homelist a{color:#1f2937;text-decoration:none;font-weight:700}
.homelist a:hover{text-decoration:underline}
.tag{display:inline-block;font-size:11px;font-weight:900;border-radius:6px;padding:2px 7px;background:#e8edf3;color:#536278}
.tag-imp{background:#ff4d4f;color:#fff}
.newmark{color:#f0444b;font-size:11px;font-weight:900}

@media (max-width:1100px){.top-date{display:none}}
@media (max-width:800px){
  .menu-toggle{display:block;flex:none}
  .brand-zone{width:auto;min-width:0;padding:0 6px}
  .shell-header .brand{width:116px;height:44px}
  .shell-header{flex-wrap:wrap;height:auto;row-gap:0;padding-bottom:8px}
  .topbar-center{order:5;flex:1 0 100%;padding:6px 10px 0}
  .topbar-right{margin-left:auto}
  .topbar-right{padding-right:8px;gap:8px}
  .user-chip{padding-left:8px;gap:6px}
  .user-name{display:none}
  .shell-layout{grid-template-columns:1fr}
  .sidebar{display:none;border-right:0;border-bottom:1px solid #e2e7ec;position:static;height:auto;overflow:visible}
  .sidebar.open{display:flex}
  .shell-main{padding:14px 12px 40px}
}
[hidden]{display:none!important}

/* 안내문구가 바로 위 입력칸과 겹치지 않도록 */
#finder .hint{margin:10px 0 0}
#finder input#search{margin-bottom:0}

/* ===== 왼쪽 메뉴 디자인: 그룹별 색 + 선 아이콘 ===== */
.nav-group.g1{--gc:#2563eb;--gb:#e8f0ff}.nav-group.g2{--gc:#0e9f6e;--gb:#e2f6ee}.nav-group.g3{--gc:#7c3aed;--gb:#f0e9ff}
.nav-group.g4{--gc:#d97706;--gb:#fff0d9}.nav-group.g5{--gc:#db2777;--gb:#fde7f1}.nav-group.g6{--gc:#475569;--gb:#e9edf2}
.nav-group{margin-top:14px;padding:0}
.nav-group+.nav-group{padding-top:0;border-top:0}
.nav-group-title{display:flex;align-items:center;gap:7px;margin:0 0 5px;padding:6px 10px;border-radius:8px;background:var(--gb);color:var(--gc);font-size:11.5px;font-weight:900;letter-spacing:.4px}
.nav-group-title::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--gc);flex:none}
.nav-link{position:relative;min-height:38px;gap:10px;padding:0 10px;border-radius:9px;color:#243b5a;font-weight:700}
.nav-icon{width:28px;height:28px;flex:0 0 28px;display:flex;align-items:center;justify-content:center;border-radius:8px;background:var(--gb);color:var(--gc);font-size:0;transition:background .15s,color .15s}
.nav-icon svg{display:block}
.nav-link:hover{background:#f4f7fb}
.nav-link:hover .nav-icon{background:var(--gc);color:#fff}
.nav-link.active{background:var(--gb);color:var(--gc);font-weight:900}
.nav-link.active::before{content:"";position:absolute;left:-10px;top:8px;bottom:8px;width:4px;border-radius:0 4px 4px 0;background:var(--gc)}
.nav-link.active .nav-icon{background:var(--gc);color:#fff}

/* ===== v42 화면 통일: 숫자카드(라벨 왼쪽·숫자 오른쪽) / 입력·버튼 높이 ===== */
body .pp-sc,body .td-sc,body .sum,body .dbc-st,body .db-pipe a{
  display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:10px;
  height:48px;padding:0 16px;margin:0;text-align:left;
  background:#fff;border:1px solid #e4e7ec;border-radius:10px;box-sizing:border-box}
body .sum{flex-direction:row-reverse}
body .pp-sl,body .td-sc .l,body .sum span,body .dbc-st .l,body .db-pipe a span{
  margin:0;font-size:13px;font-weight:700;color:#475467;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
body .pp-sv,body .td-sc .n,body .sum b,body .dbc-st .n,body .db-pipe a b{
  margin:0;font-size:20px;font-weight:800;line-height:1;color:#1f2937;text-align:right;flex:none}
body .td-sc .n{color:#1f2937}
body .td-sc.hot .n,body .sum.hot b,body .dbc-st .n.bad{color:#d92d20}
body .sumrow,body .pp-summary,body .td-summary,body .dbc-stats{gap:10px;margin:10px 0 14px}
body .db-pipe{gap:10px}
/* 대시보드 큰 카드: 라벨·설명 왼쪽, 숫자 오른쪽 */
body .db-card{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:14px;row-gap:4px;align-items:center;padding:16px 20px}
body .db-card .l{grid-column:1;grid-row:1}
body .db-card .d{grid-column:1;grid-row:2;margin:0}
body .db-card .v{grid-column:2;grid-row:1/3;margin:0;text-align:right;font-size:30px;white-space:nowrap}
/* 입력·버튼 높이/폰트 통일 (32px / 12.5px) */
body .tool input[type=search],body .tool input.q,body .tool input[type=date],body .tool select,body .tool .btn,
body .cal-head .btn,body .cal-head select,
body .pp-search,body .pp-btn{height:32px;box-sizing:border-box;font-size:12.5px;font-weight:700;line-height:1;padding:0 12px;margin:0;border-radius:8px;font-family:inherit}
body .tool .btn.sm,body .cal-head .btn.sm{margin:0}
body .tool input[type=search],body .tool input.q{font-weight:400}
body .tool input[type=date]{font-weight:400;padding:0 8px;width:auto}
body .tool label.check{gap:8px;font-size:12.5px}
body .tool select,body .cal-head select{width:auto;padding:0 28px 0 10px}
body .tool,body .cal-head{gap:8px}
body .tool .btn{display:inline-flex;align-items:center;justify-content:center}
body .cal-head .btn{display:inline-flex;align-items:center;justify-content:center}
/* 신규 계약: 입력 사이 간격 */
body #ctForm .form-grid>div{margin-bottom:14px}
body #ctForm .form-grid>div>label{margin-bottom:0}
body #ctForm .form-grid>div>input{margin-bottom:0}
body #ctForm .form-grid>div:has(#sameInsured){align-self:end;padding-bottom:10px}
body #ctForm .form-grid>div .fam-picked,body #ctForm .form-grid>div .fam-results{margin-bottom:0}
@media (max-width:900px){body .db-card .v{font-size:26px}}
body .cal-head{margin-bottom:12px}
body .cr-stat,body .c3-sum .s{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:10px;height:48px;padding:0 16px;box-sizing:border-box;background:#fff;border:1px solid #e4e7ec;border-radius:10px}
body .cr-stat span,body .c3-sum .l{margin:0;font-size:13px;font-weight:700;color:#475467;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
body .cr-stat b,body .c3-sum .v{margin:0;font-size:20px;font-weight:800;line-height:1;color:#1f2937;text-align:right;flex:none;white-space:nowrap}
body .c3-sum .v.hot{color:#d92d20}
body .cr-stats,body .c3-sum{gap:10px}

/* 고객 360 팝업 */
body.embed .shell-header,body.embed .sidebar{display:none}
body.embed .shell-layout{grid-template-columns:1fr;min-height:0}
body.embed .shell-main{padding:14px 18px 30px}
body.embed .c3-pin{top:0}
body.embed .c3-top{display:none}
body.c360-lock{overflow:hidden}
.c360-ov{position:fixed;inset:0;z-index:2000;background:rgba(15,23,42,.55);display:flex;align-items:center;justify-content:center;padding:2.5vh 3vw}
.c360-box{width:100%;max-width:1500px;height:100%;background:#f5f8fc;border-radius:14px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 20px 60px rgba(0,0,0,.35)}
.c360-bar{display:flex;align-items:center;gap:10px;padding:0 14px;height:44px;flex:none;background:#17407a;color:#fff;font-size:14px}
.c360-tab{color:#cfe0ff;font-size:12.5px;font-weight:700;text-decoration:none}
.c360-tab:hover{color:#fff}
.c360-x{height:30px;border:0;border-radius:7px;background:#fff;color:#17407a;font:inherit;font-size:12.5px;font-weight:800;padding:0 14px;cursor:pointer}
.c360-fr{flex:1;width:100%;border:0;background:#f5f8fc}
@media (max-width:700px){.c360-ov{padding:0}.c360-box{border-radius:0}}

/* 캘린더 날짜 팝업 */
#dayPanel{display:none}
#dayPanel.open{display:block;position:fixed;z-index:1500;left:50%;top:50%;transform:translate(-50%,-50%);width:min(680px,94vw);max-height:86vh;overflow:auto;margin:0;box-shadow:0 20px 60px rgba(0,0,0,.35)}
.day-ov{display:none}
.day-ov.open{display:block;position:fixed;inset:0;z-index:1400;background:rgba(15,23,42,.45)}
.day-hd{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.day-hd h3{margin:0}

/* 20261011 모바일 메뉴: 왼쪽에서 밀려 나오기 */
@media (max-width:800px){
  .sidebar{display:flex!important;position:fixed;top:0;left:0;bottom:0;height:100vh;width:260px;max-width:82vw;z-index:2000;overflow-y:auto;transform:translateX(-105%);visibility:hidden;transition:transform .25s ease,visibility 0s linear .25s;border-right:1px solid #e1e8f0;border-bottom:0}
  .sidebar.open{transform:translateX(0);visibility:visible;transition:transform .25s ease,visibility 0s;box-shadow:4px 0 16px rgba(0,0,0,.25)}
  body.menu-open::after{content:"";position:fixed;inset:0;background:rgba(0,0,0,.35);z-index:1999}
}
/* 전체 입력칸 높이 통일 (32px / 12.5px) - 계약관리 필터 줄과 동일 */
body input[type=text],body input[type=email],body input[type=password],body input[type=number],body input[type=tel],body input[type=search],body input[type=date],body input[type=time],body input[type=datetime-local],body select{height:32px;box-sizing:border-box;font-size:12.5px;line-height:normal;padding-top:0;padding-bottom:0}
body textarea{font-size:12.5px;padding:7px 10px;min-height:32px;box-sizing:border-box}
/* 전체 입력칸 강제 통일 (32px / 12.5px) - 모든 페이지 동일 */
body input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=range]):not([type=color]):not([type=submit]):not([type=button]):not([type=reset]):not([type=image]),body select:not([multiple]){height:32px!important;min-height:32px!important;box-sizing:border-box!important;font-size:12.5px!important;line-height:normal!important;padding-top:0!important;padding-bottom:0!important}
body textarea{font-size:12.5px!important;min-height:32px!important;box-sizing:border-box!important}

/* NAV-NAVY */
body .shell-header{background:#10294a;border-bottom:1px solid #1d3a63;box-shadow:none}
body .global-search-wrap .global-search{background:#1d3a63;border:1px solid #2b4c7b;color:#fff;height:34px}
body .global-search-wrap .global-search::placeholder{color:#b4c4dc}
body .global-search-wrap .global-search:focus{outline:2px solid rgba(255,255,255,.4);background:#244674}
body .search-icon{color:#b4c4dc}
body .search-go{background:#2563c9;color:#fff}
body .top-date{color:#dbe5f3}
body .user-chip{border-left:1px solid #2b4c7b}
body .avatar{background:#2563c9;color:#fff}
body .hdr-btn{background:transparent;border:1px solid #4a6a99;color:#dbe5f3}
body .hdr-btn:hover{background:rgba(255,255,255,.12)}
body .sidebar{background:#10294a;border-right:1px solid #1d3a63}
body .nav-group+.nav-group{border-top:1px solid #1d3a63;padding-top:10px;margin-top:10px}
body .nav-group{--gc:#9fb6d6;--gb:rgba(159,182,214,.14)}
body .nav-group.g2{--gc:#6ee7b7;--gb:rgba(110,231,183,.14)}
body .nav-group.g3{--gc:#c4b5fd;--gb:rgba(196,181,253,.14)}
body .nav-group.g4{--gc:#fcd34d;--gb:rgba(252,211,77,.14)}
body .nav-group.g5{--gc:#f9a8d4;--gb:rgba(249,168,212,.14)}
body .nav-group.g6{--gc:#cbd5e1;--gb:rgba(203,213,225,.14)}
body .nav-link{color:#dbe5f3}
body .nav-icon{background:transparent;color:var(--gc)}
body .nav-link:hover{background:rgba(255,255,255,.08)}
body .nav-link:hover .nav-icon{background:transparent;color:var(--gc)}
body .nav-link.active{background:#2563c9;color:#fff}
body .nav-link.active .nav-icon{background:transparent;color:#fff}
body .nav-link.active::before{display:none}
body .nav-link.soon{color:#7f95b5}
body .nav-link.soon em{background:rgba(255,255,255,.1);color:#b4c4dc}
body .sidebar-bottom{background:rgba(255,255,255,.07);color:#b4c4dc}

/* NAV-CRUMB */
body .crumb{display:flex;align-items:center;gap:8px;margin-left:14px;color:#b4c4dc;font-size:12.5px;white-space:nowrap;overflow:hidden;min-width:0}
body .crumb i{font-style:normal;color:#7f95b5}
body .crumb b{color:#fff;font-weight:700}
@media (min-width:1101px){
body .topbar-center{position:absolute;left:50%;top:0;height:100%;transform:translateX(-50%);width:min(520px,34vw);flex:none;padding:0;min-width:0;align-items:center}
body .topbar-right{margin-left:auto}
}
@media (max-width:1400px){body .crumb{display:none}}

/* NAV-BADGE */
body .nav-badge{margin-left:auto;min-width:20px;height:18px;padding:0 6px;border-radius:9px;background:#ef4444;color:#fff;font-size:11px;font-weight:800;display:inline-grid;place-items:center;box-sizing:border-box}

/* NAV-NOWRAP */
body .nav-link{white-space:nowrap;font-size:12.5px}

/* ROW-COMPACT 모든 표 줄 높이 통일(조금 낮게) */
body table:not(.payout-edit-table) td:not(.empty){padding-top:5px!important;padding-bottom:5px!important}
body table:not(.payout-edit-table) th{padding-top:6px!important;padding-bottom:6px!important}
body .today-page .td-box .td-t td{height:38px!important;padding-top:3px!important;padding-bottom:3px!important}
body .today-page .td-box .td-t th{height:34px!important}

/* TD-HEAD-COLOR 오늘의 업무: 5개 그룹 색 (DB / 생일 / 업무 / 접촉 / 계약관리) */
body .today-page .td-box.hd-new .td-t th{background:#2563c9!important}
body .today-page .td-box.hd-bday .td-t th{background:#a16207!important}
body .today-page .td-box.hd-od .td-t th,body .today-page .td-box.hd-today .td-t th,body .today-page .td-box.hd-fut .td-t th{background:#1f3a5f!important}
body .today-page .td-box.hd-cod .td-t th,body .today-page .td-box.hd-ctd .td-t th{background:#15803d!important}
body .today-page .td-box.s90 .td-t th,body .today-page .td-box.s6 .td-t th,body .today-page .td-box.s1 .td-t th{background:#6d28d9!important}

/* TD-GROUP-TITLE 오늘의 업무 그룹 제목 + 구분 칸 너비 */
body .today-page .td-grp{display:flex;align-items:center;gap:10px;margin:28px 0 8px;color:var(--gc)}
body .today-page .td-grp:first-of-type{margin-top:6px}
body .today-page .td-grp::before{content:"";width:5px;height:22px;border-radius:3px;background:var(--gc)}
body .today-page .td-grp b{font-size:16px;font-weight:800;letter-spacing:.3px}
body .today-page .td-grp small{font-size:12px;font-weight:500;color:#667085}
body .today-page .td-grp::after{content:"";flex:1;height:1px;background:linear-gradient(90deg,var(--gc),transparent);opacity:.45}
body .today-page .td-grp.g-db{--gc:#2563c9}
body .today-page .td-grp.g-bd{--gc:#a16207}
body .today-page .td-grp.g-work{--gc:#1f3a5f}
body .today-page .td-grp.g-ct{--gc:#15803d}
body .today-page .td-grp.g-con{--gc:#6d28d9}
body .today-page .td-t th.w80{width:100px!important}

/* CS-ROW 보장 기준금액: 줄 높이를 줄이고 위아래 가운데 정렬 */
body .cs-t td,body .cs-t th{vertical-align:middle!important}
body .cs-t td{padding-top:2px!important;padding-bottom:2px!important}
body .cs-t .cs-in input:not(#x){height:28px!important;min-height:28px!important}

/* NAV-BADGE2 배지 숫자 가운데 정렬 */
body .nav-badge{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:20px!important;height:20px!important;padding:0 6px!important;box-sizing:border-box!important;line-height:1!important;text-align:center!important;font-variant-numeric:tabular-nums!important;letter-spacing:0!important;text-indent:0!important}

/* ===== 폰(폭 700px 이하): 가로 스크롤 표를 카드로 (오늘의 업무·완료 업무·대시보드·휴지통·계약 등 table.grid / .td-t 공통).
   항목 이름은 shell.js 가 칸마다 data-l 로 붙입니다. PC 화면은 그대로, 카드로 바꾸지 않을 표는 table 에 no-stack 클래스를 붙이세요. ===== */
@media (max-width:700px){
  .tablewrap:has(table.grid:not(.no-stack):not(.cl-table)),.td-tw{overflow:visible!important;background:transparent;border:0}
  body table.grid:not(.no-stack):not(.cl-table),body .td-t:not(.no-stack),body .today-page .td-t:not(.no-stack){min-width:0!important;width:100%!important;table-layout:auto!important}
  body table.grid:not(.no-stack):not(.cl-table) thead,body .td-t:not(.no-stack) thead{display:none}
  body table.grid:not(.no-stack):not(.cl-table),body table.grid:not(.no-stack):not(.cl-table) tbody,body table.grid:not(.no-stack):not(.cl-table) tr,body table.grid:not(.no-stack):not(.cl-table) td,
  body .td-t:not(.no-stack),body .td-t:not(.no-stack) tbody,body .td-t:not(.no-stack) tr,body .td-t:not(.no-stack) td{display:block;width:100%!important}
  body table.grid:not(.no-stack):not(.cl-table) tr,body .td-t:not(.no-stack) tr{background:#fff;border:1px solid #e1e6eb;border-radius:12px;margin:0 0 8px;padding:6px 12px}
  body table.grid:not(.no-stack):not(.cl-table) td,body .td-t:not(.no-stack) td,body .today-page .td-box .td-t:not(.no-stack) td{display:block!important;position:relative;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere;min-width:0!important;height:auto!important;padding:3px 0 3px 88px!important;border:0!important;background:transparent!important;font-size:13.5px;line-height:1.4}
  body table.grid:not(.no-stack):not(.cl-table) td:empty,body .td-t:not(.no-stack) td:empty{display:none!important}
  body table.grid:not(.no-stack):not(.cl-table) td[data-l]::before,body .td-t:not(.no-stack) td[data-l]::before{content:attr(data-l);position:absolute;left:0;top:5px;width:78px;color:#8a94a3;font-size:12px;font-weight:700;line-height:1.4}
  body table.grid:not(.no-stack):not(.cl-table) td[data-l="관리"]::before,body table.grid:not(.no-stack):not(.cl-table) td[data-l="처리"]::before,body .td-t:not(.no-stack) td[data-l="관리"]::before,body .td-t:not(.no-stack) td[data-l="처리"]::before{display:none}
  body table.grid:not(.no-stack):not(.cl-table) td[data-l="관리"],body table.grid:not(.no-stack):not(.cl-table) td[data-l="처리"],body .td-t:not(.no-stack) td[data-l="관리"],body .td-t:not(.no-stack) td[data-l="처리"]{padding-left:0!important}
  body table.grid:not(.no-stack):not(.cl-table) td:last-child,body .td-t:not(.no-stack) td:last-child{border-top:1px solid #eef0f3!important;margin-top:2px;padding-top:7px!important}
  body table.grid:not(.no-stack):not(.cl-table) td[colspan],body .td-t:not(.no-stack) td[colspan]{display:block!important;text-align:center!important;border:0!important}
  body table.grid:not(.no-stack):not(.cl-table) tr:has(td[colspan]),body .td-t:not(.no-stack) tr:has(td[colspan]){border:0;padding:0;background:transparent}
}

/* 오늘의 업무 폰: 카드 구분 — 카드마다 "지난 / 오늘 / 예정" 색 띠와 이름표를 붙여서, 업무가 많아도 어느 구역인지 바로 알 수 있게 (PC 화면은 그대로) */
@media (max-width:700px){
  body .today-page .td-box .td-t:not(.no-stack) tbody tr:not(:has(td[colspan]))::before{display:inline-block;margin:0 0 2px;padding:1px 10px;border-radius:999px;color:#fff;font-size:12px;font-weight:800;line-height:1.5}
  body .today-page .td-box.hd-od .td-t:not(.no-stack) tr{border-left:5px solid #dc2626}
  body .today-page .td-box.hd-od .td-t:not(.no-stack) tbody tr:not(:has(td[colspan]))::before{content:"지난 미완료 업무";background:#dc2626}
  body .today-page .td-box.hd-today .td-t:not(.no-stack) tr{border-left:5px solid #2563eb}
  body .today-page .td-box.hd-today .td-t:not(.no-stack) tbody tr:not(:has(td[colspan]))::before{content:"오늘 할 업무";background:#2563eb}
  body .today-page .td-box.hd-fut .td-t:not(.no-stack) tr{border-left:5px solid #16a34a}
  body .today-page .td-box.hd-fut .td-t:not(.no-stack) tbody tr:not(:has(td[colspan]))::before{content:"예정된 업무";background:#16a34a}
  body .today-page .td-box:has(#cOverC) .td-t:not(.no-stack) tr{border-left:5px solid #dc2626}
  body .today-page .td-box:has(#cOverC) .td-t:not(.no-stack) tbody tr:not(:has(td[colspan]))::before{content:"지난 미접촉";background:#dc2626}
  body .today-page .td-box:has(#cTodayC) .td-t:not(.no-stack) tr{border-left:5px solid #2563eb}
  body .today-page .td-box:has(#cTodayC) .td-t:not(.no-stack) tbody tr:not(:has(td[colspan]))::before{content:"오늘 접촉 예정";background:#2563eb}
  body .today-page .td-box:has(#cWeekC) .td-t:not(.no-stack) tr{border-left:5px solid #16a34a}
  body .today-page .td-box:has(#cWeekC) .td-t:not(.no-stack) tbody tr:not(:has(td[colspan]))::before{content:"7일 내 접촉 예정";background:#16a34a}
}

/* 공통 확인·알림 창 (shell.js 의 crmConfirm / crmAlert / alert 교체용) */
.ui-dlg{border:0;padding:0;border-radius:14px;width:min(420px,92vw);max-width:92vw;box-shadow:0 18px 50px rgba(15,23,42,.35);color:#1e293b;overflow:hidden}
.ui-dlg::backdrop{background:rgba(15,23,42,.5)}
.ui-dlg-head{padding:18px 20px 8px}
.ui-dlg-title{font-size:17px;font-weight:900;color:#17345b}
.ui-dlg-body{padding:4px 20px 20px;font-size:15px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;max-height:60vh;overflow:auto;color:#344054}
.ui-dlg-foot{padding:12px 16px 16px;display:flex;justify-content:flex-end;gap:8px;border-top:1px solid #edf1f5;background:#fbfcfe}
.ui-dlg-foot .btn{min-width:86px;min-height:42px;font-size:15px}
.ui-dlg-foot .btn[hidden]{display:none}
.ui-dlg-foot .btn.ui-danger{background:#dc2626;border-color:#dc2626;color:#fff}
.ui-dlg-foot .btn.ui-danger:hover{background:#b91c1c}
@media (max-width:700px){
  .ui-dlg{margin:auto auto 0;width:100%;max-width:100%;border-radius:16px 16px 0 0}
  .ui-dlg-foot .btn{flex:1}
}

/* 오늘의 업무 폰: 한 줄에 둘~셋씩 묶어 카드 높이를 줄이고(오른쪽 칸은 모두 카드 가운데에서 시작), 버튼은 한 줄에 균등하게 (PC 화면은 그대로) */
@media (max-width:700px){
  body .today-page .td-summary{grid-template-columns:repeat(4,1fr);gap:6px}
  body .today-page .td-summary .td-sc{min-height:62px;padding:8px 2px;gap:2px}
  body .today-page .td-summary .td-sc .l{font-size:12.5px;line-height:1.25}
  body .today-page .td-summary .td-sc .n{font-size:24px}
  body .today-page .td-t:not(.no-stack) tbody tr:not(:has(td[colspan])){display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:0}
  body .today-page .td-t:not(.no-stack) tbody tr:not(:has(td[colspan]))::before{grid-column:1/-1;justify-self:start;order:0}
  body .today-page .td-t:not(.no-stack) td{grid-column:span 12;width:auto!important;order:5}
  body .today-page .td-t:not(.no-stack) td:last-child{order:9!important}
  body .today-page .td-t:not(.no-stack) td[data-l="배정일시"]{grid-column:span 6;order:1}
  body .today-page .td-t:not(.no-stack) td[data-l="영업상태"]{grid-column:span 6;order:2}
  body .today-page .td-t:not(.no-stack) td[data-l="예정일"]{grid-column:span 6;order:1}
  body .today-page .td-t:not(.no-stack) td[data-l="구분"]{grid-column:span 6;order:2}
  body .today-page .td-t:not(.no-stack) td[data-l="고객명"]{grid-column:span 6;order:3}
  body .today-page .td-t:not(.no-stack) td[data-l="연락처"]{grid-column:span 6;order:4}
  body .today-page .td-t:not(.no-stack) td[data-l="이름"]{grid-column:span 6;order:3}
  body .today-page .td-t:not(.no-stack) td[data-l="계약자"]{grid-column:span 6;order:2}
  body .today-page .td-t:not(.no-stack) td[data-l="관리예정일"]{grid-column:span 6;order:1}
  body .today-page .td-t:not(.no-stack) td[data-l="중요도"]{grid-column:span 3;order:4}
  body .today-page .td-t:not(.no-stack) td[data-l="상태"]{grid-column:span 3;order:5}
  body .today-page .td-t:not(.no-stack) td[data-l="업무내용"]{order:6}
  body .today-page .td-t:not(.no-stack) td[data-l="메모"]{order:7}
  body .today-page .td-t:not(.no-stack) td[data-l="상령일"],body .today-page .td-t:not(.no-stack) td[data-l="보험나이"],body .today-page .td-t:not(.no-stack) td[data-l="남은 날"],body .today-page .td-t:not(.no-stack) td[data-l="생년월일"],body .today-page .td-t:not(.no-stack) td[data-l="담당자"]{grid-column:span 6}
  body .today-page .td-t:not(.no-stack) td[data-l="배정일시"],body .today-page .td-t:not(.no-stack) td[data-l="영업상태"],body .today-page .td-t:not(.no-stack) td[data-l="예정일"],body .today-page .td-t:not(.no-stack) td[data-l="구분"],body .today-page .td-t:not(.no-stack) td[data-l="고객명"],body .today-page .td-t:not(.no-stack) td[data-l="연락처"],body .today-page .td-t:not(.no-stack) td[data-l="이름"],body .today-page .td-t:not(.no-stack) td[data-l="계약자"],body .today-page .td-t:not(.no-stack) td[data-l="관리예정일"],body .today-page .td-t:not(.no-stack) td[data-l="상령일"],body .today-page .td-t:not(.no-stack) td[data-l="보험나이"],body .today-page .td-t:not(.no-stack) td[data-l="남은 날"],body .today-page .td-t:not(.no-stack) td[data-l="생년월일"],body .today-page .td-t:not(.no-stack) td[data-l="담당자"],body .today-page .td-t:not(.no-stack) td[data-l="중요도"],body .today-page .td-t:not(.no-stack) td[data-l="상태"]{padding-left:0!important;padding-right:6px!important}
  body .today-page .td-t:not(.no-stack) td[data-l="배정일시"]::before,body .today-page .td-t:not(.no-stack) td[data-l="영업상태"]::before,body .today-page .td-t:not(.no-stack) td[data-l="예정일"]::before,body .today-page .td-t:not(.no-stack) td[data-l="구분"]::before,body .today-page .td-t:not(.no-stack) td[data-l="고객명"]::before,body .today-page .td-t:not(.no-stack) td[data-l="연락처"]::before,body .today-page .td-t:not(.no-stack) td[data-l="이름"]::before,body .today-page .td-t:not(.no-stack) td[data-l="계약자"]::before,body .today-page .td-t:not(.no-stack) td[data-l="관리예정일"]::before,body .today-page .td-t:not(.no-stack) td[data-l="상령일"]::before,body .today-page .td-t:not(.no-stack) td[data-l="보험나이"]::before,body .today-page .td-t:not(.no-stack) td[data-l="남은 날"]::before,body .today-page .td-t:not(.no-stack) td[data-l="생년월일"]::before,body .today-page .td-t:not(.no-stack) td[data-l="담당자"]::before,body .today-page .td-t:not(.no-stack) td[data-l="중요도"]::before,body .today-page .td-t:not(.no-stack) td[data-l="상태"]::before{position:static;display:inline-block;width:46px;margin-right:4px;vertical-align:top;font-size:11px;white-space:nowrap}
  body .today-page .td-t:not(.no-stack) td[data-l="중요도"]::before,body .today-page .td-t:not(.no-stack) td[data-l="상태"]::before{width:auto;margin-right:5px}
  body .today-page .td-t:not(.no-stack) td[data-l="배정일시"]{font-size:12.5px}
  body .today-page .td-act,body .today-page .tk-act,body .today-page .td-t td:last-child .td-act{flex-wrap:nowrap!important;justify-content:stretch!important;gap:4px;width:100%;max-width:100%}
  body .today-page .td-act .btn,body .today-page .tk-act .btn{flex:1 1 auto;min-width:0;padding:0 4px;font-size:11.5px;white-space:nowrap}
}

/* 폰: 숫자가 많은 표(유입경로별 성과·사원별 실적·이번 달 계약 내역)는 "이름표 위, 값 아래" 칸으로 한 줄에 셋씩 정렬 (PC 화면은 그대로) */
@media (max-width:700px){
  body table.grid.tile-t.tile-t.tile-t tbody tr:not(:has(td[colspan])){display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:6px;row-gap:6px;padding:10px}
  body table.grid.tile-t.tile-t.tile-t td{display:block!important;grid-column:span 1;order:1;width:auto!important;margin:0!important;padding:5px 3px!important;border:0!important;border-radius:8px;background:#f5f7fa!important;text-align:center!important;font-size:14px;font-weight:700}
  body table.grid.tile-t.tile-t.tile-t td[data-l]::before{position:static!important;display:block;width:auto!important;margin:0 0 2px;font-size:11px;font-weight:700;color:#8a94a3;text-align:center;line-height:1.3}
  body table.grid.tile-t.tile-t.tile-t.tile-ls td:first-child,body table.grid.tile-t.tile-t.tile-t.tile-rk td:first-child{background:transparent!important}
  body table.grid.tile-t.tile-t.tile-t.tile-ls td[data-l="유입경로"]{grid-column:1/-1;order:0;background:transparent!important;text-align:left!important;font-size:15px;font-weight:800;padding:2px 3px 4px!important}
  body table.grid.tile-t.tile-t.tile-t.tile-ls td[data-l="유입경로"]::before{display:none}
  body table.grid.tile-t.tile-t.tile-t.tile-ls td[data-l="보험료 합계"]{grid-column:1/-1;order:2}
  body table.grid.tile-t.tile-t.tile-t.tile-ct td[data-l="계약일"]{order:1}
  body table.grid.tile-t.tile-t.tile-t.tile-ct td[data-l="계약자"]{order:2}
  body table.grid.tile-t.tile-t.tile-t.tile-ct td[data-l="체결자"]{order:3}
  body table.grid.tile-t.tile-t.tile-t.tile-ct td[data-l="보험사 / 상품"]{grid-column:1/-1;order:4}
  body table.grid.tile-t.tile-t.tile-t.tile-ct td[data-l="보험료"]{grid-column:span 2;order:5}
  body table.grid.tile-t.tile-t.tile-t.tile-ct td[data-l="상태"]{order:6}
}

/* ---- 공지 팝업 (홈) ---- */
.np-ov{position:fixed;inset:0;z-index:10040;background:rgba(15,23,42,.5);display:flex;align-items:center;justify-content:center;padding:16px}
.np-box{background:#fff;border-radius:20px;width:min(520px,94vw);max-height:86vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 22px 60px rgba(15,23,42,.4)}
.np-head{padding:18px 22px 14px;background:linear-gradient(135deg,#17345b,#1d4a8a);color:#fff}
.np-title{font-size:18px;font-weight:900;line-height:1.4;overflow-wrap:anywhere}
.np-sub{margin-top:4px;font-size:12.5px;opacity:.85}
.np-body{padding:18px 22px;font-size:15px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere;overflow:auto;color:#344054}
.np-link{display:block;margin:0 22px 14px;font-size:14px;font-weight:800;color:#1d4a8a}
.np-foot{display:flex;gap:8px;padding:12px 16px 16px;border-top:1px solid #edf1f5;background:#fbfcfe}
.np-btn{flex:1;min-height:44px;border-radius:12px;border:1px solid #cfd6dd;background:#fff;font-size:15px;font-weight:800;color:#344054;cursor:pointer}
.np-btn.np-main{background:#f97316;border-color:#f97316;color:#fff}

/* ---- 화면 글자 크기 (html 전체 확대). 확대한 만큼 화면 높이 계산을 나눠 맞춘다 ---- */
.hdr-sel{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.3);color:#fff;border-radius:7px;padding:4px 6px;font:inherit;font-size:12px;cursor:pointer}
.hdr-sel option{color:#17345b;background:#fff}
body .hdr-sel{background:transparent;border:1px solid #4a6a99;color:#dbe5f3}
.shell-layout{min-height:calc(100vh / var(--zf, 1) - 62px)}
.sidebar{height:calc(100vh / var(--zf, 1) - 62px)}
@media (max-width:800px){.sidebar{height:calc(100vh / var(--zf, 1))}}

/* 글자 크기 선택칸: 폭을 줄이고, 화면을 확대하면 가운데 검색칸이 오른쪽 메뉴와 겹치지 않도록 검색칸 폭을 함께 줄인다 */
.hdr-sel{width:112px}
@media (min-width:1101px){
  body .topbar-center{width:clamp(150px, calc(100vw / var(--zf, 1) - 1300px), 520px)}
}
@media (max-width:800px){.hdr-sel{display:none}}

/* ===== MOBILE-CARDS 20261125: 폰 화면에서 옆으로 잘리던 표를 카드로, 카드 구분 색, 버튼 정리 ===== */
@media (max-width:700px){
  /* 1) 카드로 바꿀 표: 미배정 DB·약관·AI 사용 현황·매거진 (shell.js 가 칸마다 항목 이름 data-l 을 붙임) */
  body :is(.dbc-tw,.mg-wrap,.tm-tw){overflow:visible!important;max-height:none!important;border:0!important;background:transparent!important}
  body :is(.dbc-t,.mg-t,.tm-t,.aiu table){width:100%!important;min-width:0!important;table-layout:auto!important;border:0!important;background:transparent!important}
  body :is(.dbc-t,.mg-t,.tm-t,.aiu table) thead{display:none!important}
  body :is(.dbc-t,.mg-t,.tm-t,.aiu table),body :is(.dbc-t,.mg-t,.tm-t,.aiu table) tbody,body :is(.dbc-t,.mg-t,.tm-t,.aiu table) tr,body :is(.dbc-t,.mg-t,.tm-t,.aiu table) td{display:block;width:100%!important}
  body :is(.dbc-t,.mg-t,.tm-t,.aiu table) tr{background:#fff!important;border:1px solid #dfe5ec;border-radius:12px;margin:0 0 8px;padding:6px 12px}
  body :is(.dbc-t,.mg-t,.tm-t,.aiu table) tbody tr:nth-child(even){background:#f4f8ff!important}
  body :is(.dbc-t,.mg-t,.tm-t,.aiu table) td,body #mgRows td,body #mgLogs td{display:block!important;position:relative;text-align:left!important;white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere;min-width:0!important;max-width:none!important;height:auto!important;padding:4px 0 4px 92px!important;border:0!important;background:transparent!important;font-size:13.5px;line-height:1.4}
  body :is(.dbc-t,.mg-t,.tm-t,.aiu table) td[data-l]::before{content:attr(data-l);position:absolute;left:0;top:5px;width:84px;color:#8a94a3;font-size:12px;font-weight:700;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body :is(.dbc-t,.mg-t,.tm-t,.aiu table) td:empty{display:none!important}
  body :is(.dbc-t,.mg-t,.tm-t,.aiu table) td:not([data-l]),body #mgRows td:not([data-l]),body #mgLogs td:not([data-l]){padding-left:0!important}
  body :is(.dbc-t,.mg-t,.tm-t,.aiu table) td:last-child:not(:first-child){border-top:1px solid #eef0f3!important;margin-top:3px;padding-top:7px!important}
  body :is(.dbc-t,.mg-t,.tm-t,.aiu table) td[colspan]{padding:12px 0!important;text-align:center!important;border:0!important}
  body :is(.dbc-t,.mg-t,.tm-t,.aiu table) tr:has(td[colspan]){background:transparent!important;border:0}
  body :is(.dbc-t,.mg-t,.tm-t,.aiu table) td .btn,body :is(.dbc-t,.mg-t,.tm-t,.aiu table) td .mg-btn,body :is(.dbc-t,.mg-t,.tm-t,.aiu table) td button{white-space:nowrap!important;writing-mode:horizontal-tb!important}
  body :is(.dbc-t,.mg-t,.tm-t,.aiu table) td select,body :is(.dbc-t,.mg-t,.tm-t,.aiu table) td input[type=text]{max-width:100%}
  body .mg-t tbody tr.sent{background:#f0fdf4!important}
  body .mg-t tbody tr.mg-cur{background:#fef9c3!important}
  body .mg-t tbody tr.mg-sel{background:#eff6ff!important}
  body .mg-t tbody tr.dis{background:#fafafa!important}
  body .tm-t td.n,body .tm-t td:nth-child(1),body .tm-t td:nth-child(5){white-space:normal!important}
  body .aiu .rt td:last-child{min-width:0!important;word-break:break-word}

  /* 2) 이미 카드로 보이던 표(table.grid): 라벨이 길어도 겹치지 않게 한 줄로 줄이고, 카드를 번갈아 색으로 구분 */
  body table.grid:not(.no-stack):not(.cl-table):not(.tile-t) td[data-l]::before{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:80px}
  body .page table.grid:not(.no-stack):not(.cl-table):not(.tile-t) tbody tr:nth-child(even):not(:has(td[colspan])){background:#f4f8ff}
  body #rfBody td:first-child{font-weight:800;color:#12355b;font-size:15px}   /* 소개자 이름 강조 */
  body #rfBody td:first-child::before{font-weight:700}

  /* 3) 광고비 정산: 단가 입력칸이 가운데로 밀려 여백이 생기던 것을 왼쪽 정렬로, 광고 이름 강조 */
  body #abody td input{margin:0!important;width:100%!important;max-width:170px;text-align:left!important}
  body #abody td:first-child{font-weight:800;color:#12355b}

  /* 4) 대시보드: 이번 달 계약 내역·사원별 순위 카드 구분 (홀수 흰색+파란 띠 / 짝수 연한 파랑+청록 띠), 계약자·순위 강조 */
  body table.grid.tile-t.tile-t.tile-t tbody tr:not(:has(td[colspan])):nth-child(odd){background:#fff;border-left:5px solid #2563c9}
  body table.grid.tile-t.tile-t.tile-t tbody tr:not(:has(td[colspan])):nth-child(even){background:#eaf3ff;border-left:5px solid #0f9d8f}
  body table.grid.tile-t.tile-t.tile-t tbody tr:not(:has(td[colspan])):nth-child(even) td{background:#fff!important}
  body table.grid.tile-t.tile-t.tile-t.tile-t.tile-ct td[data-l="계약자"]{background:#dbe8ff!important;color:#0b3d91;font-weight:800;font-size:15px}
  body table.grid.tile-t.tile-t.tile-t.tile-t.tile-rk td[data-l="순위"]{background:#dbe8ff!important;color:#0b3d91;font-weight:900;font-size:22px;line-height:1.2}
  body table.grid.tile-t.tile-t.tile-t.tile-t.tile-rk td[data-l="사원"]{font-weight:800;font-size:15px}
  body table.grid.tile-t.tile-t.tile-t.tile-t.tile-rk tbody tr:nth-child(1) td[data-l="순위"]{background:#ffe9a8!important;color:#8a5a00}
  body table.grid.tile-t.tile-t.tile-t.tile-t.tile-rk tbody tr:nth-child(2) td[data-l="순위"]{background:#e3e7ee!important;color:#475467}
  body table.grid.tile-t.tile-t.tile-t.tile-t.tile-rk tbody tr:nth-child(3) td[data-l="순위"]{background:#f8dcc4!important;color:#8a4a1f}
}

/* 글자 크기 가− 100% 가+ (20261203) */
.hdr-fs{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;color:#dbe5f3;font-size:12px}
body .hdr-fs button{background:transparent;border:1px solid #4a6a99;color:#dbe5f3;border-radius:7px;padding:3px 7px;margin:0;width:auto;height:auto;min-height:0;font:inherit;font-size:12px;cursor:pointer;box-shadow:none}
body .hdr-fs button:disabled{opacity:.35;cursor:default}
.hdr-fs-v{min-width:40px;text-align:center}
@media (max-width:800px){.hdr-fs{display:none}}
