#erpModal{padding:0!important;background:#eef1f4!important;z-index:90!important}
#erpModal .erp-program-card{width:100vw!important;max-width:none!important;height:100dvh!important;max-height:none!important;border:0!important;border-radius:0!important;padding:0!important;overflow:hidden!important;background:#fff!important}
#erpModal .modal-close-floating{display:none!important}
.ec-erp-app{height:100dvh;display:grid;grid-template-rows:46px 42px 38px minmax(0,1fr);background:#f4f5f7;color:#333;font:12px Arial,"Malgun Gothic",sans-serif}
.ec-head{display:flex;align-items:center;gap:18px;padding:0 14px;background:#26394d;color:#fff}
.ec-brand{display:flex;align-items:center;gap:9px;min-width:190px}.ec-brand b{font-size:17px}.ec-brand span{font-size:11px;opacity:.7}
.ec-head-search{flex:1;max-width:480px}.ec-head-search input{width:100%;height:28px;border:1px solid #546578;background:#fff;color:#222;border-radius:2px;padding:0 9px;font-size:12px}
.ec-head-tools{margin-left:auto;display:flex;align-items:center;gap:7px;font-size:11px}.ec-head-tools span{opacity:.8}.ec-head-tools button{height:27px;border:1px solid #617185;background:#344b61;color:#fff;border-radius:2px;padding:0 9px;cursor:pointer}
.ec-main-tabs{display:flex;align-items:stretch;overflow-x:auto;background:#fff;border-bottom:1px solid #cfd5db;padding-left:8px}
.ec-main-tabs button{min-width:84px;border:0;border-right:1px solid #e5e8eb;background:#fff;padding:0 14px;font-weight:700;color:#404b57;cursor:pointer;white-space:nowrap}
.ec-main-tabs button:hover{background:#f6f8fa}.ec-main-tabs button.active{background:#2f83c5;color:#fff}
.ec-sub-tabs{display:flex;align-items:end;gap:0;overflow-x:auto;background:#f8f9fa;border-bottom:1px solid #cfd5db;padding:0 12px}
.ec-sub-tabs button{height:38px;border:0;border-bottom:3px solid transparent;background:transparent;padding:0 13px;color:#4d5965;cursor:pointer;white-space:nowrap;font-size:12px}
.ec-sub-tabs button:hover{color:#1475b8}.ec-sub-tabs button.active{color:#1475b8;border-bottom-color:#2f83c5;font-weight:700;background:#fff}
.ec-content{overflow:auto}.ec-page{padding:16px 18px 36px;min-width:760px}
.ec-titlebar{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;background:#fff;border:1px solid #d9dee3;border-bottom:0;padding:13px 15px}
.ec-titlebar h1{margin:0;font-size:17px;font-weight:700;color:#26394d}.ec-titlebar p{margin:4px 0 0;color:#7a8490;font-size:11px}.ec-actions{display:flex;gap:6px}
.ec-btn{height:29px;border:1px solid #bfc7cf;border-radius:2px;background:#fff;color:#374151;padding:0 11px;font-size:11px;cursor:pointer}.ec-btn:hover{background:#f5f7f9}.ec-btn.primary{background:#2f83c5;border-color:#2875b0;color:#fff}.ec-btn.primary:hover{background:#2875b0}
.ec-status{display:flex;gap:0;background:#fbfcfd;border:1px solid #d9dee3;margin-bottom:12px;overflow-x:auto}.ec-status span{padding:7px 11px;border-right:1px solid #e3e6e9;white-space:nowrap;color:#66717c}.ec-status b{color:#374151}.ec-status b.ok{color:#178045}.ec-status b.warn{color:#a46b08}
.ec-dashboard{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:12px}.ec-kpi{background:#fff;border:1px solid #d9dee3;padding:12px 13px}.ec-kpi span{display:block;color:#6b7280}.ec-kpi strong{display:block;margin:5px 0 2px;font-size:21px;color:#24384b}.ec-kpi small{color:#9aa2aa}
.ec-home-menu{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.ec-menu-section{background:#fff;border:1px solid #d9dee3}.ec-menu-section h3{margin:0;padding:9px 11px;background:#f4f6f8;border-bottom:1px solid #d9dee3;font-size:12px;color:#34495e}.ec-menu-links{padding:8px 10px;display:grid;grid-template-columns:1fr 1fr;gap:0 10px}.ec-menu-links button{border:0;background:transparent;border-bottom:1px dotted #d9dee3;text-align:left;padding:7px 3px;color:#3f5366;cursor:pointer}.ec-menu-links button:hover{color:#1475b8;text-decoration:underline}
.ec-querybar{display:flex;align-items:end;gap:6px;background:#fff;border:1px solid #d9dee3;padding:9px 10px}.ec-querybar label{display:flex;align-items:center;gap:6px;color:#59636e}.ec-querybar input,.ec-querybar select{height:28px;border:1px solid #bcc5ce;border-radius:2px;padding:0 7px;min-width:250px}.ec-query-meta{margin-left:auto;color:#89929c}
.ec-tablebox{background:#fff;border:1px solid #d9dee3;border-top:0;overflow:auto;max-height:calc(100dvh - 214px)}.ec-table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:11px}.ec-table th{position:sticky;top:0;z-index:1;background:#eef2f5;color:#46525e;border-right:1px solid #d8dde2;border-bottom:1px solid #c8d0d7;padding:8px 9px;text-align:center;font-weight:700}.ec-table td{border-right:1px solid #eceff2;border-bottom:1px solid #e4e7ea;padding:7px 9px;color:#374151}.ec-table tbody tr:nth-child(even){background:#fbfcfd}.ec-table tbody tr:hover{background:#eef7ff}
.ec-empty{padding:70px;text-align:center;color:#89929c}.ec-empty b{display:block;color:#59636e;margin-bottom:6px}.ec-empty span{font-size:11px}
.ec-report-grid{background:#fff;border:1px solid #d9dee3;display:grid;grid-template-columns:repeat(4,1fr);min-height:360px}.ec-report-grid section{padding:14px;border-right:1px solid #e2e6ea}.ec-report-grid section:last-child{border-right:0}.ec-report-grid h3{font-size:12px;margin:0 0 8px;padding-bottom:8px;border-bottom:2px solid #2f83c5;color:#2f3f4f}.ec-report-link{display:block;width:100%;border:0;background:transparent;text-align:left;padding:6px 2px;color:#425466;cursor:pointer}.ec-report-link:hover{color:#1475b8;text-decoration:underline}
.ec-form-section{background:#fff;border:1px solid #d9dee3;margin-bottom:10px}.ec-form-section>h3,.ec-section-head{margin:0;padding:8px 10px;background:#f4f6f8;border-bottom:1px solid #d9dee3;font-size:12px}.ec-section-head{display:flex;justify-content:space-between;align-items:center}.ec-section-head h3{margin:0;font-size:12px}.ec-form-grid{display:grid;grid-template-columns:220px 1fr;gap:8px 12px;padding:12px}.ec-form-grid label{display:grid;grid-template-columns:70px 1fr;align-items:center}.ec-form-grid label.wide{grid-column:1/-1}.ec-form-grid input{height:28px;border:1px solid #bcc5ce;padding:0 7px}
.ec-entry-table input{width:100%;min-width:70px;height:25px;border:1px solid #c9d0d7;padding:0 4px;font-size:11px}.ec-mini{border:1px solid #c8cfd6;background:#fff;height:24px;font-size:10px;cursor:pointer}.ec-total{text-align:right;padding:10px 14px;font-weight:700;color:#34495e}
.ec-loading{padding:60px;text-align:center}.ec-error{margin:10px 18px;color:#b42318}
@media(max-width:900px){.ec-erp-app{grid-template-rows:46px 42px 38px minmax(0,1fr)}.ec-head{padding:0 8px;gap:8px}.ec-brand{min-width:auto}.ec-brand span,.ec-head-search{display:none}.ec-head-tools span{display:none}.ec-page{min-width:700px;padding:10px}.ec-main-tabs button{min-width:74px;padding:0 10px}.ec-home-menu{grid-template-columns:1fr 1fr}.ec-dashboard{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.ec-page{min-width:620px}.ec-home-menu{grid-template-columns:1fr}.ec-report-grid{grid-template-columns:1fr 1fr}}
.ec-register-layout{display:grid;grid-template-columns:210px minmax(0,1fr);background:#fff;border:1px solid #d9dee3;min-height:480px}
.ec-register-layout aside{border-right:1px solid #d9dee3;padding-bottom:20px;background:#fafbfc}
.ec-register-layout aside h3{margin:0;padding:11px 12px;background:#eef2f5;border-bottom:1px solid #d9dee3;font-size:12px;color:#34495e}
.ec-register-layout aside button{display:block;width:100%;border:0;border-bottom:1px solid #eceff2;background:transparent;text-align:left;padding:9px 12px;color:#455565;cursor:pointer}
.ec-register-layout aside button:hover{background:#eef7ff;color:#1475b8}
.ec-register-main{padding:18px}.ec-register-main h2{margin:0 0 5px;font-size:18px;color:#26394d}.ec-register-main>p{margin:0 0 16px;color:#7a8490}
.ec-register-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid #d9dee3;border-left:1px solid #d9dee3}
.ec-register-grid button{min-height:74px;border:0;border-right:1px solid #d9dee3;border-bottom:1px solid #d9dee3;background:#fff;text-align:left;padding:12px;cursor:pointer}
.ec-register-grid button:hover{background:#f4f9fd}.ec-register-grid b{display:block;color:#2f4a60;font-size:12px;margin-bottom:5px}.ec-register-grid span{display:block;color:#8a949e;font-size:10px;line-height:1.4}
.ec-report-link{display:grid!important;grid-template-columns:1fr auto;gap:8px;align-items:center}.ec-report-link small{color:#9aa2aa;font-size:9px}
.ec-bottom-hint{padding:7px 10px;background:#f7f8fa;border:1px solid #d9dee3;border-top:0;color:#8a949e;font-size:10px;text-align:right}
.ec-placeholder{background:#fff;border:1px solid #d9dee3;padding:70px 20px;text-align:center}.ec-placeholder b{display:block;color:#44515e;font-size:14px;margin-bottom:7px}.ec-placeholder span{color:#8a949e}
@media(max-width:900px){.ec-register-grid{grid-template-columns:1fr 1fr}}

.ec-btn.danger{border-color:#d92d20;color:#b42318;background:#fff}.ec-btn.danger:hover{background:#fff3f2}
.ec-btn.success{border-color:#18864b;color:#fff;background:#1f9d5c}.ec-btn.success:hover{background:#18864b}
.ec-btn:disabled{opacity:.45;cursor:not-allowed}
.ec-table tbody tr.clickable{cursor:pointer}.ec-table tbody tr.clickable:hover{background:#dff0ff}
.ec-master-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 16px;padding:14px}
.ec-master-form label{display:grid;grid-template-columns:130px minmax(0,1fr);align-items:center;gap:8px;min-width:0}
.ec-master-form label.wide{grid-column:1/-1}
.ec-master-form label.check{grid-template-columns:130px auto;justify-content:start}
.ec-master-form input,.ec-master-form select,.ec-form-grid select{height:29px;border:1px solid #bcc5ce;border-radius:2px;background:#fff;padding:0 7px;font-size:11px;min-width:0}
.ec-master-form input:focus,.ec-master-form select:focus,.ec-form-grid input:focus,.ec-form-grid select:focus,.ec-entry-table input:focus{outline:1px solid #2f83c5;border-color:#2f83c5}
.ec-form-grid select{width:100%}
.ec-gs1 .ec-querybar{border:0}
.ec-gs1 .ec-querybar input{min-width:420px}
.ec-entry-table th,.ec-entry-table td{padding:4px}
.ec-entry-table input:disabled,.ec-master-form input:disabled,.ec-master-form select:disabled,.ec-form-grid input:disabled,.ec-form-grid select:disabled{background:#f3f4f6;color:#6b7280}

.ec-querybar>span{align-self:center;color:#7a8490}
.ec-querybar label{white-space:nowrap}
.ec-querybar label input[type="date"]{min-width:132px}
.ec-querybar label select{min-width:110px;height:28px;border:1px solid #bcc5ce;border-radius:2px;background:#fff;padding:0 6px}
.ec-btn.danger{border-color:#d6a0a0;color:#a42727;background:#fff}
.ec-btn.danger:hover{background:#fff5f5}
.ec-btn.success{border-color:#3f966b;background:#428b67;color:#fff}
.ec-btn.success:hover{background:#347555}
.ec-table tr.clickable{cursor:pointer}
.ec-table tr.clickable:hover td{background:#eaf5ff}
.ec-gs1 .ec-querybar{border:0}
.ec-gs1 .ec-querybar input{min-width:430px}
@media(max-width:900px){
  .ec-querybar{flex-wrap:wrap;align-items:center}
  .ec-querybar label input[type="date"]{min-width:120px}
  .ec-gs1 .ec-querybar input{min-width:260px}
}
@media print{
  @page{size:A4 portrait;margin:10mm}
  body{background:#fff!important;margin:0!important}
  body>*:not(#erpModal){display:none!important}
  #erpModal{display:block!important;position:static!important;width:auto!important;height:auto!important;background:#fff!important}
  #erpModal .erp-program-card{width:auto!important;height:auto!important;overflow:visible!important}
  .ec-erp-app{display:block!important;height:auto!important;background:#fff!important}
  .ec-head,.ec-main-tabs,.ec-sub-tabs,.ec-querybar,.ec-actions,.ec-status,.ec-bottom-hint{display:none!important}
  .ec-content,.ec-page,.ec-tablebox{overflow:visible!important;max-height:none!important;height:auto!important;padding:0!important}
  .ec-titlebar{border:0!important;padding:0 0 10px!important}
  .ec-table{font-size:10px!important}
  .ec-table th{position:static!important}
  .ec-page:has(.ec-expense-doc)>.ec-titlebar{display:none!important}
  .ec-expense-doc{box-sizing:border-box;width:190mm;max-width:none;margin:0 auto;padding:0!important;font-size:11px;line-height:1.3}
  .ec-expense-doc table{table-layout:fixed}
  .ec-expense-doc th,.ec-expense-doc td{overflow-wrap:anywhere}
  .ec-expense-doc tr{break-inside:avoid}
}

.nc-expense-pdf{position:fixed;inset:0;z-index:1000;background:#eef1f4;padding:16px;display:flex;flex-direction:column;gap:10px}
.nc-expense-pdf-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.nc-expense-pdf iframe{flex:1;width:100%;min-height:0;border:0;background:#fff}
.nc-expense-pdf iframe[hidden]{display:none}
/* 지출결의서 영수증·결재 */
.ec-receipt-cell{white-space:nowrap}
.ec-receipt-cell label.ec-btn{cursor:pointer;margin-left:4px}
.ec-receipt-missing{color:#c62828;font-weight:700;white-space:nowrap}
.ec-rc-failed{flex:1 1 100%;color:#c62828;font-size:13px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
/* 영수증 한꺼번에 올리기(미배정 칸) */
.ec-inbox{border:1px dashed #90a4ae;border-radius:8px;padding:10px;margin:0 0 10px;background:#f7fafc}
.ec-inbox-head{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.ec-inbox:focus-visible,.ec-receipt-cell:focus-visible{outline:2px solid #2f83c5;outline-offset:2px}
.ec-inbox-status{font-size:13px;color:#37474f}
.ec-inbox-hint{font-size:13px;color:#546e7a;margin-top:6px}
#expUpdateState{padding:8px 10px;margin-bottom:10px;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
#expUpdateState span{display:block}
#expUpdateState small{display:block;color:#6b7280;font-size:11px;font-weight:400;margin-top:3px}
#expUpdateState.ec-update-failed{background:#fff3f2;border:1px solid #f1c5c1;border-radius:6px;color:#b42318}
.ec-card-login{margin-bottom:12px}.ec-card-login>summary{display:inline-flex;align-items:center;list-style:none}
.ec-card-login form{margin-top:8px;flex-wrap:wrap}.ec-card-login label{flex:1 1 200px;flex-direction:column;align-items:stretch}
.ec-card-login input{min-width:0;width:100%;box-sizing:border-box}.ec-card-login .ec-query-meta{flex:1 1 100%;margin:0;white-space:normal;overflow-wrap:anywhere}
.ec-inbox-list{display:flex;gap:8px;overflow-x:auto;padding:8px 0 2px}
.ec-inbox-item{position:relative;margin:0;flex:0 0 100px;border:2px solid #cfd8dc;border-radius:6px;background:#fff;cursor:pointer;padding:3px}
.ec-inbox-item img{width:100%;height:110px;object-fit:cover;display:block;pointer-events:none}
.ec-inbox-item figcaption{font-size:11px;line-height:1.3;margin-top:3px;word-break:keep-all}
.ec-inbox-item.selected{border-color:#1565c0;box-shadow:0 0 0 3px #90caf9}
.ec-inbox-del{position:absolute;top:3px;right:3px;width:28px;height:28px;border:0;border-radius:50%;background:rgba(0,0,0,.6);color:#fff;font-size:17px;line-height:1;cursor:pointer}
.ec-inbox-pick{position:fixed;left:50%;bottom:14px;transform:translateX(-50%);z-index:50;background:#1565c0;color:#fff;border-radius:22px;padding:8px 10px 8px 16px;display:flex;gap:10px;align-items:center;box-shadow:0 4px 14px rgba(0,0,0,.25);font-size:14px;width:max-content;max-width:calc(100vw - 24px)}
.ec-inbox-pick span{flex:1 1 auto;line-height:1.35}
.ec-inbox-pick .ec-btn{flex:0 0 auto}
.ec-inbox-pick .ec-btn{background:#fff;color:#1565c0}
.ec-rc-assign{white-space:nowrap}
.ec-rc-auto{border:0;background:#e8f5e9;color:#2e7d32;border-radius:4px;font-size:12px;padding:4px 7px;cursor:pointer;white-space:nowrap}
tr.ec-drop>td{background:#e3f2fd}
.ec-receipt-thumbs{display:inline-flex;align-items:center;gap:3px;padding:2px;border:1px solid #cfd5db;border-radius:4px;background:#fff;cursor:zoom-in;vertical-align:middle}
.ec-receipt-thumbs img{width:34px;height:34px;object-fit:cover;border-radius:2px}
.ec-receipt-thumbs b{font-size:11px;padding:0 3px}
.ec-receipt-preview{display:inline-flex;align-items:center;justify-content:center;max-width:100%;vertical-align:middle}
.ec-receipt-open{display:inline-flex;align-items:center;padding:0;border:0;background:transparent;cursor:zoom-in}
.ec-receipt-reload{padding:5px 6px;border:1px solid #aeb8c2;border-radius:4px;background:#f5f7fa;color:#334155;font:inherit;font-size:12px;line-height:1.4;white-space:nowrap;cursor:pointer}
.ec-receipt-reload[hidden]{display:none}
.ec-preview-failed>img,.ec-preview-failed>.ec-receipt-open{display:none}
.ec-receipt-open:focus-visible,.ec-receipt-reload:focus-visible{outline:2px solid #2f83c5;outline-offset:2px}
@media(max-width:640px){.ec-receipt-reload{min-height:44px;min-width:44px}}
.ec-receipt-view{flex:1;min-height:0;overflow:auto;display:grid;gap:14px;justify-items:center;align-content:start}
.ec-receipt-view figure{margin:0;display:grid;gap:6px;justify-items:center}
.ec-receipt-view img{max-width:100%;max-height:78vh;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.18)}
.ec-pending-notice{display:block;width:100%;text-align:left;margin:0 0 8px;padding:8px 12px;border:1px solid #f0b4b4;border-radius:4px;background:#fdecec;color:#b71c1c;font-weight:700;cursor:pointer}
.ec-table tr.ec-turn td{font-weight:700;background:#fff7e0}
.ec-table tr.ec-cancelled td{color:#9aa3ad}
.ec-rc-m{display:none}
.ec-doc-scroll{overflow-x:auto}
.ec-exp-summary,.ec-exp-lines-heading,.ec-exp-more,.ec-exp-line-date{display:none}
.ec-exp-decisions,.ec-exp-tools{display:contents}
@media screen and (max-width:640px){
  .ec-page.ec-exp-report.ec-has-decision{padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))}
  .ec-exp-report>.ec-titlebar{border:0;background:transparent;padding:0 0 10px;display:block}
  .ec-exp-report>.ec-titlebar>div:first-child,.ec-exp-report>.ec-doc-scroll{display:none}
  .ec-exp-report .ec-actions{display:flex;align-items:center;width:100%;gap:8px}
  .ec-exp-report .ec-actions>.ec-btn{min-height:44px;font-size:14px}
  .ec-exp-report .ec-exp-more{display:block;margin-left:auto}
  .ec-exp-report .ec-exp-tools{display:none}
  .ec-exp-report .ec-exp-tools.is-open{display:flex;flex:1 1 100%;gap:8px;padding:6px 0}
  .ec-exp-report .ec-exp-tools .ec-btn{flex:1;min-height:44px;font-size:14px}
  .ec-exp-report .ec-exp-decisions{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:5;gap:10px;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid #d9dee3;box-shadow:0 -3px 12px #26394d14}
  .ec-exp-report .ec-exp-decisions .ec-btn{flex:1;height:48px;font-size:17px;font-weight:700;border-radius:8px}
  .ec-exp-report .ec-exp-summary{display:block;background:#fff;border:1px solid #d9dee3;border-radius:10px;padding:16px;margin-bottom:16px;font-size:14px;line-height:1.5}
  .ec-exp-summary-head{display:flex;align-items:start;gap:10px;justify-content:space-between}
  .ec-exp-summary h2{font-size:18px;color:#26394d;margin:0;overflow-wrap:anywhere}
  .ec-exp-badge{flex-shrink:0;padding:4px 8px;border-radius:6px;background:#eaf3fc;color:#1767a0;font-size:12px}
  .ec-exp-report-no{margin:5px 0 12px;color:#6b7280;font-size:12px;overflow-wrap:anywhere}
  .ec-exp-sum{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 0;border-top:1px solid #e5e8eb;border-bottom:1px solid #e5e8eb}
  .ec-exp-sum>span{color:#59636e;white-space:nowrap}
  .ec-exp-sum strong{color:#26394d;font-size:24px;white-space:nowrap;font-variant-numeric:tabular-nums}
  .ec-exp-sum small{font-size:14px;margin-left:4px;font-weight:400}
  .ec-exp-summary dl{margin:12px 0}
  .ec-exp-summary dl>div{display:grid;grid-template-columns:60px minmax(0,1fr);gap:8px;margin:6px 0}
  .ec-exp-summary dt{color:#6b7280}
  .ec-exp-summary dd{margin:0;overflow-wrap:anywhere}
  .ec-exp-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #d9dee3;border-radius:6px}
  .ec-exp-steps>div{text-align:center;padding:8px 3px;border-right:1px solid #d9dee3;min-width:0}
  .ec-exp-steps>div:last-child{border:0}
  .ec-exp-steps b,.ec-exp-steps span{display:block}
  .ec-exp-steps b{color:#59636e;font-size:12px;margin-bottom:4px}
  .ec-exp-steps span{font-size:12px;overflow-wrap:anywhere}
  .ec-exp-report .ec-exp-lines-heading{display:flex;justify-content:space-between;margin:0 2px 10px;font-size:16px;color:#26394d}
  .ec-exp-lines-heading span{font-size:13px;color:#6b7280;font-weight:400}
  .ec-exp-report .ec-mcards tr{padding:14px;border-radius:10px;gap:10px}
  .ec-exp-report .ec-mcards td.ec-m-merchant{font-size:16px;line-height:1.5;overflow-wrap:anywhere}
  .ec-exp-report .ec-exp-line-date{display:block;font-size:13px;font-weight:400;color:#6b7280;margin-top:5px}
  .ec-exp-report .ec-mcards td.ec-m-amount{font-size:20px;white-space:nowrap;align-self:end;font-variant-numeric:tabular-nums}
  .ec-exp-report>.ec-bottom-hint{text-align:left;line-height:1.6;overflow-wrap:anywhere}
}
@media print{
  .ec-exp-summary,.ec-exp-lines-heading,.ec-exp-decisions,.ec-exp-tools,.ec-exp-more,.ec-exp-line-date,.ec-exp-report>.ec-tablebox{display:none!important}
}
@media(min-width:641px){.ec-rc-camera{display:none}}
/* 휴대폰: 지출결의서 화면은 최소 폭을 풀고 표 한 줄을 카드 한 장으로 보여준다(촬영 버튼을 손가락 크기로). */
@media(max-width:640px){
  .ec-page.ec-exp{min-width:0;padding:8px 8px 28px}
  .ec-exp .ec-titlebar{flex-direction:column;gap:8px;padding:10px}
  .ec-exp .ec-actions{flex-wrap:wrap}
  .ec-exp .ec-actions .ec-btn{min-height:38px;padding:0 12px}
  .ec-exp .ec-querybar{flex-wrap:wrap;align-items:stretch;gap:8px}
  .ec-exp .ec-querybar label{flex:1 1 100%;min-width:0;flex-direction:column;align-items:stretch;white-space:normal}
  .ec-exp .ec-querybar input,.ec-exp .ec-querybar select{flex:1;min-width:0!important;width:100%;max-width:100%;box-sizing:border-box;min-height:40px;font-size:16px}
  .ec-exp .ec-querybar>span:not(.ec-query-meta){display:none}
  .ec-exp .ec-querybar .ec-btn{flex:1 1 auto;min-height:40px}
  .ec-exp .ec-query-meta{flex:1 1 100%;min-width:0;margin-left:0;overflow-wrap:anywhere}
  .ec-exp .ec-titlebar>div,.ec-exp .ec-actions{min-width:0;max-width:100%}
  .ec-exp .ec-titlebar{overflow-wrap:anywhere}
  .ec-exp .ec-empty{padding:32px 12px}
  .ec-exp .ec-bottom-hint{overflow-wrap:anywhere}
  .ec-exp .ec-tablebox{max-height:none;overflow:visible;border:0;background:transparent}
  .ec-mcards thead{display:none}
  .ec-mcards,.ec-mcards tbody{display:block;width:100%;white-space:normal;font-size:13px}
  .ec-mcards tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;margin:0 0 8px;padding:10px 12px;background:#fff;border:1px solid #d9dee3;border-radius:6px}
  .ec-mcards td{display:block;border:0!important;padding:0!important;min-width:0;overflow-wrap:anywhere;background:transparent!important}
  .ec-mcards td:empty,.ec-mcards td.ec-mhide{display:none}
  .ec-mcards td[data-label]::before{content:attr(data-label);display:block;font-size:11px;color:#7a8490}
  .ec-mcards td.ec-mw{grid-column:1/-1}
  .ec-mcards td.ec-m-merchant{grid-column:1/-1;order:-1;font-size:15px;font-weight:700;color:#26394d}
  .ec-mcards td.ec-m-amount{text-align:right;font-size:15px;font-weight:700}
  .ec-mcards td.ec-m-date,.ec-mcards td.ec-m-status{color:#59636e}
  .ec-mcards input:not([type=checkbox]){width:100%;box-sizing:border-box;height:40px;font-size:16px}
  .ec-mcards input[type=checkbox]{width:22px;height:22px}
  .ec-mcards .ec-receipt-cell{display:flex!important;flex-wrap:wrap;gap:8px;align-items:center;white-space:normal}
  .ec-mcards .ec-receipt-cell label.ec-btn{flex:1 1 40%;margin:0;display:flex;align-items:center;justify-content:center;min-height:46px;font-size:15px;font-weight:700}
  .ec-mcards .ec-receipt-cell label.ec-rc-camera{background:#1f6fd1;border-color:#1f6fd1;color:#fff}
  .ec-mcards .ec-receipt-missing{flex:1 1 100%}
  .ec-mcards .ec-rc-assign{flex:1 1 100%;min-height:46px;font-size:16px}
  .ec-inbox-head{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
  .ec-inbox-head>b,.ec-inbox-status,.ec-inbox-head [data-inbox-retry],.ec-inbox-head [data-inbox-paste]{grid-column:1/-1}
  .ec-inbox-head [data-inbox-paste],.ec-mcards .ec-rc-paste{min-height:44px;font-size:14px}
  .ec-mcards .ec-rc-paste{flex:1 1 100%}
  .ec-inbox-head label.ec-btn{display:flex;align-items:center;justify-content:center;box-sizing:border-box;height:auto;min-height:46px;margin:0;padding:10px 6px;font-size:14px;line-height:1.35;text-align:center}
  .ec-inbox-status:empty{display:none}
  .ec-inbox-hint{font-size:12px;line-height:1.5}
  .ec-rc-pc{display:none}.ec-rc-m{display:inline}
  .ec-receipt-thumbs img{width:52px;height:52px}
  .ec-pending-notice{font-size:14px;padding:12px}
}
.ec-linked-docs{display:grid;gap:0;padding:0 10px 10px}
.ec-linked-docs>div{display:grid;grid-template-columns:180px 1fr;gap:12px;padding:8px;border-bottom:1px solid #e6eaee}
.ec-linked-docs b{color:#34495e}.ec-linked-docs span{color:#677482}
.ec-manual-badge{display:inline-block;background:#eaf3fc;color:#1767a0;border-radius:4px;padding:2px 6px;font-size:12px}
.ec-manual-form{margin:16px 0;padding:16px;border:1px solid #d9dee3;border-radius:8px;background:#f7fafc}
.ec-manual-form h3{margin:0 0 12px}
.ec-manual-fields{display:flex;flex-wrap:wrap;align-items:end;gap:12px}
.ec-manual-fields>label:not(.ec-btn){display:flex;flex:1 1 160px;flex-direction:column;gap:6px;min-width:0}
.ec-manual-fields>.ec-manual-content{flex-basis:240px}
.ec-manual-fields input{box-sizing:border-box;width:100%;min-width:0;padding:8px;font:inherit;border:1px solid #cfd5db;border-radius:4px}
.ec-account-field{display:flex;min-width:0;width:100%;align-items:stretch}
.ec-exp-bulk{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px;background:#eef6ff;border:1px solid #cbddec}
.ec-exp-bulk label{display:flex;align-items:center;gap:6px;min-width:0}
.ec-exp-bulk select{min-height:36px;max-width:100%;padding:6px;border:1px solid #bcc5ce;border-radius:4px;font:inherit}
.ec-exp-bulk small{flex-basis:100%;color:#59636f}
@media(max-width:640px){.ec-exp-bulk select,.ec-exp-bulk .ec-btn{min-height:44px;font-size:16px}.ec-exp-bulk input[type=checkbox]{width:20px;height:20px}}
.ec-account-editor{display:flex;flex-wrap:wrap;align-items:center;gap:5px;min-width:0;width:100%}
.ec-account-editor>.ec-account-field{flex:1 1 130px;width:auto}
.ec-account-editor>input{box-sizing:border-box;flex:1 1 160px;width:0;min-width:0;padding:8px;font:inherit;border:1px solid #cfd5db;border-radius:4px}
.ec-account-detail-toggle{display:inline-flex;align-items:center;gap:3px;white-space:nowrap}
.ec-account-detail-toggle>input[type=checkbox]{flex:none;width:16px;height:16px;min-height:0;padding:0;margin:0}
.ec-account-invalid>.ec-account-field>input{border:2px solid #d32f2f;background:#fff0f0}
.ec-account-error{flex-basis:100%;color:#b42318;font-size:12px}
.ec-account-field>input{box-sizing:border-box;flex:1;width:0;min-width:0;padding:8px;border:1px solid #cfd5db;border-radius:4px 0 0 4px;font:inherit}
.ec-account-field>select{box-sizing:border-box;flex:0 0 40px;width:40px;min-width:0;min-height:36px;border:1px solid #cfd5db;border-left:0;border-radius:0 4px 4px 0;background:#fff;color:#333;font:inherit;cursor:pointer}
@media(max-width:640px){.ec-account-field>input,.ec-account-field>select{min-height:44px;font-size:16px}}
.ec-manual-fields .ec-manual-files{flex-basis:240px}
.ec-exp-subtotals{display:grid;gap:6px;padding-top:10px}
.ec-exp-subtotals span{display:flex;justify-content:space-between;gap:8px}
.ec-manual-form .ec-error:empty,.ec-receipt-cell .ec-error:empty{display:none}
@media(max-width:760px){
  .ec-manual-form{padding:12px}
  .ec-manual-fields{gap:10px}
  .ec-manual-fields>label:not(.ec-btn){flex-basis:100%}
  .ec-manual-fields input,.ec-manual-fields>.ec-btn{min-height:44px;font-size:16px}
  .ec-manual-fields>.ec-btn{flex:1;text-align:center}
  .ec-manual-form input[type=file]{font-size:14px}
}
@media print{.ec-manual-form{display:none!important}}
/* PC: 영수증·사진 첨부 버튼 다듬기 (모바일 스타일은 그대로) */
@media(min-width:641px){
  .ec-inbox{border:1.5px dashed #7fb2dc;border-radius:12px;padding:14px 16px;background:linear-gradient(180deg,#f4f9fe,#eaf3fb)}
  .ec-inbox-head{gap:10px}
  .ec-inbox-head>b{font-size:14px;color:#1f4e79;margin-right:4px}
  .ec-inbox-head .ec-btn,.ec-receipt-cell .ec-btn,.ec-manual-fields>.ec-btn,.ec-inbox-pick .ec-btn{
    display:inline-flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;height:34px;padding:0 15px;border-radius:8px;
    border:1px solid #b6d2ea;background:#fff;color:#1f5f95;font-size:13px;font-weight:600;line-height:1;
    box-shadow:0 1px 2px #1f4e791a;transition:background .15s,border-color .15s,box-shadow .15s,transform .1s}
  .ec-inbox-head .ec-btn:hover,.ec-receipt-cell .ec-btn:hover,.ec-manual-fields>.ec-btn:hover,.ec-inbox-pick .ec-btn:hover{
    background:#eaf3fb;border-color:#7fb2dc;box-shadow:0 2px 6px #1f4e7926;transform:translateY(-1px)}
  .ec-inbox-head .ec-btn:active,.ec-receipt-cell .ec-btn:active,.ec-manual-fields>.ec-btn:active{transform:none;box-shadow:none}
  .ec-inbox-head .ec-btn.primary,.ec-manual-fields>.ec-btn.primary{background:linear-gradient(180deg,#3a92d6,#2672b3);border-color:#2672b3;color:#fff}
  .ec-inbox-head .ec-btn.primary:hover,.ec-manual-fields>.ec-btn.primary:hover{background:linear-gradient(180deg,#3489cc,#1f679f);border-color:#1f679f}
  .ec-receipt-cell .ec-btn.danger,.ec-manual-fields>.ec-btn.danger{border-color:#f0b4ae;color:#b42318;background:#fff}
  .ec-receipt-cell .ec-btn.danger:hover{background:#fff1f0;border-color:#e58b82}
  .ec-receipt-cell label.ec-btn{margin-left:6px}
  .ec-bt{display:none}
  .ec-inbox-head .ec-btn,.ec-receipt-cell .ec-btn[data-rc-paste],.ec-receipt-cell label.ec-rc-album{width:38px;padding:0;font-size:17px}
}
