/* Modern UI v3: presentation only; workflow and permissions remain unchanged. */
:root{--ui-color-primary-700:#123f31;--ui-color-primary-600:#176044;--ui-color-primary-500:#1f7a55;--ui-color-primary-100:#dcece4;--ui-color-primary-050:#f1f7f4;--ui-color-bg:#f5f7f6;--ui-color-surface:#fff;--ui-color-text:#17231f;--ui-color-muted:#65736e;--ui-color-border:#dce5e1;--ui-color-border-strong:#bacbc3;--ui-color-danger:#c14545;--ui-control-height:36px;--ui-table-head-height:38px;--ui-table-row-height:40px;--ui-radius-sm:7px;--ui-radius-md:10px;--ui-radius-lg:14px;--ui-shadow-modal:0 24px 80px rgb(12 30 22/24%)}
html{background:var(--ui-color-bg);scrollbar-color:#adc3b8 transparent}body{background:var(--ui-color-bg)!important;color:var(--ui-color-text);font-family:Pretendard Variable,Pretendard,"Noto Sans KR",Inter,system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:-.012em}
.topbar{height:58px!important;padding:0 20px!important;background:#123f31!important;box-shadow:0 1px 0 rgb(255 255 255/8%),0 5px 18px rgb(17 48 37/10%)!important}.brand{font-size:1.02rem!important;font-weight:780!important;letter-spacing:-.02em}.top-page-title{margin-left:20px!important;padding-left:20px!important;border-left-color:rgb(255 255 255/18%)!important;color:#dcebe4!important;font-size:.88rem!important}.top-actions{gap:10px!important}.top-actions button{height:34px!important;background:rgb(255 255 255/10%)!important;border:1px solid rgb(255 255 255/12%)!important}
.layout{min-height:calc(100vh - 58px)!important;grid-template-columns:228px minmax(0,1fr)!important}.sidebar{padding:14px 10px 24px!important;background:#fbfcfb!important;border-right:1px solid var(--ui-color-border)!important}.sidebar-collapse{height:32px!important;margin:0 0 8px!important;border:1px solid var(--ui-color-border)!important;border-radius:7px!important;background:#fff!important;color:#52645b!important;font-size:.78rem!important}.sidebar-home{margin:0 2px 9px!important;padding:9px 11px!important;background:transparent!important;font-size:.9rem!important}
.menu-section,.section-tone-2,.section-tone-3,.section-tone-4,.section-tone-5,.section-tone-6,.section-tone-7,.section-tone-8{--menu-head:transparent;--menu-border:transparent;--menu-child:transparent;--menu-hover:#edf4f0;--menu-active:#dfeee7;margin:2px 0!important;border:0!important;border-radius:8px!important;background:transparent!important;overflow:visible!important}.menu-heading{min-height:38px!important;padding:9px 11px!important;border-radius:7px!important;background:transparent!important;color:#33483e!important;font-size:.87rem!important;font-weight:720!important}.menu-heading:hover,.sidebar-home:hover{background:#eef4f1!important}.menu-heading::after{content:'›'!important;color:#829087!important;transform:rotate(0);transition:transform .18s}.menu-section[open]>.menu-heading::after{content:'›'!important;transform:rotate(90deg)}.menu-items{padding:2px 0 5px 9px!important;border-left:1px solid #dbe5e0!important;margin-left:15px!important}.menu-link{margin:1px 0 1px 6px!important;padding:8px 10px!important;border-radius:7px!important;background:transparent!important;color:#34483f!important;font-size:.84rem!important}.menu-link::before{display:none!important}.menu-link:hover{background:#edf4f0!important}.menu-link.active,.sidebar-home.active{background:#deeee6!important;color:#135b3e!important;font-weight:760!important;box-shadow:none!important}
main{max-width:1600px!important;padding:22px 24px 42px!important}.card{padding:20px!important;border:1px solid var(--ui-color-border)!important;border-radius:12px!important;box-shadow:0 1px 2px rgb(16 36 27/5%)!important}h1{font-size:1.45rem;letter-spacing:-.035em}h2{letter-spacing:-.025em}.ui-page-header{margin-bottom:14px!important}.ui-page-header__title{font-size:1.42rem!important}.ui-page-header__description,.helptext,.ui-help{color:var(--ui-color-muted)!important}
button,.ui-button,.button-link,.action-link,input[type=submit],input[type=button]{display:inline-flex;align-items:center;justify-content:center;min-height:var(--ui-control-height);height:auto;padding:7px 12px;border:1px solid transparent;border-radius:7px!important;background:var(--ui-color-primary-500);color:#fff;font:inherit;font-size:.85rem;font-weight:720;line-height:1.2;text-decoration:none;white-space:nowrap;box-shadow:none;transition:background .15s,border-color .15s,box-shadow .15s,transform .05s}button:hover,.ui-button:hover,.button-link:hover,input[type=submit]:hover,input[type=button]:hover{background:var(--ui-color-primary-600)}button:active,.ui-button:active{transform:translateY(1px)}.secondary,.soft,.cancel,.ui-button--secondary,.ui-button--quiet,.action-link{border-color:#c4d3cc!important;background:#fff!important;color:#315344!important}.secondary:hover,.soft:hover,.cancel:hover,.ui-button--secondary:hover,.action-link:hover{background:#edf4f0!important}.danger,.reject,.ui-button--danger{background:#fff!important;border-color:#e4b9b9!important;color:var(--ui-color-danger)!important}
input:not([type=checkbox]):not([type=radio]),select,textarea{min-height:var(--ui-control-height);padding:7px 10px;border:1px solid #bdcdc5!important;border-radius:7px!important;background:#fff;color:var(--ui-color-text);font:inherit;box-shadow:inset 0 1px 1px rgb(20 45 34/2%);transition:border-color .15s,box-shadow .15s}input:not([type=checkbox]):not([type=radio]):focus,select:focus,textarea:focus{outline:0!important;border-color:var(--ui-color-primary-500)!important;box-shadow:0 0 0 3px rgb(31 122 85/13%)!important}input[readonly],textarea[readonly]{background:#f3f5f4!important}input[type=checkbox],input[type=radio]{accent-color:var(--ui-color-primary-500);width:16px;height:16px}
.ui-filter-bar,form.filters,form.status-filter,form.compact-search{padding:10px 12px!important;border:1px solid var(--ui-color-border)!important;border-radius:10px!important;background:#f8faf9!important;box-shadow:none!important}.ui-filter-bar__row,.search-row,.ui-action-bar,.actions,.toolbar-actions,.form-actions,.action-row,.detail-actions{gap:7px!important;flex-wrap:wrap!important}.ui-detail-actions{overflow:visible!important;flex-wrap:wrap!important}.ui-summary-strip,.ui-detail-summary{border-color:var(--ui-color-border)!important;border-radius:9px!important;background:#fff!important;box-shadow:none!important}.ui-summary-strip>*{padding:9px 13px!important}
.table-scroll,.table-wrap,.ui-table-wrap,.ui-form-table-wrap,.permission-table-wrap{border:1px solid var(--ui-color-border)!important;border-radius:9px!important;background:#fff!important;box-shadow:none!important}table,.ui-data-table{font-size:.86rem!important;font-variant-numeric:tabular-nums}th,.ui-data-table th{height:var(--ui-table-head-height);padding:8px 10px!important;border-color:#d4e0da!important;background:#edf4f0!important;color:#2d4b3e!important;font-size:.81rem!important;font-weight:760!important}td,.ui-data-table td{height:var(--ui-table-row-height);padding:7px 10px!important;border-color:#e4ebe7!important;background:#fff;vertical-align:middle!important}tbody tr:hover td,.ui-data-table tbody tr:hover td{background:#f6f9f7!important}.num,.money,.ui-number,.ui-money{text-align:right!important;font-variant-numeric:tabular-nums}.zone-header td,tr.zone-header>*,tr.category-row>*,tr.group-row>*{font-weight:760!important}
.tabs,.status-tabs,.basis-switch,.ui-segmented{gap:3px;border-bottom:1px solid var(--ui-color-border)}.tabs a,.tabs button,.tab,.ui-segmented>*{min-height:35px!important;border:0!important;border-radius:7px 7px 0 0!important;background:transparent!important;color:#65736e!important}.tabs .active,.tabs a.active,.tab.active,.ui-segmented>.active,.ui-segmented>[aria-pressed=true]{background:#e5f1eb!important;color:#155c40!important}.ui-status-badge,.status-badge{min-height:23px!important;padding:3px 8px!important;border-radius:999px!important;font-size:.75rem!important}
dialog,.ui-modal{border:0!important;border-radius:14px!important;box-shadow:var(--ui-shadow-modal)!important}.ui-modal::backdrop,dialog::backdrop{background:rgb(15 31 24/48%);backdrop-filter:blur(2px)}.ui-modal__header{min-height:52px!important;padding:11px 16px!important;background:#fff!important;border-bottom:1px solid var(--ui-color-border)!important;color:var(--ui-color-text)!important}.ui-modal__header>button{background:#f0f4f2!important;color:#43564d!important}.pager{gap:5px!important}.pager a,.pager span{min-width:34px!important;min-height:34px!important;padding:5px 9px!important;border-color:var(--ui-color-border)!important;border-radius:7px!important;background:#fff!important}.pager [aria-current=page],.pager .current{background:var(--ui-color-primary-500)!important;color:#fff!important}
@media(max-width:1050px){.layout{grid-template-columns:205px minmax(0,1fr)!important}main{padding:18px!important}.card{padding:16px!important}}@media(max-width:800px){.topbar{height:56px!important}.layout{display:block!important;min-height:calc(100vh - 56px)!important}.sidebar{top:56px!important;width:min(84vw,290px)!important}main{padding:12px!important}.card{padding:14px!important}.ui-summary-strip{flex-direction:row!important;overflow:auto!important}.ui-summary-strip>*{min-width:132px;border-right:1px solid var(--ui-color-border)!important;border-bottom:0!important}}@media print{body{background:#fff!important}.card{border:0!important;box-shadow:none!important}}


/* Modern plan inline editing */
.plan-sheet .estimate-table td.num,.plan-sheet .estimate-table td.money,.plan-sheet .estimate-table .ui-money,.plan-sheet .estimate-table .wrap-number,.plan-card .plan-grid td.num,.plan-card .plan-grid .wrap-number{min-width:11ch!important;max-width:none!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:keep-all!important;line-height:1.2!important}
.plan-sheet .estimate-table input:not([type="checkbox"]):not([type="radio"]),.plan-card .plan-grid input:not([type="checkbox"]):not([type="radio"]){border-color:transparent!important;background:transparent!important;box-shadow:none!important}
.plan-sheet .estimate-table td:hover input:not([type="checkbox"]):not([type="radio"]):not(:disabled),.plan-card .plan-grid td:hover input:not([type="checkbox"]):not([type="radio"]):not(:disabled){border-color:#a9beb4!important;background:#fff!important}
.plan-sheet .estimate-table input:not([type="checkbox"]):not([type="radio"]):focus,.plan-card .plan-grid input:not([type="checkbox"]):not([type="radio"]):focus{border-color:var(--ui-color-primary-500)!important;background:#fff!important;box-shadow:0 0 0 3px rgb(31 122 85/13%)!important}
.plan-sheet .estimate-table .cost,.plan-sheet .estimate-table .quantity-edit,.plan-card .plan-grid .price-input,.plan-card .plan-grid .qty-input,.plan-card .plan-grid .transport-input{width:max(8ch,calc(var(--value-length,6)*1ch + 2.2ch))!important;min-width:8ch!important;max-width:18ch!important;text-align:right!important;white-space:nowrap!important}
.plan-sheet .estimate-table th,.plan-card .plan-grid th{white-space:nowrap!important}
