/* Reference CRM layout, independently implemented from the observed screens. */
:root{--green:#4d5dff;--green-deep:#4656ed;--green-light:#edf2ff;--sage:#f1f5f9;--lime:#eef2ff;--ink:#1e293b;--text:#334a68;--muted:#64748b;--border:#dce4ef;--surface:#fff;--background:#f7f9fc}
body{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:14px;color:#334a68;background:#f7f9fc;letter-spacing:-.02em}h1,h2,h3{color:#1e293b;letter-spacing:-.035em}a{color:inherit}input,select,textarea,button{font:inherit}input,select,textarea{border:1px solid #d1d5db;border-radius:3px;box-shadow:none;min-height:34px;padding:7px 12px;background:#fff}input:focus,select:focus,textarea:focus{border-color:#4d5dff;box-shadow:0 0 0 2px #4d5dff12;outline:none}input[type=checkbox],input[type=radio]{min-height:0;width:18px;height:18px;accent-color:#4d5dff}button,.btn{border-radius:3px}.btn{min-height:34px;padding:7px 14px;gap:8px;font-size:13px;box-shadow:none}.btn.primary{background:#4d5dff;border-color:#4d5dff;color:white}.btn.primary:hover{background:#414eff}.btn.secondary{background:#fff;color:#334a68;border:1px solid #cad5e4}.btn.ghost{border:1px solid #dbe3ee;background:white}.btn.small{padding:3px 8px;min-height:27px;font-size:12px}.btn.warning{background:#f59e0b;border-color:#f59e0b;color:#fff}.btn.success{background:#22c55e;border-color:#22c55e;color:#fff}.btn svg{width:16px;height:16px}
.sidebar{width:256px;background:linear-gradient(125deg,#fcfcfd,#f8fafc);border-right:1px solid #e2e8f0;padding:0;box-shadow:none}.reference-brand{display:flex;align-items:center;height:77px;padding:24px;font-size:18px;font-weight:700;color:#1e293b;border-bottom:1px solid #eef0f4}.sidebar nav{padding:24px 5px 130px 20px;overflow:auto}.reference-menu-label{font-size:12px;color:#94a3b8;margin:4px 0 18px}.reference-nav-group{margin:0 0 15px}.reference-nav-group summary{display:flex;align-items:center;gap:12px;min-height:40px;cursor:pointer;list-style:none;font-size:14px;padding-right:16px}.reference-nav-group summary::-webkit-details-marker{display:none}.reference-nav-group summary>svg{width:14px;height:14px;margin-left:auto;transform:rotate(90deg)}.reference-nav-group[open] summary>svg{transform:rotate(-90deg)}.nav-symbol{display:flex;align-items:center;justify-content:center;border-radius:9px;background:#e8edf4;width:32px;height:32px}.nav-symbol svg{width:18px;height:18px}.reference-nav-group>div{padding:10px 0 3px}.nav-item{min-height:42px;padding:9px 12px;margin:0 0 2px 30px;font-size:14px;font-weight:400;border-radius:12px;position:relative;color:#334a68}.nav-item.active{color:#4d5dff;background:#edf2ff;box-shadow:0 3px 8px #4d5dff0d}.nav-item.active:before{display:none}.nav-dash{position:absolute;left:-18px;color:#94a3b8}.reference-user{position:absolute;bottom:16px;left:8px;right:8px;background:#fbfcfe;border:1px solid #eef0f4;border-radius:17px;box-shadow:0 12px 18px #17263a0a}.reference-user summary{display:flex;justify-content:space-between;align-items:center;padding:16px;cursor:pointer;list-style:none}.reference-user strong{display:block;font-size:13px}.reference-user small{display:block;font-size:11px;color:#64748b;margin-top:4px}.reference-user>div{padding:0 16px 14px;display:flex;gap:20px}.reference-user button{border:0;background:none;color:#334a68;padding:0}.sidebar .global-search{display:flex;width:100%;height:34px;margin:0}.sidebar .global-search input{width:150px;min-width:0;padding:5px}.sidebar .global-search button{border:0;background:white}.app-shell{margin-left:256px}.topbar{display:none}.main-content{padding:32px;max-width:none;margin:0}.app-footer{display:none}.page-heading{min-height:40px;margin:0 0 24px;align-items:center}.page-heading h1,.page-header h1{font-size:24px;font-weight:700;margin:0;line-height:1.4}.page-heading .eyebrow,.page-heading .heading-dot,.page-heading>div>p{display:none}.heading-actions{gap:12px}.heading-actions>.btn{min-height:40px;padding:9px 17px;font-weight:600}.panel{background:white;border:1px solid #dce4ef;border-radius:9px;box-shadow:0 1px 2px #14243b25;margin-bottom:24px}.panel-heading{padding:16px 24px;border-bottom:1px solid #e2e8f0}.panel-heading h2{font-size:17px}.panel-heading .subtle-tag{display:none}.table-scroll{margin:12px;border:1px solid #dce4ef;border-radius:13px;overflow:auto}.resource-table,table{font-size:13px;width:100%;border-collapse:collapse}.resource-table th,table th{background:#f8fafc;color:#334a68;font-size:13px;font-weight:500;border:1px solid #e0e7f1;padding:10px 12px;text-align:center;height:38px}.resource-table td,table td{border:1px solid #edf1f7;padding:5px 12px;line-height:1.45;text-align:center;height:31px}.resource-table tbody tr:hover{background:#f8fafc}.row-primary{color:#1e293b;font-weight:400;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px}.row-primary:hover{color:#4d5dff}.badge{border:1px solid currentColor;border-radius:3px;padding:0 7px;font-size:13px;font-weight:400;line-height:17px;background:#fff}.status-NEW{color:#ff38a8}.status-RECONTACT{color:#a800ba}.status-SCHEDULED{color:#ff2626}.status-COMPLETED{color:#ff9f00}.status-PENDING_REGISTRATION{color:#2525ff}.status-REGISTERED{color:#009a00}.status-ETC{color:#808080}.status-LONG_TERM{color:#b4b300}.status-ABSENT{color:#e43838}.status-BLACK{color:#111}.source-ONLINE{color:red}.source-PHONE,.source-NAVER{color:blue}.source-VISIT,.source-CHANNEL_TALK{color:orange}.source-SNS{color:#ff38a8}.source-PRIVATE_DB{color:#b000c9}.source-OLD_DB{color:#7b6ce5}.source-HRD{color:#62b6ff}.source-INTERVIEW{color:#b3b000}.source-RECOMMEND{color:green}
.reference-chips{padding:8px;margin:0 0 8px}.chip-row{display:flex;flex-wrap:wrap;gap:3px;margin-bottom:7px}.chip-row:last-child{margin:0}.filter-chip{border:1px solid #dce4ef;border-radius:3px;background:white;padding:4px 8px;font-size:13px;line-height:20px}.filter-chip.selected{background:#4d5dff;color:white;border-color:#4d5dff}.reference-filters{padding:12px 8px 0}.reference-search-box{border:1px solid #dce4ef;border-radius:12px;padding:8px 16px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-height:82px}.reference-search-box label{display:flex;align-items:center;gap:8px;white-space:nowrap;font-size:13px}.reference-search-box input{height:32px;min-height:32px;width:110px;padding:5px 8px;font-size:12px}.reference-search-box input[type=date]{width:120px}.reference-search-box label.compact input{width:75px}.reference-search-box .search-actions{margin-left:auto;display:flex;gap:5px}.list-summary{padding:14px 12px 9px;min-height:48px;border-bottom:1px solid #e2e8f0;font-size:13px;color:#64748b}.list-summary strong{font-weight:400}.list-summary select{height:32px;min-height:32px;font-size:12px;padding:5px 10px}.reference-filters .list-summary{margin:8px -8px 0}.pagination{padding:0 12px 12px;display:flex;justify-content:center;border:0}.pagination>.muted{display:none}.pagination a,.pagination .disabled{border:1px solid #e1e6ed;border-radius:9px;width:33px;height:33px;display:inline-flex;align-items:center;justify-content:center;font-size:12px;background:white;padding:0}.pagination a.selected{background:#4d5dff;color:white;border-color:#4d5dff}.pagination .disabled{color:#94a3b8;background:#f8fafc}.pagination>div{display:flex;gap:4px}.filter-bar{margin:12px 8px;border:1px solid #dce4ef;border-radius:12px;padding:8px 16px;gap:8px}.filter-bar input,.filter-bar select{min-height:32px;font-size:13px}.filter-bar .search-field{flex:1;background:white;border:0}.filter-bar .search-field input{width:100%}.empty-state{padding:40px 20px;min-height:140px;color:#7186a4}.empty-state strong{font-size:14px;font-weight:400}.empty-state p,.empty-state .btn{display:none}.back-link{font-size:13px;margin-bottom:8px}.form-panel{padding:24px}.section-title{border-bottom:1px solid #e2e8f0;padding:0 0 12px;margin:0 0 18px;gap:0}.section-title h2{font-size:18px}.section-title .section-number,.section-title p{display:none}.form-actions{background:none;border:0;box-shadow:none;padding:0;justify-content:flex-end;position:static}.form-actions .btn{min-width:90px}.form-field>label{font-size:14px}.form-field input,.form-field select{min-height:40px}.form-grid{gap:16px}.checkbox-grid{gap:8px}.check-option{background:none;border:0;padding:4px;min-height:0;font-size:13px}.check-option:has(input:checked){background:#edf2ff;border-color:transparent}.required{color:#ef4444}.ref-consult-form{max-width:896px;margin:auto}.ref-consult-form .page-heading{margin-bottom:24px}.ref-form-table{border:1px solid #cbd7e8}.ref-form-row{display:grid;grid-template-columns:105px 1fr;border-bottom:1px solid #cbd7e8}.ref-form-row:last-child{border:0}.ref-form-row>label{padding:12px 8px;background:#f1f5f9;display:flex;align-items:center;font-size:13px;border-right:1px solid #cbd7e8;margin:0}.ref-form-row>div{padding:12px;min-width:0}.ref-form-row input:not([type=radio]):not([type=checkbox]),.ref-form-row select,.ref-form-row textarea{width:100%;min-height:40px}.ref-radio-list{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.ref-radio-list label{display:flex;align-items:center;gap:6px;font-size:13px;margin:0}.ref-programs details{border:1px solid #dce4ef;background:#f8fafc}.ref-programs summary{padding:12px 16px;cursor:pointer;font-size:13px}.ref-programs .checkbox-grid{padding:12px;background:white}.ref-form-bottom{display:flex;gap:16px;justify-content:center;border-top:1px solid #e2e8f0;margin-top:24px;padding-top:24px}.ref-form-bottom .btn{min-width:100px;min-height:40px}.ref-templates{display:flex;gap:8px;margin-bottom:12px}.ref-templates button{background:white;border:1px solid #333;border-radius:3px;padding:7px 12px;font-size:12px}.reference-login{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px}.reference-login h1{font-size:30px;margin:0 0 32px}.reference-login-card{width:448px;max-width:100%;padding:32px;border-radius:16px;background:white;box-shadow:0 12px 24px #1e293b12}.reference-login .stack-form{gap:12px}.reference-login label{font-size:16px}.reference-login input{height:40px}.reference-login .login-submit{margin-top:12px;height:40px;width:100%}.reference-login>p{font-size:14px;color:#6480a5;margin-top:32px}.reference-login .password-wrap input{padding-right:60px}.reference-login .password-wrap button{top:7px}.ref-student-registration{max-width:576px;margin:30px auto}.ref-student-registration .panel{padding:24px;margin-bottom:32px}.ref-student-registration h2{font-size:18px;border-bottom:1px solid #e2e8f0;padding-bottom:14px;margin:0 0 18px}.ref-student-registration label{display:block;font-size:13px}.ref-student-registration input,.ref-student-registration select,.ref-student-registration textarea{width:100%;margin-top:5px}.ref-student-registration input[type=checkbox]{width:18px;margin:0}.ref-student-registration .check-option{display:flex}.ref-student-registration .check-option small{display:block}.registration-courses{max-height:300px;overflow:auto;padding:12px;border:1px solid #dce4ef;background:#f8fafc;border-radius:7px}.registration-totals{padding:14px;border:1px solid #dce4ef;background:#f8fafc;border-radius:7px;margin:18px 0}.registration-totals>div{display:flex;justify-content:space-between;margin:7px 0}.registration-payment{position:relative}.registration-payment .remove-payment{position:absolute;right:24px;top:20px}.ref-detail .detail-list{display:block}.ref-detail .detail-list>div{display:grid;grid-template-columns:110px 1fr;padding:0;border-bottom:1px solid #dce4ef}.ref-detail .detail-list dt{padding:12px;background:#f1f5f9}.ref-detail .detail-list dd{padding:12px;margin:0}.ref-detail .panel{overflow:hidden}.timeline-item{border:1px solid #dce4ef;border-radius:5px;padding:12px;margin-bottom:10px}.timeline-dot{display:none}.financial-stats{display:none}.ref-accounting-summary{display:flex;gap:16px;align-items:center}.ref-accounting-total{background:#f1f5f9;font-weight:600}.date-presets{display:flex;gap:4px}.date-presets button{background:white;border:1px solid #cbd5e1;padding:6px 10px;font-size:12px}.financial-strip{background:#f8fafc;border:1px solid #dce4ef}.calendar-day{border-color:#e2e8f0}.calendar-day.today{background:#edf2ff}.calendar-event{background:#fff;border-left:3px solid currentColor}.reference-modal{width:min(1100px,95vw);height:90vh;border:1px solid #dce4ef;border-radius:10px;padding:0;box-shadow:0 15px 60px #17233d40}.reference-modal::backdrop{background:#0f172a70}.reference-modal-header{height:45px;padding:10px 16px;display:flex;justify-content:space-between;border-bottom:1px solid #e2e8f0}.reference-modal iframe{width:100%;height:calc(100% - 45px);border:0}.reference-modal button{border:0;background:none}.embedded .sidebar,.embedded .topbar,.embedded .app-footer{display:none}.embedded .app-shell{margin-left:0}.embedded .main-content{padding:24px}.embedded .page-heading{margin-bottom:18px}.embedded .ref-consult-form{max-width:none}
@media(max-width:1100px){.main-content{padding:24px}.reference-search-box{gap:10px}.reference-search-box input[type=date]{width:130px}.ref-accounting-summary{flex-wrap:wrap}}
@media(max-width:900px){.sidebar{transform:translateX(-100%);z-index:100}.sidebar-open .sidebar{transform:translateX(0)}.app-shell{margin-left:0}.topbar{display:flex;height:60px;padding:12px 20px;position:sticky;top:0;background:white;z-index:30}.mobile-menu{display:flex}.main-content{padding:20px}.page-heading{gap:12px;flex-wrap:wrap}.page-heading h1{font-size:22px}.heading-actions{flex-wrap:wrap}.table-scroll{overflow-x:auto}.resource-table{min-width:800px}.reference-search-box label{flex-wrap:wrap}.reference-search-box .search-actions{margin-left:0}.reference-filters .list-summary{gap:8px;flex-wrap:wrap}.reference-modal{width:98vw;height:94vh}.ref-form-row{grid-template-columns:95px 1fr}.ref-radio-list{gap:10px}.form-grid,.form-grid.three{grid-template-columns:1fr 1fr}.reference-login{padding:20px}.embedded .main-content{padding:12px}}
@media(max-width:560px){.form-grid,.form-grid.three{grid-template-columns:1fr}.ref-form-row{grid-template-columns:1fr}.ref-form-row>label{border-right:0;border-bottom:1px solid #cbd7e8;padding:8px}.ref-consult-form .form-panel{padding:14px}.reference-search-box{padding:12px}.reference-search-box label{white-space:normal}.reference-search-box input[type=date]{width:116px}.reference-login-card{padding:28px}.ref-student-registration .panel{padding:18px}.filter-bar{flex-wrap:wrap}.ref-accounting-summary{font-size:12px}.detail-grid{grid-template-columns:1fr}.reference-user small{font-size:10px}}

.full-width{width:100%;flex-basis:100%}.filter-bar .list-summary{margin:10px -16px -8px;padding:12px 16px;border-bottom:0;border-top:1px solid #e2e8f0}.reference-search-box .compact input[name=phone]{width:128px}.resource-table th small{color:#94a3b8}.publication-state{color:#94a3b8}.ref-student-registration [hidden]{display:none!important}

.ref-profile{max-width:900px;margin:auto}.ref-profile input{display:block;width:100%;margin-top:6px}.ref-profile summary{cursor:pointer}.ref-profile .form-actions{margin-bottom:30px}.reference-chips .filter-chip{border-color:#dce4ef;background:#fff}.reference-chips .filter-chip.selected{background:#4d5dff;color:white}.reference-login-card .password-wrap{position:relative}.reference-login-card .password-wrap button{position:absolute;right:10px}

.resource-table td{font-size:14px}.resource-table th{font-size:14px}.reference-search-box input[type=date]{width:112px}.reference-search-box label{font-weight:400}.reference-search-box label>input{margin-top:0}.ref-radio-list label{background:transparent!important;font-weight:400}.ref-radio-list input[type=radio]{appearance:none;border:1px solid #d4d4ff;width:20px;height:20px;padding:0;margin:0;border-radius:50%;flex-shrink:0}.ref-radio-list input[type=radio]:checked{background:radial-gradient(circle,#4d5dff 0 5px,transparent 6px)}.ref-form-row .check-option:has(input:checked){background:transparent}.ref-programs .registration-totals{text-align:center;padding:12px;margin:0 0 16px;color:#6480a5}.reference-nav-group summary{font-weight:400}.ref-consult-form .page-heading{min-height:32px}.ref-form-row .ref-radio-list{padding-block:12px}.reference-table .btn{min-height:24px;padding:2px 8px}.sidebar .reference-nav-group summary span:not(.nav-symbol){white-space:nowrap}.heading-actions .btn.secondary{background:#64748b;color:white;border-color:#64748b}.heading-actions .btn.primary{box-shadow:none}label{font-weight:400}

.reference-memo-history article{border:1px solid #dce4ef;background:#f8fafc;padding:16px;border-radius:8px;margin-top:18px}.reference-memo-history article>div{display:flex;gap:12px;font-size:12px;color:#6480a5}.reference-memo-history p{font-size:13px;line-height:1.8;margin-top:14px}.ref-consult-form .memo-form{padding:0;margin-top:20px}.ref-consult-form .memo-form textarea{width:100%}.ref-consult-form .memo-form .form-actions{margin-top:10px}.embedded .ref-consult-form{max-width:none}

.reference-search-box>select{width:auto;min-width:128px;height:32px;min-height:32px;padding:5px 10px}.reference-modal[data-size=history]{width:min(672px,96vw);height:81vh}.reference-modal[data-size=small]{width:min(540px,96vw);height:680px;max-height:90vh}.framed .page-heading{display:none}.framed .main-content{background:white}.reference-history .section-heading{display:flex;justify-content:space-between;margin-bottom:18px}.reference-history h2{font-size:18px}.history-card{border:1px solid #dce4ef;border-radius:8px;box-shadow:0 1px 2px #14243b15;margin-bottom:16px}.history-card>summary{padding:18px;cursor:pointer;list-style:none;border-bottom:1px solid #dce4ef}.history-card>summary strong{font-size:16px}.history-card>summary p{margin:6px 0 3px;font-size:14px}.history-card>summary small{color:#6480a5;font-size:12px}.history-location{display:inline-block;background:#edf9f4;color:#27876c;border-radius:15px;padding:4px 8px;font-size:12px;margin-right:8px}.history-body{padding:18px}.history-body h3{font-size:16px;display:flex;justify-content:space-between;align-items:center;margin:26px 0 16px}.history-body h3:first-child{margin-top:0}.history-body h3>span{font-size:14px}.history-course{display:flex;align-items:center;justify-content:space-between;background:#f8fafc;border:1px solid #dce4ef;padding:12px;border-radius:8px;margin-bottom:8px}.history-course strong{font-weight:500}.history-figures{display:grid;grid-template-columns:1fr 1fr;gap:9px 18px;font-size:13px}.history-figures>div{display:flex;justify-content:space-between;gap:8px}.history-figures dt{color:#64748b}.history-figures dd{color:#111;margin:0;text-align:right}.payment-figures+.payment-figures{border-top:1px solid #e2e8f0;margin-top:15px;padding-top:15px}.history-management>summary{padding:15px;background:#f1f5f9;cursor:pointer;border-radius:8px}.history-management .resource-table{min-width:700px}.registration-courses:has(label:not([hidden])){min-height:0}.registration-courses:not(:has(label:not([hidden]))) {min-height:110px;display:flex;align-items:center;justify-content:center}.registration-courses:not(:has(label:not([hidden])))::before{content:'선택된 과목이 없습니다';color:#7c8fa9;font-size:13px}
@media(max-width:560px){.history-figures{grid-template-columns:1fr}.history-course{gap:10px;flex-wrap:wrap}.reference-search-box>select{width:auto}.reference-modal[data-size=history]{height:90vh}}
