:root {
    --primary: #2457d6;
    --primary-dark: #1742ad;
    --surface: #ffffff;
    --background: #f4f6fa;
    --border: #dce1ea;
    --text: #202636;
    --muted: #727b8e;
    --sidebar: #172033;
    --sidebar-hover: #24314b;
    --header-height: 64px;
    --sidebar-width: 210px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-width: 1280px;
    min-height: 100%;
    font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
    color: var(--text);
    background: var(--background);
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.app-header {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 0 28px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

/*
 * 상단 COMMU IPMS 브랜드 로고
 *
 * 실제 로고 이미지는:
 * /resources/image/IPMS.png
 *
 * Header 높이 64px 안에서 과하게 커지지 않도록 최대 높이를 제한한다.
 */
.app-logo {
    width: 190px;
    height: 48px;
    display: flex;
    align-items: center;
    flex: 0 0 190px;
    text-decoration: none;
}

.app-logo img {
    display: block;
    width: auto;
    max-width: 170px;
    height: auto;
    object-fit: contain;
    object-position: left center;
}

.header-search {
    flex: 1;
    max-width: 680px;
}

.header-search input {
    width: 100%;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0 14px;
    background: #f8f9fc;
}

.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 18px;
}

.current-user {
    font-size: 14px;
    font-weight: 600;
}

.text-button {
    border: 0;
    background: transparent;
    color: var(--muted);
}

.app-sidebar {
    position: fixed;
    z-index: 90;
    top: var(--header-height);
    bottom: 0;
    left: 0;
    width: var(--sidebar-width);
    padding: 22px 14px;
    background: var(--sidebar);
    color: #fff;
    overflow-y: auto;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-group-title {
    margin: 22px 12px 8px;
    color: #8793aa;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.nav-item {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 7px;
    color: #dbe1ec;
    text-decoration: none;
    font-size: 14px;
}

.nav-item:hover,
.nav-item.is-active {
    background: var(--sidebar-hover);
    color: #fff;
}

.nav-item.is-active {
    box-shadow: inset 3px 0 0 #5d86ff;
}

.nav-item.is-disabled {
    color: #78849b;
    cursor: default;
}

.app-content {
    margin-left: var(--sidebar-width);
    padding: 92px 28px 40px;
    min-height: calc(100vh - 56px);
}

.app-footer {
    min-height: 56px;
    margin-left: var(--sidebar-width);
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-top: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    font-size: 12px;
}

.app-footer-logo {
    display: block;
    width: auto;
    height: 24px;
    object-fit: contain;
}

.breadcrumb {
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 13px;
}

.page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 22px;
}

.page-heading h1 {
    margin: 0 0 8px;
    font-size: 28px;
}

.page-heading p {
    margin: 0;
    color: var(--muted);
}

.primary-button,
.secondary-button {
    min-height: 38px;
    padding: 0 18px;
    border-radius: 7px;
    font-weight: 600;
}

.primary-button {
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #fff;
}

.primary-button:hover {
    background: var(--primary-dark);
}

.secondary-button {
    border: 1px solid var(--border);
    background: #fff;
    color: #3e4758;
}

.full-width {
    width: 100%;
}

.search-card,
.content-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(26, 39, 70, .035);
}

.search-card {
    padding: 20px;
    margin-bottom: 18px;
}

.search-fields {
    display: flex;
    align-items: flex-end;
    gap: 16px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 180px;
}

.field-group.field-wide {
    flex: 1;
}

.field-group label {
    font-size: 13px;
    font-weight: 700;
}

.field-group input,
.field-group select {
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0 12px;
    background: #fff;
}

.search-actions,
.toolbar-actions {
    display: flex;
    gap: 8px;
}

.content-card {
    overflow: hidden;
}

.card-header {
    min-height: 58px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.card-header h2 {
    display: inline-block;
    margin: 0 10px 0 0;
    font-size: 17px;
}

.result-count {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.grid-card {
    min-height: 540px;
}

.empty-state {
    padding: 80px 20px;
    text-align: center;
    color: var(--muted);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.summary-card {
    min-height: 128px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.summary-card span {
    color: var(--muted);
    font-weight: 600;
}

.summary-card strong {
    font-size: 34px;
}

/* Dashboard */
.dashboard-page .page-heading { align-items: center; }
.dashboard-summary-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:12px; margin-bottom:16px; }
.dashboard-summary-card { display:flex; flex-direction:column; min-width:0; padding:15px 16px; border:1px solid #dce3ed; border-radius:9px; background:#fff; color:#40516a; text-decoration:none; box-shadow:0 2px 8px rgba(30,48,78,.04); }
.dashboard-summary-card:hover { border-color:#9bb9e4; background:#f8fbff; }
.dashboard-summary-card span { color:#65738a; font-size:11px; font-weight:700; }
.dashboard-summary-card strong { margin:5px 0 2px; color:#263750; font-size:25px; line-height:1; }
.dashboard-summary-card small { min-height:38px; color:#7c899b; font-size:10px; line-height:1.4; word-break:keep-all; }
.dashboard-summary-card small b { display:inline-block; margin:0 3px 2px 0; padding:1px 5px; border-radius:8px; background:#eef2f7; color:#56657a; font-size:9px; }
.dashboard-summary-card.is-danger strong { color:#c13c3c; }
.dashboard-summary-card.is-today strong { color:#d27527; }
.dashboard-summary-card.is-upcoming strong { color:#386fc5; }
.dashboard-section { margin-bottom:16px; overflow:hidden; }
.dashboard-section .card-header { align-items:center; }
.dashboard-section .card-header h2 { margin-bottom:2px; }
.dashboard-more-link,.dashboard-case-link { color:#2f6fc5; font-weight:700; text-decoration:none; }
.dashboard-more-link:hover,.dashboard-case-link:hover { text-decoration:underline; }
.dashboard-table-wrap { width:100%; overflow-x:auto; }
.dashboard-table { width:100%; border-collapse:collapse; table-layout:fixed; font-size:11px; }
.dashboard-table th { padding:8px 10px; border-top:1px solid #e2e7ef; border-bottom:1px solid #d9e0ea; background:#f5f7fa; color:#59677b; text-align:center; }
.dashboard-table td { padding:9px 10px; border-bottom:1px solid #e7ebf1; overflow:hidden; color:#34435a; text-align:center; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-table th:nth-child(1){width:80px}.dashboard-table th:nth-child(2){width:110px}.dashboard-table th:nth-child(4){width:120px}.dashboard-table th:nth-child(5){width:95px}.dashboard-table th:nth-child(6){width:75px}.dashboard-table th:nth-child(7){width:90px}
.dashboard-deadline-badge { display:inline-flex; align-items:center; justify-content:center; min-width:55px; height:20px; padding:0 6px; border-radius:10px; font-size:9px; font-weight:800; }
.dashboard-deadline-badge.is-overdue { background:#fff0f0; color:#b83232; }
.dashboard-deadline-badge.is-today { background:#fff4e8; color:#b65c18; }
.dashboard-deadline-badge.is-week { background:#edf4ff; color:#2e65b6; }
.dashboard-remaining { font-weight:800; }.dashboard-remaining.is-overdue{color:#b83232}.dashboard-remaining.is-today{color:#b65c18}.dashboard-remaining.is-week{color:#2e65b6}
.dashboard-empty { padding:24px!important; color:#8591a2!important; text-align:center!important; }
.dashboard-two-column { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); gap:16px; }
.dashboard-stage-list { padding:8px 16px 14px; }
.dashboard-stage-row { display:grid; grid-template-columns:125px minmax(80px,1fr) 28px; align-items:center; gap:10px; min-height:29px; color:#46566d; text-decoration:none; font-size:10px; }
.dashboard-stage-row:hover span { color:#2f6fc5; font-weight:700; }
.dashboard-stage-row i { display:block; height:7px; overflow:hidden; border-radius:4px; background:#edf1f6; }
.dashboard-stage-row i b { display:block; height:100%; border-radius:4px; background:#6f98db; }
.dashboard-stage-row strong { text-align:right; color:#263750; }
.dashboard-recent-list { padding:4px 16px 12px; }
.dashboard-recent-item { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 3px; border-bottom:1px solid #e8ecf2; color:#34435a; text-decoration:none; }
.dashboard-recent-item:last-child { border-bottom:0; }
.dashboard-recent-item:hover strong { color:#2f6fc5; }
.dashboard-recent-item div { min-width:0; }
.dashboard-recent-item strong,.dashboard-recent-item span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-recent-item strong { margin-bottom:3px; font-size:11px; }
.dashboard-recent-item span,.dashboard-recent-item time { color:#7b8798; font-size:9px; }
.dashboard-recent-item time { flex:0 0 auto; }
@media(max-width:1200px){.dashboard-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:850px){.dashboard-two-column{grid-template-columns:1fr}.dashboard-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.fallback-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.fallback-table th,
.fallback-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    white-space: nowrap;
}

.fallback-table th {
    background: #f7f8fb;
    font-weight: 700;
}

.fallback-table-wrap {
    overflow-x: auto;
}

.grid-notice {
    padding: 10px 14px;
    color: #8a5a00;
    background: #fff8df;
    border-bottom: 1px solid #eadca8;
    font-size: 13px;
}

.login-body {
    min-width: 1024px;
    min-height: 100vh;
    background: #eef2f8;
}

.login-shell {
    width: 1040px;
    min-height: 620px;
    margin: 80px auto 32px;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 70px rgba(28, 46, 90, .16);
}

.login-body .app-footer,
.login-page .app-footer {
    margin-left: 0;
    border-top: 0;
    background: transparent;
}

.login-brand-panel {
    padding: 80px 68px;
    background: linear-gradient(145deg, #172033, #2457d6);
    color: #fff;
}

.brand-mark {
    margin-bottom: 80px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .08em;
}

.login-brand-panel h1 {
    font-size: 42px;
    line-height: 1.2;
    margin: 0 0 28px;
}

.login-brand-panel p {
    max-width: 420px;
    color: #d8e1ff;
    line-height: 1.8;
}

.login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.login-form {
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
}

.login-form h2 {
    margin: 0 0 8px;
    font-size: 30px;
}

.sub-text {
    margin: 0 0 36px;
    color: var(--muted);
}

.login-form label {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
}

.login-form input {
    height: 46px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 0 13px;
}

.form-message {
    min-height: 22px;
    margin-bottom: 10px;
    color: #c62828;
    font-size: 13px;
}

/* --------------------------------------------------------------------------
 * Page layout / active navigation fixes
 * -------------------------------------------------------------------------- */
.app-shell {
    min-height: 100vh;
}

/*
 * 모든 업무 화면은 고정 Sidebar 너비만큼 왼쪽 여백을 확보한다.
 * 예전 .content 클래스 사용 시 본문이 Sidebar 뒤로 숨는 문제를 방지한다.
 */
.app-content {
    width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);
}

/* 현재 선택한 좌측 메뉴가 명확히 보이도록 강조 */
.nav-item.is-active {
    position: relative;
    background: #2b3d61;
    color: #ffffff;
    font-weight: 700;
    box-shadow: inset 4px 0 0 #6f94ff;
}

.nav-item.is-active::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8eabff;
    transform: translateY(-50%);
}

.nav-item:hover:not(.is-active) {
    background: var(--sidebar-hover);
}

/* 목록 Grid는 데이터 건수만큼만 높이를 사용한다. */
.grid-card>[id$="Grid"] {
    min-height: 0;
}

/* --------------------------------------------------------------------------
 * Trademark management
 * -------------------------------------------------------------------------- */
.trademark-search-fields .field-group {
    min-width: 150px;
}

.trademark-search-fields .field-wide {
    min-width: 300px;
}

.trademark-nice-filter {
    min-width: 100px !important;
    max-width: 115px;
}

.grid-help,
.form-help,
.sub-grid-heading span {
    color: var(--muted);
    font-size: 12px;
}

.trademark-editor {
    padding: 0;
    background: #fff;
}

.trademark-editor form {
    height: 100%;
}

.trademark-editor .k-tabstrip {
    border: 0;
}

.editor-tab-panel {
    min-height: 610px;
    padding: 20px 22px 26px !important;
    background: #fff;
}

.form-section-title {
    margin: 4px 0 14px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--border);
    color: #172033;
    font-size: 15px;
    font-weight: 800;
}

.form-section-title:not(:first-child) {
    margin-top: 26px;
}

.editor-form-grid {
    display: grid;
    gap: 15px 18px;
}

.editor-form-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.editor-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.editor-field.span-2 {
    grid-column: span 2;
}

.editor-field.span-3 {
    grid-column: span 3;
}

.editor-field label {
    color: #3f4758;
    font-size: 12px;
    font-weight: 700;
}

.editor-field label em {
    color: #d23939;
    font-style: normal;
}

.conditional-required-label {
    margin-left: 3px;
    color: #7a8798;
    font-size: 10px;
    font-weight: 400;
}

.stage-required-guide {
    margin: -5px 0 12px;
    color: #5c6f89;
    font-size: 11px;
}

.editor-field input,
.editor-field select,
.editor-field textarea {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 10px;
    background: #fff;
    color: var(--text);
}

.editor-field textarea {
    resize: vertical;
}

.form-help {
    display: block;
    margin: 6px 0 16px;
    line-height: 1.45;
}

.sub-grid-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 18px 0 10px;
}

.sub-grid-heading>div {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.sub-grid-heading strong {
    font-size: 14px;
}

.application-class-editor,
.trademark-cost-heading {
    margin-top: 24px;
}

.editor-footer {
    position: sticky;
    z-index: 5;
    bottom: 0;
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    background: #fff;
}

.editor-message {
    min-height: 20px;
    color: var(--muted);
    font-size: 13px;
}

.editor-message.is-error {
    color: #c62828;
    font-weight: 700;
}

.danger-button {
    min-height: 38px;
    padding: 0 18px;
    border: 1px solid #d64545;
    border-radius: 7px;
    background: #fff;
    color: #c62828;
    font-weight: 700;
}

.danger-button:hover {
    background: #fff2f2;
}

.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

#trademarkGrid .k-grid-content,
#requesterGrid .k-grid-content,
#applicationGrid .k-grid-content,
#applicationClassGrid .k-grid-content,
#workGrid .k-grid-content,
#costGrid .k-grid-content {
    font-size: 12px;
}

#trademarkGrid tbody tr {
    cursor: pointer;
}

/* --------------------------------------------------------------------------
 * Trademark v0.6 - 기존 IPExpert 상표 전체 흐름
 * -------------------------------------------------------------------------- */
.runtime-error {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid #efb5b5;
    border-radius: 8px;
    background: #fff4f4;
    color: #a12828;
    font-size: 13px;
    font-weight: 700;
}

.editor-form-grid.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.selected-app-panel {
    margin-top: 20px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fbfcff;
}

.selected-app-panel.is-disabled {
    opacity: .55;
    pointer-events: none;
}

.empty-guide {
    padding: 28px;
    border: 1px dashed var(--border);
    border-radius: 8px;
    color: var(--muted);
    text-align: center;
    background: #fafbfe;
}

.file-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.grid-mini-button {
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: #fff;
    color: var(--text);
    font-size: 11px;
    cursor: pointer;
}

.grid-mini-button.danger {
    color: #b52828;
}

.trademark-editor .k-dropdown,
.trademark-editor .k-dropdownlist,
.trademark-search-fields .k-dropdown,
.trademark-search-fields .k-dropdownlist {
    width: 100%;
}

#renewalGrid .k-grid-content,
#trademarkFileGrid .k-grid-content {
    font-size: 12px;
}


/* --------------------------------------------------------------------------
 * Trademark v0.6.2 - 등록 팝업 밀도/단계형 workflow
 * -------------------------------------------------------------------------- */

/* 신규 등록 시 기본정보 저장 안내 */
.workflow-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 18px 8px;
    padding: 10px 12px;
    border: 1px solid #cdd9f5;
    border-radius: 7px;
    background: #f5f8ff;
    color: #33415f;
}

.workflow-notice-icon {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.workflow-notice strong {
    display: block;
    margin-bottom: 2px;
    font-size: 13px;
}

.workflow-notice span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

/* 비활성 업무 탭을 명확하게 표현 */
.trademark-editor .k-tabstrip-items .k-item.k-state-disabled,
.trademark-editor .k-tabstrip-items .k-item[aria-disabled="true"] {
    opacity: .38;
    cursor: not-allowed;
    filter: grayscale(.25);
}

.trademark-editor .k-tabstrip-items .k-item.k-state-disabled .k-link,
.trademark-editor .k-tabstrip-items .k-item[aria-disabled="true"] .k-link {
    color: #8c94a4 !important;
    cursor: not-allowed;
}

/*
 * 일반 input/select와 Kendo DropDownList의 높이를 동일하게 맞춘다.
 * 기존 화면처럼 50px 이상 커 보이지 않도록 36px 기준으로 통일한다.
 */
.trademark-editor .editor-field>input:not([type="hidden"]):not([type="file"]),
.trademark-editor .editor-field>select {
    width: 100%;
    height: 36px;
    min-height: 36px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid #cfd6e2;
    border-radius: 5px;
    background: #fff;
    color: var(--text);
    line-height: 34px;
}

.trademark-editor .editor-field>textarea {
    width: 100%;
    min-height: 70px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #cfd6e2;
    border-radius: 5px;
    background: #fff;
    color: var(--text);
    line-height: 1.5;
    resize: vertical;
}

.trademark-editor .editor-field>input:focus,
.trademark-editor .editor-field>select:focus,
.trademark-editor .editor-field>textarea:focus {
    outline: none;
    border-color: #6f94ed;
    box-shadow: 0 0 0 2px rgba(36, 87, 214, .08);
}

/* Kendo 2021 DropDownList */
.trademark-editor .k-dropdown,
.trademark-editor .k-dropdownlist {
    width: 100%;
    height: 36px;
}

.trademark-editor .k-dropdown .k-dropdown-wrap,
.trademark-editor .k-dropdownlist .k-dropdown-wrap {
    height: 36px;
    min-height: 36px;
    border-radius: 5px;
}

.trademark-editor .k-dropdown .k-input,
.trademark-editor .k-dropdownlist .k-input {
    height: 34px;
    line-height: 34px;
    padding: 0 10px;
}

.trademark-editor .k-dropdown .k-select,
.trademark-editor .k-dropdownlist .k-select {
    height: 34px;
    line-height: 34px;
}

/* 폼 전체를 조금 더 조밀하게 */
.trademark-editor .editor-tab-panel {
    min-height: 540px;
    padding: 16px 22px 22px !important;
}

.trademark-editor .editor-form-grid {
    gap: 11px 16px;
}

.trademark-editor .editor-field {
    gap: 5px;
}

.trademark-editor .form-section-title {
    margin-bottom: 11px;
}

.trademark-editor .form-section-title:not(:first-child) {
    margin-top: 20px;
}

/* 첨부파일 입력 */
.trademark-editor .file-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trademark-editor .file-toolbar input[type="file"] {
    width: min(520px, 100%);
    height: 38px;
    padding: 3px 6px;
    border: 1px solid #cfd6e2;
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    line-height: 28px;
}

.trademark-editor .file-toolbar input[type="file"]::file-selector-button {
    height: 30px;
    margin: 0 10px 0 0;
    padding: 0 12px;
    border: 0;
    border-right: 1px solid #d7dce5;
    background: #fff;
    color: #3f4758;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    vertical-align: middle;
    cursor: pointer;
}

.trademark-editor .file-toolbar input[type="file"]:not(:disabled)::file-selector-button:hover,
.representative-image-actions input[type="file"]:not(:disabled)::file-selector-button:hover {
    background: #f2f8ff;
    color: #2468a2;
}

.trademark-editor .file-toolbar input[type="file"]:disabled {
    background: #f4f5f7;
    color: #a5aab4;
    cursor: not-allowed;
}

/* Window 내부 footer가 입력영역을 과하게 가리지 않게 */
.trademark-editor .editor-footer {
    min-height: 58px;
    padding: 9px 18px;
}

/* 팝업 안에서 그리드 편집 input도 지나치게 크지 않게 */
.trademark-editor .k-grid .k-edit-cell input,
.trademark-editor .k-grid .k-edit-cell .k-input {
    min-height: 30px;
    height: 30px;
    line-height: 28px;
}


/* ==========================================================================
 * Trademark v0.6.3 - Kendo client-side Grid
 * ========================================================================== */

#trademarkGrid .k-grid-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 6px 8px;
    border-bottom: 1px solid var(--border);
    background: #f8fbff;
}

#trademarkGrid .k-grid-toolbar .k-grid-search {
    margin-left: auto;
    width: 260px;
}

#trademarkGrid .k-grid-toolbar .k-grid-search input {
    height: 30px;
    font-size: 12px;
}

#trademarkGrid .k-grid-toolbar .k-button {
    min-height: 30px;
    padding: 4px 10px;
    font-size: 12px;
}

#trademarkGrid .k-header-column-menu {
    opacity: .9;
}

#trademarkGrid .k-command-cell {
    white-space: nowrap;
}

#trademarkGrid .k-command-cell .k-button {
    min-width: 54px;
    margin: 0 2px;
    padding: 3px 8px;
    font-size: 11px;
}

#trademarkGrid .k-grouping-header {
    min-height: 34px;
    padding: 7px 10px;
    color: #6f7d91;
    background: #eef5ff;
    border-bottom: 1px solid var(--border);
    font-size: 11px;
}

#trademarkGrid .k-grid-header th.k-header {
    white-space: nowrap;
}

#trademarkGrid .k-grid-content td {
    white-space: nowrap;
}

#trademarkGrid .k-pager-wrap {
    min-height: 38px;
}


/* ==========================================================================
 * v0.6.4 - Compact / refined enterprise UI
 * ========================================================================== */

/*
 * 기본 타이포그래피
 * 기존 14px 중심 화면을 13px 중심으로 한 단계 낮춘다.
 */
html,
body {
    font-size: 13px;
    line-height: 1.45;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: 13px;
}

.current-user,
.nav-item {
    font-size: 13px;
}

.header-search input {
    height: 36px;
    padding: 0 12px;
    border-radius: 6px;
    font-size: 13px;
}

.page-heading {
    margin-bottom: 18px;
}

.page-heading h1 {
    margin-bottom: 5px;
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.page-heading p,
.breadcrumb {
    font-size: 12px;
}

.primary-button,
.secondary-button,
.danger-button {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 6px;
    font-size: 12px;
}

/*
 * Kendo 전반 타이포그래피.
 * Kendo 기본 테마의 14px 느낌을 업무용 고밀도 화면에 맞춘다.
 */
.k-widget,
.k-input,
.k-button,
.k-link,
.k-textbox,
.k-dropdown,
.k-dropdownlist,
.k-grid,
.k-window,
.k-tabstrip {
    font-family: inherit;
    font-size: 12px;
}

.k-window-title {
    font-size: 14px;
    font-weight: 700;
}

.k-grid th.k-header,
.k-grid th.k-header .k-link {
    font-size: 12px;
    font-weight: 700;
}

.k-grid td {
    font-size: 12px;
}

/*
 * 목록 Grid는 height를 고정하지 않는다.
 * 데이터가 없으면 header/pager 정도만 보이고,
 * 데이터가 있으면 현재 페이지 행 수만큼 자연스럽게 늘어난다.
 */
#trademarkGrid,
#requesterGrid,
#applicationGrid,
#applicationClassGrid,
#renewalGrid,
#workGrid,
#costGrid,
#trademarkFileGrid {
    height: auto !important;
}

#trademarkGrid .k-grid-content,
#requesterGrid .k-grid-content,
#applicationGrid .k-grid-content,
#applicationClassGrid .k-grid-content,
#renewalGrid .k-grid-content,
#workGrid .k-grid-content,
#costGrid .k-grid-content,
#trademarkFileGrid .k-grid-content {
    height: auto !important;
    max-height: none !important;
    overflow-y: visible;
}

#trademarkGrid .k-grid-header th,
#requesterGrid .k-grid-header th,
#applicationGrid .k-grid-header th,
#applicationClassGrid .k-grid-header th,
#renewalGrid .k-grid-header th,
#workGrid .k-grid-header th,
#costGrid .k-grid-header th,
#trademarkFileGrid .k-grid-header th {
    padding-top: 7px;
    padding-bottom: 7px;
}

#trademarkGrid .k-grid-content td,
#requesterGrid .k-grid-content td,
#applicationGrid .k-grid-content td,
#applicationClassGrid .k-grid-content td,
#renewalGrid .k-grid-content td,
#workGrid .k-grid-content td,
#costGrid .k-grid-content td,
#trademarkFileGrid .k-grid-content td {
    padding-top: 6px;
    padding-bottom: 6px;
}

/* 상표 목록 toolbar */
#trademarkGrid .k-grid-toolbar {
    min-height: 38px;
    padding: 5px 7px;
    gap: 5px;
    background: #f8fafc;
}

#trademarkGrid .k-grid-toolbar .k-button {
    min-height: 28px;
    padding: 3px 9px;
    border-radius: 4px;
    font-size: 11px;
}

#trademarkGrid .k-grid-toolbar .k-grid-search {
    width: 230px;
}

#trademarkGrid .k-grid-toolbar .k-grid-search input {
    height: 28px;
    font-size: 12px;
}

#trademarkGrid .k-grouping-header {
    min-height: 30px;
    padding: 6px 9px;
    font-size: 11px;
    background: #f2f6fb;
}

#trademarkGrid .k-pager-wrap {
    min-height: 34px;
    font-size: 11px;
}

/* --------------------------------------------------------------------------
 * 상표 등록/수정 Window
 * -------------------------------------------------------------------------- */

.trademark-editor {
    padding: 0;
    background: #fff;
}

/* 상세 레이어 크기는 고정하고 본문 영역만 스크롤한다. */
.trademark-editor.k-window-content,
.k-window-content.trademark-editor {
    height: 700px !important;
    max-height: 700px;
    overflow-y: auto;
}

.trademark-editor #trademarkForm {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.trademark-editor-window .trademark-scroll-top-button {
    position: absolute;
    right: 18px;
    bottom: 62px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #8fb3dc;
    border-radius: 50%;
    background: #fff;
    color: #2468a2;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 7px rgba(28, 67, 108, .18);
    cursor: pointer;
}

.trademark-editor-window .trademark-title-edit-button,
.trademark-editor-window .trademark-title-refresh-button {
    position: absolute;
    top: 7px;
    right: 42px;
    z-index: 21;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 22px;
    min-height: 22px;
    padding: 0 8px;
    border: 1px solid #cbd5e2;
    border-radius: 5px;
    background: #fff;
    color: #4f5d70;
    font-family: inherit;
    font-size: 10px;
    line-height: 1;
    font-weight: 600;
    cursor: pointer;
}

.trademark-editor-window .trademark-title-refresh-button {
    right: 166px;
}

.trademark-editor-window .trademark-title-edit-button {
    width: 96px;
    min-width: 96px;
}

.trademark-editor-window .trademark-title-edit-button:hover,
.trademark-editor-window .trademark-title-edit-button:focus-visible,
.trademark-editor-window .trademark-title-refresh-button:hover,
.trademark-editor-window .trademark-title-refresh-button:focus-visible {
    border-color: #8fb3dc;
    background: #f2f8ff;
    color: #2468a2;
}

.trademark-editor-window .trademark-scroll-top-button:hover,
.trademark-editor-window .trademark-scroll-top-button:focus-visible {
    border-color: #2468a2;
    background: #f2f8ff;
    box-shadow: 0 4px 15px rgba(28, 67, 108, .28);
}

.trademark-editor .k-tabstrip {
    border: 0;
    background: #fff;
}

.trademark-editor .k-tabstrip-items {
    padding: 0 20px;
    border-bottom: 1px solid #e7ebf2;
    background: #fbfcfe;
}

.trademark-editor .k-tabstrip-items .k-item {
    margin: 0 2px 0 0;
    border: 0;
    background: transparent;
}

.trademark-editor .k-tabstrip-items .k-link {
    padding: 11px 13px 10px;
    color: #596477;
    font-size: 12px;
    font-weight: 600;
}

.trademark-editor .k-tabstrip-items .k-state-active .k-link,
.trademark-editor .k-tabstrip-items .k-active .k-link {
    color: var(--primary);
    font-weight: 700;
}

.trademark-editor .editor-tab-panel {
    min-height: 0 !important;
    padding: 20px 26px 24px !important;
    background: #fff;
}

.trademark-editor .form-section-title {
    margin: 2px 0 14px;
    padding: 0 0 9px;
    border-bottom: 1px solid #e3e8f0;
    color: #202b3f;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.trademark-editor .form-section-title:not(:first-child) {
    margin-top: 24px;
}

/*
 * 입력영역은 요소끼리 붙지 않도록 행/열 간격을 명확히 둔다.
 */
.trademark-editor .editor-form-grid {
    gap: 15px 22px;
    padding: 2px 4px 10px;
}

.trademark-editor .editor-field {
    gap: 6px;
}

.trademark-editor .editor-field label {
    margin: 0;
    color: #4a5568;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
}

.trademark-editor .editor-field>input:not([type="hidden"]):not([type="file"]),
.trademark-editor .editor-field>select,
.trademark-editor .editor-field>textarea {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    border: 1px solid #d4dbe6;
    border-radius: 6px;
    background: #fff;
    color: #273247;
    font-family: inherit;
    font-size: 12px;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.trademark-editor .editor-field>input:not([type="hidden"]):not([type="file"]),
.trademark-editor .editor-field>select {
    height: 34px;
    min-height: 34px;
    padding: 0 11px;
    line-height: 32px;
}

.trademark-editor .editor-field>textarea {
    min-height: 76px;
    padding: 9px 11px;
    line-height: 1.5;
}

.trademark-editor .editor-field>input:hover,
.trademark-editor .editor-field>select:hover,
.trademark-editor .editor-field>textarea:hover {
    border-color: #b9c4d4;
}

.trademark-editor .editor-field>input:focus,
.trademark-editor .editor-field>select:focus,
.trademark-editor .editor-field>textarea:focus {
    border-color: #7193e8;
    box-shadow: 0 0 0 3px rgba(36, 87, 214, .08);
}

/* Kendo DropDownList를 일반 input과 동일한 높이/색상으로 */
.trademark-editor .k-dropdown,
.trademark-editor .k-dropdownlist {
    width: 100%;
    height: 34px;
}

.trademark-editor .k-dropdown .k-dropdown-wrap,
.trademark-editor .k-dropdownlist .k-dropdown-wrap {
    height: 34px;
    min-height: 34px;
    border: 1px solid #d4dbe6;
    border-radius: 6px;
    background: #fff;
    box-shadow: none;
}

.trademark-editor .k-dropdown .k-input,
.trademark-editor .k-dropdownlist .k-input {
    height: 32px;
    padding: 0 10px;
    line-height: 32px;
    color: #273247;
    background: transparent;
}

.trademark-editor .k-dropdown .k-select,
.trademark-editor .k-dropdownlist .k-select {
    width: 32px;
    height: 32px;
    line-height: 32px;
    background: #fafbfd;
}

.trademark-editor .k-dropdown-wrap.k-state-focused,
.trademark-editor .k-dropdown-wrap.k-state-hover {
    border-color: #9faec2;
}

/* 보조 Grid 앞뒤 여백 */
.trademark-editor .sub-grid-heading {
    margin: 20px 0 9px;
}

.trademark-editor .sub-grid-heading strong {
    font-size: 13px;
}

.trademark-editor .sub-grid-heading span,
.trademark-editor .form-help {
    font-size: 11px;
}

.trademark-editor .selected-app-panel {
    margin-top: 18px;
    padding: 18px 20px;
    border-color: #e0e6ef;
    border-radius: 8px;
    background: #fafcff;
}

/* footer도 화면을 가리지 않도록 슬림하게 */
.trademark-editor .editor-footer {
    min-height: 52px;
    padding: 8px 20px;
    border-top-color: #e4e8ef;
    box-shadow: 0 -3px 10px rgba(24, 39, 75, .035);
}

.trademark-editor .editor-message {
    font-size: 11px;
}

/* 첨부파일 */
.trademark-editor .file-toolbar {
    gap: 8px;
    margin: 10px 0 14px;
}

.trademark-editor .file-toolbar input[type="file"] {
    height: 34px;
    padding: 0;
    overflow: hidden;
    line-height: 32px;
    font-size: 11px;
}

.trademark-editor .file-toolbar input[type="file"]::file-selector-button {
    height: 100%;
    margin-right: 10px;
    padding: 0 10px;
    border-right: 1px solid #d7dce5;
    background: #f4f8fd;
    line-height: normal;
    font-size: 11px;
}

/* Kendo Window chrome */
.k-window {
    border-radius: 8px;
    box-shadow: 0 12px 36px rgba(22, 34, 58, .16);
}

.k-window-titlebar {
    min-height: 44px;
    padding: 0 14px;
    border-bottom: 1px solid #e6eaf0;
    background: #fff;
}

.k-window-titlebar .k-window-title {
    line-height: 44px;
}



/* ==========================================================================
 * v0.6.5 - Trademark form / empty grid polish
 * ========================================================================== */

/*
 * Kendo DropDownList 선택 텍스트 크기를 브라우저 기본 select와 동일하게 고정.
 * Kendo 기본 테마의 .k-input specificity가 더 높은 경우를 고려해 !important 사용.
 */
.trademark-editor .k-dropdown-wrap .k-input,
.trademark-editor .k-dropdownlist .k-input,
.trademark-editor .k-dropdown .k-input {
    font-size: 12px !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
}

.trademark-editor .k-dropdown-wrap,
.trademark-editor .k-dropdown,
.trademark-editor .k-dropdownlist {
    font-size: 12px !important;
}

/* 상표형태/사용가능/등록가능 등 모든 선택박스 높이와 내부 여백 통일 */
.trademark-editor .editor-field .k-dropdown,
.trademark-editor .editor-field .k-dropdownlist {
    width: 100% !important;
    height: 34px !important;
}

.trademark-editor .editor-field .k-dropdown-wrap {
    box-sizing: border-box;
    height: 34px !important;
    min-height: 34px !important;
    border: 1px solid #d4dbe6 !important;
    border-radius: 6px !important;
    background: #fff !important;
}

.trademark-editor .editor-field .k-dropdown-wrap .k-input {
    box-sizing: border-box;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 10px !important;
    line-height: 32px !important;
}

.trademark-editor .editor-field .k-dropdown-wrap .k-select {
    width: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
}

/* --------------------------------------------------------------------------
 * 상표 목록 Grid 정렬
 * -------------------------------------------------------------------------- */
#trademarkGrid .k-grid-header th.k-header,
#trademarkGrid .k-grid-header th.k-header>.k-link,
#trademarkGrid .k-grid-content td,
#trademarkGrid .k-command-cell {
    text-align: center !important;
}

#trademarkGrid .k-grid-header th.k-header>.k-link {
    padding-left: 6px;
    padding-right: 24px;
}

/* 관리 컬럼 locked 영역을 제거했기 때문에 강한 분리선도 없어야 한다. */
#trademarkGrid .k-grid-header-locked,
#trademarkGrid .k-grid-content-locked,
#trademarkGrid .k-grid-footer-locked {
    border-right: 0 !important;
    box-shadow: none !important;
}

/* --------------------------------------------------------------------------
 * 데이터 0건 Grid
 * 헤더 아래에는 '조회된 상표 사건이 없습니다.' 한 줄만 보여준다.
 * -------------------------------------------------------------------------- */
#trademarkGrid.commu-grid-empty .k-grid-content {
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
}

#trademarkGrid.commu-grid-empty .k-grid-norecords,
#trademarkGrid.commu-grid-empty .empty-state {
    height: 46px !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    line-height: 46px !important;
    text-align: left !important;
    color: #68758a;
    font-size: 12px;
}

/* 0건일 때 하단 페이저는 중복 정보이므로 숨긴다. */
#trademarkGrid.commu-grid-empty .k-pager-wrap,
#trademarkGrid.commu-grid-empty .k-grid-pager {
    display: none !important;
}

/* 0건일 때 불필요한 Grid 내부 최소 높이 제거 */
#trademarkGrid.commu-grid-empty .k-grid-container,
#trademarkGrid.commu-grid-empty .k-grid-content-wrap {
    min-height: 0 !important;
}


/* ==========================================================================
 * v0.6.6 - Empty grid / popup spacing refinement
 * ========================================================================== */

/*
 * 목록 카드 자체도 내용 높이에 맞춘다.
 * 기존 .grid-card min-height: 540px 때문에 데이터가 없어도 빈 공간이 크게 남는 문제 제거.
 */
.grid-card {
    min-height: 0 !important;
}

/* --------------------------------------------------------------------------
 * 빈 상표 Grid
 * -------------------------------------------------------------------------- */

/* 빈 데이터 메시지는 Grid 본문 정중앙에 한 줄만 표시 */
#trademarkGrid.commu-grid-empty .k-grid-content {
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    overflow: hidden !important;
}

#trademarkGrid.commu-grid-empty .k-grid-norecords {
    height: 48px !important;
    min-height: 48px !important;
}

#trademarkGrid.commu-grid-empty .empty-state {
    box-sizing: border-box;
    width: 100%;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;

    display: flex;
    align-items: center;
    justify-content: center;

    line-height: 1.4 !important;
    text-align: center !important;
    color: #68758a;
    font-size: 12px;
}

/*
 * 이전 버전에서는 0건일 때 pager를 숨겼지만,
 * Grid 하단 레이아웃 균형을 위해 pager는 항상 유지한다.
 */
#trademarkGrid.commu-grid-empty .k-pager-wrap,
#trademarkGrid.commu-grid-empty .k-grid-pager {
    display: flex !important;
}

/* Toolbar / Pager의 높이를 맞춰 전체 Grid가 단정하게 보이도록 조정 */
#trademarkGrid .k-grid-toolbar,
#trademarkGrid .k-pager-wrap,
#trademarkGrid .k-grid-pager {
    min-height: 34px !important;
    box-sizing: border-box;
}

#trademarkGrid .k-pager-wrap,
#trademarkGrid .k-grid-pager {
    padding: 3px 7px !important;
    align-items: center;
}

/* --------------------------------------------------------------------------
 * 상표 등록/수정 Window - 여백 축소
 * -------------------------------------------------------------------------- */

/*
 * 과거 공통 스타일의 form height:100%를 덮어써서
 * 콘텐츠보다 불필요하게 세로로 늘어나지 않도록 한다.
 */
.trademark-editor form {
    height: auto !important;
}

/* 탭 헤더 좌우 여백 축소 */
.trademark-editor .k-tabstrip-items {
    padding-left: 14px !important;
    padding-right: 14px !important;
}

.trademark-editor .k-tabstrip-items .k-link {
    padding: 9px 11px 8px !important;
}

/* 탭 본문 외곽 마진 축소 */
.trademark-editor .editor-tab-panel {
    padding: 12px 18px 14px !important;
}

/* 섹션 제목이 입력영역과 지나치게 멀어지지 않도록 축소 */
.trademark-editor .form-section-title {
    margin: 0 0 9px !important;
    padding-bottom: 6px !important;
    font-size: 13px !important;
}

.trademark-editor .form-section-title:not(:first-child) {
    margin-top: 16px !important;
}

/* 필드 간격 축소: 충분한 구분은 유지하되 현재처럼 넓지 않게 */
.trademark-editor .editor-form-grid {
    gap: 10px 16px !important;
    padding: 0 2px 5px !important;
}

.trademark-editor .editor-field {
    gap: 4px !important;
}

/* 큰 텍스트 영역도 한 단계 낮춤 */
.trademark-editor .editor-field>textarea {
    min-height: 64px !important;
    padding: 7px 9px !important;
    font-family: inherit;
    font-size: 12px;
    line-height: 1.45;
}

/* workflow 안내가 표시될 때도 외곽 여백을 작게 */
.trademark-editor .workflow-notice {
    margin: 8px 14px 5px !important;
    padding: 8px 10px !important;
}

/* --------------------------------------------------------------------------
 * 하단 버튼 그룹
 * -------------------------------------------------------------------------- */
.trademark-editor .editor-footer {
    min-height: 44px !important;
    padding: 5px 14px !important;
    gap: 10px !important;
}

.trademark-editor .editor-footer .toolbar-actions {
    gap: 6px !important;
    margin: 0 !important;
}

.trademark-editor .editor-footer .primary-button,
.trademark-editor .editor-footer .secondary-button,
.trademark-editor .editor-footer .danger-button {
    min-height: 32px !important;
    height: 32px !important;
    padding: 0 12px !important;
    border-radius: 5px !important;
    font-size: 12px !important;
}

/* 보조 Grid 제목/버튼 그룹 간격도 축소 */
.trademark-editor .sub-grid-heading {
    margin: 14px 0 7px !important;
}

.trademark-editor .file-toolbar {
    margin: 7px 0 10px !important;
    gap: 6px !important;
}


/* ==========================================================================
 * v0.6.7 - Kendo Window title bar compact
 * ========================================================================== */

/* 상표 등록/수정 팝업 상단 제목바 높이와 여백 축소 */
.k-window .k-window-titlebar {
    box-sizing: border-box;
    min-height: 36px !important;
    height: 36px !important;
    padding: 0 10px !important;
}

.k-window .k-window-titlebar .k-window-title {
    height: 36px !important;
    line-height: 36px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

/* 우측 최대화/닫기 버튼도 36px 제목바 중앙에 정렬 */
.k-window .k-window-titlebar .k-window-actions {
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;
    margin: 0 !important;
}

.k-window .k-window-titlebar .k-window-action {
    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 제목 바로 아래 콘텐츠와의 불필요한 공백 방지 */
.k-window .trademark-editor.k-window-content,
.k-window .k-window-content.trademark-editor {
    padding-top: 0 !important;
}


/* ==========================================================================
 * v0.6.8 - Trademark editor alignment
 * 탭 / 본문 / 안내 / footer를 동일한 좌우 기준선으로 정렬
 * ========================================================================== */

.trademark-editor {
    --editor-gutter: 12px;
}

/* TabStrip 자체의 불필요한 외곽 여백 제거 */
.trademark-editor .k-tabstrip,
.trademark-editor .k-tabstrip-wrapper {
    margin: 0 !important;
    padding: 0 !important;
}

/* 상단 탭도 본문과 동일한 좌우 기준선 사용 */
.trademark-editor .k-tabstrip-items {
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 var(--editor-gutter) !important;
}

.trademark-editor .k-tabstrip-items .k-link {
    padding: 7px 10px 7px !important;
    font-size: 12px !important;
}

/* 탭 아래 콘텐츠 영역 */
.trademark-editor .editor-tab-panel,
.trademark-editor .k-tabstrip>.k-content.editor-tab-panel {
    box-sizing: border-box;
    margin: 0 !important;
    padding: 10px var(--editor-gutter) 11px !important;
}

/* 폼 자체에 별도 안쪽 padding을 두지 않아 좌우 기준선을 정확히 맞춤 */
.trademark-editor .editor-form-grid {
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 !important;
    gap: 8px 12px !important;
}

/* 섹션 타이틀도 동일 기준 */
.trademark-editor .form-section-title {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 7px !important;
}

/* 저장 전 안내문도 본문과 동일한 좌우선 */
.trademark-editor .workflow-notice {
    margin: 6px var(--editor-gutter) 4px !important;
    padding: 7px 9px !important;
}

/* 하단 footer를 입력영역 좌우 끝과 정확히 맞춤 */
.trademark-editor .editor-footer {
    box-sizing: border-box;
    min-height: 51px !important;
    margin: auto 0 0 !important;
    padding: 12px var(--editor-gutter) 7px !important;
    border-top: 1px solid #d7dee8 !important;
    background: #f8fafc !important;
    box-shadow: 0 -4px 12px rgba(35, 52, 76, .08) !important;
}

/* 오른쪽 버튼 끝 = 위 입력박스 오른쪽 끝 */
.trademark-editor .editor-footer .toolbar-actions {
    margin: 0 !important;
    padding: 0 !important;
    gap: 5px !important;
}

.trademark-editor .editor-footer .editor-message {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    min-height: 30px;
    margin: 0;
    line-height: 1.3;
}

/* 버튼도 살짝 더 컴팩트 */
.trademark-editor .editor-footer .primary-button,
.trademark-editor .editor-footer .secondary-button,
.trademark-editor .editor-footer .danger-button {
    min-height: 30px !important;
    height: 30px !important;
    padding: 0 11px !important;
}

/* 상세 보기의 삭제는 보조 동작으로 두고, 위험 색상은 의도적인 hover에서만 강조한다. */
.trademark-editor #deleteTrademarkButton {
    border-color: #cbd3df;
    background: #fff;
    color: #687386;
}

.trademark-editor #deleteTrademarkButton:hover,
.trademark-editor #deleteTrademarkButton:focus-visible {
    border-color: #d88989;
    background: #fff7f7;
    color: #b83232;
}

.trademark-editor .editor-footer .secondary-button:hover,
.trademark-editor .editor-footer .secondary-button:focus-visible {
    border-color: #8fb3dc;
    background: #f2f8ff;
    color: #2468a2;
}

/* 보조 영역도 같은 그리드 감각으로 */
.trademark-editor .selected-app-panel {
    margin: 12px 0 0 !important;
    padding: 12px !important;
}

.trademark-editor .sub-grid-heading {
    margin: 11px 0 6px !important;
}

.trademark-editor .file-toolbar {
    margin: 6px 0 8px !important;
}


/* ==========================================================================
 * v0.6.9 - Requester grid / detail binding polish
 * ========================================================================== */

/*
 * 의뢰인 Grid는 popup 내부에서 별도 세로 스크롤이 필요하지 않으므로
 * scrollable=false와 함께 하나의 table 기준으로 폭을 맞춘다.
 */
#requesterGrid {
    width: 100%;
}

#requesterGrid table {
    width: 100% !important;
    table-layout: fixed !important;
}

#requesterGrid th.k-header,
#requesterGrid td {
    box-sizing: border-box;
    text-align: center !important;
    vertical-align: middle !important;
}

#requesterGrid th.k-header {
    padding: 6px 7px !important;
}

#requesterGrid td {
    padding: 5px 7px !important;
}

#requesterGrid .k-edit-cell {
    padding: 2px 4px !important;
}

#requesterGrid .k-edit-cell input,
#requesterGrid .k-edit-cell .k-dropdown,
#requesterGrid .k-edit-cell .k-dropdownlist {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Grid의 편집 command 버튼도 셀 가운데 배치 */
#requesterGrid .k-command-cell {
    text-align: center !important;
    white-space: nowrap;
}

#requesterGrid .k-command-cell .k-button {
    margin: 0 !important;
}

/* 메인 Grid 날짜 문자열이 길게 튀어나오지 않도록 */
#trademarkGrid td {
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ==========================================================================
 * v0.6.10 - Definitive Kendo override
 * 중요: commu-base.css는 Kendo Theme 뒤에 로드되어야 한다.
 * ========================================================================== */

.grid-center,
#trademarkGrid .grid-center,
#trademarkGrid th.grid-center,
#trademarkGrid td.grid-center {
    text-align: center !important;
    vertical-align: middle !important;
}

/*
 * 의뢰인 Grid Header/Body 컬럼을 완전히 동일한 colgroup 비율로 고정.
 * Kendo column width 계산에 맡기지 않는다.
 */
#requesterGrid .k-grid-header table,
#requesterGrid .k-grid-content table,
#requesterGrid>table {
    width: 100% !important;
    table-layout: fixed !important;
}

#requesterGrid colgroup col:nth-child(1) {
    width: 12% !important;
}

#requesterGrid colgroup col:nth-child(2) {
    width: 23% !important;
}

#requesterGrid colgroup col:nth-child(3) {
    width: 16% !important;
}

#requesterGrid colgroup col:nth-child(4) {
    width: 12% !important;
}

#requesterGrid colgroup col:nth-child(5) {
    width: 16% !important;
}

#requesterGrid colgroup col:nth-child(6) {
    width: 9% !important;
}

#requesterGrid colgroup col:nth-child(7) {
    width: 12% !important;
}

#requesterGrid th,
#requesterGrid td {
    box-sizing: border-box !important;
    text-align: center !important;
    vertical-align: middle !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

#requesterGrid .k-grid-header,
#requesterGrid .k-grid-content {
    overflow: visible !important;
}

#requesterGrid .k-grid-content {
    width: 100% !important;
}

/* 편집 셀의 input도 column 폭을 넘지 않는다. */
#requesterGrid .k-edit-cell input,
#requesterGrid .k-edit-cell .k-dropdown,
#requesterGrid .k-edit-cell .k-dropdownlist,
#requesterGrid .k-edit-cell .k-widget {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* 메인 Grid는 컬럼별 중앙정렬을 우선하고 긴 문자열은 말줄임. */
#trademarkGrid .k-grid-header th,
#trademarkGrid .k-grid-content td {
    box-sizing: border-box !important;
    vertical-align: middle !important;
}

#trademarkGrid .k-grid-content td {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* Column Menu 버튼 공간을 감안해 제목 자체는 정확히 중앙에 보이도록 */
#trademarkGrid th.k-header>.k-link {
    text-align: center !important;
}

/* Kendo Dropdown 표시 텍스트 강제 동일화 */
.trademark-editor .k-dropdown-wrap .k-input,
.trademark-editor .k-dropdownlist .k-input {
    font-size: 12px !important;
    line-height: 32px !important;
    font-weight: 400 !important;
}


/* ==========================================================================
 * v0.6.11 - Kendo Grid inline edit spacing / legacy label cleanup
 * ========================================================================== */

/*
 * Kendo incell 편집 시 input/select가 셀 경계에 붙지 않도록
 * 모든 업무 Grid에 동일한 내부 여백을 적용한다.
 */
.k-grid .k-edit-cell {
    box-sizing: border-box !important;
    padding: 3px 6px !important;
}

.k-grid .k-edit-cell>input:not([type="checkbox"]):not([type="radio"]),
.k-grid .k-edit-cell>select,
.k-grid .k-edit-cell>textarea,
.k-grid .k-edit-cell>.k-widget,
.k-grid .k-edit-cell>.k-dropdown,
.k-grid .k-edit-cell>.k-dropdownlist {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

/* 일반 textbox 편집 시 좌우 텍스트 여백 확보 */
.k-grid .k-edit-cell>input:not([type="checkbox"]):not([type="radio"]) {
    min-height: 28px !important;
    padding: 3px 8px !important;
    border: 1px solid #cfd7e3 !important;
    border-radius: 3px !important;
}

/* requester Grid는 공통 규칙보다 한 단계 더 안정적으로 */
#requesterGrid .k-edit-cell {
    padding: 3px 6px !important;
}

#requesterGrid .k-edit-cell input {
    padding-left: 8px !important;
    padding-right: 8px !important;
}

/* 일반 표시 셀도 너무 붙어 보이지 않게 일정한 좌우 여백 유지 */
#requesterGrid td {
    padding-left: 8px !important;
    padding-right: 8px !important;
}


/* ==========================================================================
 * v0.6.12 - Requester Grid equal columns / text delete button
 * ========================================================================== */

/*
 * 의뢰인 Grid는 7개 컬럼을 모두 동일한 폭으로 사용한다.
 * Header / Body / 편집 상태 모두 같은 colgroup을 공유한다.
 */
#requesterGrid table,
#requesterGrid .k-grid-header table,
#requesterGrid .k-grid-content table {
    width: 100% !important;
    table-layout: fixed !important;
}

#requesterGrid colgroup col:nth-child(1),
#requesterGrid colgroup col:nth-child(2),
#requesterGrid colgroup col:nth-child(3),
#requesterGrid colgroup col:nth-child(4),
#requesterGrid colgroup col:nth-child(5),
#requesterGrid colgroup col:nth-child(6),
#requesterGrid colgroup col:nth-child(7) {
    width: 14.285714% !important;
}

#requesterGrid th.k-header,
#requesterGrid td {
    box-sizing: border-box !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    text-align: center !important;
    vertical-align: middle !important;
}

/*
 * 편집 input은 셀 안쪽에서 좌우 4px 정도 여백이 추가로 보이게 한다.
 */
#requesterGrid .k-edit-cell {
    box-sizing: border-box !important;
    padding: 3px 6px !important;
}

#requesterGrid .k-edit-cell>input:not([type="checkbox"]):not([type="radio"]),
#requesterGrid .k-edit-cell>select,
#requesterGrid .k-edit-cell>.k-widget {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

/* ========================================================================== 
 * v0.6.13 - Main Trademark Grid exact column alignment
 * ========================================================================== */

/*
 * 메인 상표 Grid는 Header/Body가 동일한 14개 컬럼 비율을 사용한다.
 * Kendo가 계산한 px width에 의존하지 않고 colgroup을 동일 비율로 강제한다.
 *
 *  1 관리       7%
 *  2 사건번호   7%
 *  3 상표명    11%
 *  4 상표형태   7%
 *  5 적용제품   9%
 *  6 의뢰번호   7%
 *  7 의뢰제목  10%
 *  8 상품류     6%
 *  9 국가수     4%
 * 10 출원수     4%
 * 11 사건상태   9%
 * 12 담당자     6%
 * 13 다음기한   6%
 * 14 최종수정일 7%
 *             = 100%
 */
#trademarkGrid table,
#trademarkGrid .k-grid-header table,
#trademarkGrid .k-grid-content table {
    width: 100% !important;
    table-layout: fixed !important;
}

#trademarkGrid colgroup col:nth-child(1) {
    width: 7% !important;
}

#trademarkGrid colgroup col:nth-child(2) {
    width: 7% !important;
}

#trademarkGrid colgroup col:nth-child(3) {
    width: 11% !important;
}

#trademarkGrid colgroup col:nth-child(4) {
    width: 7% !important;
}

#trademarkGrid colgroup col:nth-child(5) {
    width: 9% !important;
}

#trademarkGrid colgroup col:nth-child(6) {
    width: 7% !important;
}

#trademarkGrid colgroup col:nth-child(7) {
    width: 10% !important;
}

#trademarkGrid colgroup col:nth-child(8) {
    width: 6% !important;
}

#trademarkGrid colgroup col:nth-child(9) {
    width: 4% !important;
}

#trademarkGrid colgroup col:nth-child(10) {
    width: 4% !important;
}

#trademarkGrid colgroup col:nth-child(11) {
    width: 9% !important;
}

#trademarkGrid colgroup col:nth-child(12) {
    width: 6% !important;
}

#trademarkGrid colgroup col:nth-child(13) {
    width: 6% !important;
}

#trademarkGrid colgroup col:nth-child(14) {
    width: 7% !important;
}

/* 전 화면 표의 헤더와 데이터 행 높이를 동일한 기준으로 통일합니다. */
body .k-grid .k-grid-header th,
body .k-grid .k-grid-header tr,
body .k-grid tbody tr,
body .k-grid tbody td {
    box-sizing: border-box !important;
    height: 30px !important;
}

body .k-grid .k-grid-header th,
body .k-grid tbody td {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    vertical-align: middle !important;
}

.dashboard-table thead tr,
.dashboard-table tbody tr,
.dashboard-table th,
.dashboard-table td,
.process-application-grid thead tr,
.process-application-grid tbody tr,
.process-application-grid th,
.process-application-grid td,
.selected-application-class-grid thead tr,
.selected-application-class-grid tbody tr,
.selected-application-class-grid th,
.selected-application-class-grid td {
    box-sizing: border-box !important;
    height: 30px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    vertical-align: middle !important;
}

/* ==========================================================================
 * v1.0.10 - 6~9단계 국가별 출원 마스터/상세 공통 화면
 * ========================================================================== */

.process-application-workspace {
    display: grid;
    grid-template-columns: minmax(410px, 36%) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.process-application-sidebar {
    position: sticky;
    top: 0;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid #d8e1ed;
    border-radius: 8px;
    background: #f8faff;
}

.process-application-sidebar-title {
    padding: 11px 12px;
    border-bottom: 1px solid #d8e1ed;
    color: #263750;
    background: #eef3fa;
    font-size: 13px;
    font-weight: 700;
}

.process-application-list {
    min-width: 0;
    overflow: auto;
    box-sizing: border-box;
}

.process-application-grid {
    width: 100%;
    min-width: 400px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    color: #34435a;
    background: #fff;
    font-size: 11px;
}

.process-application-grid col.country { width: 17%; }
.process-application-grid col.number { width: 25%; }
.process-application-grid col.status { width: 20%; }
.process-application-grid col.date { width: 22%; }
.process-application-grid col.classes { width: 16%; }

.process-application-grid th {
    position: sticky;
    top: 0;
    z-index: 1;
    height: 24px;
    padding: 2px 4px;
    border-right: 1px solid #d8e1ed;
    border-bottom: 1px solid #d8e1ed;
    color: #536279;
    background: #f2f5f9;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.process-application-filter-row th {
    top: 24px;
    height: 26px;
    padding: 2px 3px;
    background: #f8faff;
}

.process-application-filter {
    width: 100%;
    height: 20px;
    padding: 2px 5px;
    border: 1px solid #cbd5e2;
    border-radius: 3px;
    color: #34435a;
    background: #fff;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 10px;
}

.process-application-sort {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 100%;
    height: 20px;
    padding: 0 2px;
    border: 0;
    color: #536279;
    background: transparent;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.process-application-sort span {
    min-width: 7px;
    color: #3b6fd8;
    font-size: 7px;
}

.process-application-sort:hover,
.process-application-sort:focus-visible,
.process-application-sort.is-active {
    color: #285fb8;
    outline: none;
}

.process-application-filter:focus {
    border-color: #6f94df;
    outline: 1px solid #6f94df;
}

.process-application-grid td {
    height: 28px;
    padding: 4px 6px;
    border-right: 1px solid #e5eaf1;
    border-bottom: 1px solid #e5eaf1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.process-application-grid th:last-child,
.process-application-grid td:last-child {
    border-right: 0;
}

.process-application-row {
    cursor: pointer;
}

.process-application-row:hover td,
.process-application-row:focus-visible td {
    background: #f2f6ff;
}

.process-application-row:focus-visible {
    outline: 2px solid #6f94df;
    outline-offset: -2px;
}

.process-application-row.is-active td {
    color: #173f95;
    background: #eaf1ff;
}

.process-application-row.is-active td:first-child {
    box-shadow: inset 3px 0 0 #3b6fd8;
    font-weight: 700;
}

.process-application-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 32px;
    padding: 3px 7px;
    border-top: 1px solid #d8e1ed;
    color: #6c798c;
    background: #f8faff;
    box-sizing: border-box;
    font-size: 10px;
}

.process-application-pager>div {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 3px;
}

.process-application-page-button {
    min-width: 25px;
    height: 23px;
    padding: 0 5px;
    border: 1px solid #cbd5e2;
    border-radius: 3px;
    color: #536279;
    background: #fff;
    cursor: pointer;
}

.process-application-page-button.is-active {
    border-color: #3b6fd8;
    color: #fff;
    background: #3b6fd8;
}

.process-application-item {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 3px;
    padding: 10px 11px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #34435a;
    background: #fff;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
}

.process-application-item:hover,
.process-application-item:focus-visible {
    border-color: #aabfe8;
    background: #f2f6ff;
    outline: none;
}

.process-application-item.is-active {
    border-color: #3b6fd8;
    color: #173f95;
    background: #eaf1ff;
    box-shadow: inset 3px 0 0 #3b6fd8;
}

.process-application-item strong,
.process-application-number,
.process-application-meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.process-application-item strong {
    font-size: 13px;
}

.process-application-number {
    color: #3f5068;
    font-size: 12px;
}

.process-application-meta {
    color: #7a8798;
    font-size: 11px;
}

.process-application-list-empty {
    padding: 24px 8px;
    color: #7a8798;
    font-size: 11px;
    line-height: 1.6;
    text-align: center;
}

.selected-application-summary {
    padding: 0;
    border-top: 5px solid #eef2f7;
    background: #fff;
    color: #40516a;
    font-size: 11px;
}

.selected-application-summary p {
    margin: 0;
    color: #7a8798;
}

.selected-application-detail-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #d8e1ed;
    color: #263750;
    background: #eef3fa;
}

.selected-application-detail-title span {
    overflow: hidden;
    color: #64738a;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.selected-application-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 7px 12px;
}

@media (max-width: 1050px) {
    .selected-application-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.selected-application-field {
    min-width: 0;
    padding: 6px 4px;
}

.selected-application-field span,
.selected-application-remarks>span {
    display: block;
    margin-bottom: 3px;
    color: #7a8798;
    font-size: 10px;
}

.selected-application-field strong {
    display: block;
    overflow: hidden;
    color: #263750;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.selected-application-remarks {
    padding: 2px 16px 12px;
}

.selected-application-remarks p {
    min-height: 30px;
    padding: 7px;
    border: 1px solid #e1e6ed;
    background: #fbfcfe;
    white-space: pre-wrap;
}

.selected-application-class-title {
    padding: 9px 12px;
    border-top: 1px solid #d8e1ed;
    border-bottom: 1px solid #d8e1ed;
    color: #263750;
    background: #f8faff;
    font-weight: 700;
}

.selected-application-class-wrap {
    max-height: 150px;
    overflow-x: hidden;
    overflow-y: auto;
}

.selected-application-class-grid {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.selected-application-class-grid th,
.selected-application-class-grid td {
    box-sizing: border-box;
    padding: 7px;
    border-right: 1px solid #e1e6ed;
    border-bottom: 1px solid #e1e6ed;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.selected-application-class-grid th {
    color: #59677b;
    background: #f5f7fa;
    text-align: center;
}

.selected-application-class-grid th:first-child { width: 18%; }
.selected-application-class-grid th:nth-child(2) { width: 54%; }
.selected-application-class-grid th:last-child { width: 28%; }

.selected-application-empty {
    color: #7a8798;
    text-align: center;
}

.selected-application-summary dl {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 6px 8px;
    margin: 0;
}

.selected-application-summary dt {
    color: #7a8798;
}

.selected-application-summary dd {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #263750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oa-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.oa-section-heading .stage-description {
    margin-bottom: 10px;
}

.oa-section-heading>.secondary-button,
.oa-section-actions>.secondary-button {
    min-height: 28px;
    height: 28px;
    padding: 0 10px;
    border-radius: 5px;
    font-size: 11px;
    line-height: 26px;
}

.oa-section-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dispute-procedure-guide {
    max-height: calc(90vh - 90px);
    overflow-y: auto;
    padding: 20px 22px;
    color: #3f4d61;
    font-size: 13px;
    line-height: 1.55;
}

.dispute-guide-fields {
    margin-top: 20px;
}

.dispute-guide-fields h3 {
    margin: 0 0 8px;
    color: #263750;
    font-size: 14px;
}

.dispute-guide-fields dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    overflow: hidden;
    border: 1px solid #d8e1ed;
    border-radius: 6px;
    background: #d8e1ed;
}

.dispute-guide-fields dl>div {
    padding: 10px 12px;
    background: #fff;
}

.dispute-guide-fields dl>.guide-field-wide {
    grid-column: 1 / -1;
}

.dispute-guide-fields dt {
    color: #294f91;
    font-weight: 700;
}

.dispute-guide-fields dt em {
    margin-left: 4px;
    color: #d14343;
    font-size: 10px;
    font-style: normal;
}

.dispute-guide-fields dd {
    margin: 3px 0 0;
    color: #5f6d80;
    font-size: 12px;
}

.dispute-result-guide {
    margin: 7px 0 0;
    padding-left: 18px;
}

.dispute-result-guide li+li {
    margin-top: 4px;
}

.dispute-result-guide strong {
    color: #3c526f;
}

.dispute-guide-intro,
.dispute-guide-note,
.dispute-guide-register p,
.dispute-guide-steps p {
    margin: 0;
}

.dispute-guide-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 16px 0;
    padding: 14px;
    border-radius: 7px;
    background: #f2f6fc;
}

.dispute-guide-flow span {
    padding: 7px 10px;
    border: 1px solid #bfd0e8;
    border-radius: 5px;
    color: #294f91;
    background: #fff;
    font-weight: 700;
}

.dispute-guide-flow i {
    color: #71829a;
    font-style: normal;
}

.dispute-guide-steps {
    margin: 0;
    padding-left: 22px;
}

.dispute-guide-steps li+li {
    margin-top: 10px;
}

.dispute-guide-register {
    margin-top: 16px;
    padding: 12px 14px;
    border-left: 3px solid #3b6fd8;
    background: #f7f9fc;
}

.dispute-guide-note {
    margin-top: 12px;
    color: #718096;
    font-size: 11px;
}

.office-action-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.office-action-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 10px;
    padding: 10px 12px;
    border: 1px solid #d8e1ed;
    border-radius: 6px;
    color: #536279;
    background: #fff;
    font-family: inherit;
    font-size: 11px;
    text-align: left;
    cursor: pointer;
}

.office-action-item:hover,
.office-action-item:focus-visible {
    border-color: #9db5e3;
    outline: none;
}

.office-action-item.is-active {
    border-color: #3b6fd8;
    background: #eef4ff;
    box-shadow: inset 3px 0 0 #3b6fd8;
}

.office-action-item strong {
    color: #263750;
    font-size: 12px;
}

.history-card-item strong,
.history-card-item span {
    grid-column: 1 / -1;
}

.office-action-item em {
    grid-column: 2;
    grid-row: 1;
    color: #3463bd;
    font-style: normal;
}

.office-action-list-empty {
    grid-column: 1 / -1;
    padding: 22px;
    border: 1px dashed #cad5e4;
    border-radius: 6px;
    color: #7a8798;
    background: #fbfcfe;
    text-align: center;
}


.process-stage-detail {
    min-width: 0;
}

.process-stage-detail.is-disabled {
    opacity: .58;
    pointer-events: none;
}

@media (max-width: 900px) {
    .process-application-workspace {
        grid-template-columns: minmax(0, 1fr);
    }

    .process-application-sidebar {
        position: static;
    }

    .process-application-list {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        max-height: 190px;
    }
}

#trademarkGrid th.k-header,
#trademarkGrid td {
    box-sizing: border-box !important;
    text-align: center !important;
    vertical-align: middle !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/*
 * header의 column menu 공간까지 포함해도 column border 위치가 변하지 않도록 한다.
 */
#trademarkGrid th.k-header {
    position: relative;
    padding-left: 6px !important;
    padding-right: 24px !important;
}

#trademarkGrid th.k-header>.k-link {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    text-align: center !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/*
 * Kendo command 대신 사용하는 명시적 수정/삭제 텍스트 버튼.
 */
#trademarkGrid .trademark-grid-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
}

#trademarkGrid .trademark-grid-action {
    box-sizing: border-box;
    min-width: 42px;
    height: 26px;
    padding: 0 7px;
    margin: 0;
    border: 1px solid #cfd6e1;
    border-radius: 3px;
    background: #fff;
    color: #3e4b5f;
    font-family: inherit;
    font-size: 11px;
    line-height: 24px;
    text-align: center;
    cursor: pointer;
}

#trademarkGrid .trademark-grid-action:hover {
    border-color: #aeb8c7;
    background: #f5f7fa;
}

#trademarkGrid .trademark-grid-action.danger {
    color: #c33131;
}

#trademarkGrid .trademark-grid-action.danger:hover {
    border-color: #e4aaaa;
    background: #fff5f5;
}

/*
 * scrollable:false 기준: 본문을 별도 scroll table로 만들지 않아
 * header/body column border의 1px 차이를 제거한다.
 */
#trademarkGrid .k-grid-content {
    overflow: visible !important;
}

/* 기존 command-cell 스타일 영향 제거 */
#trademarkGrid .k-command-cell {
    padding: 0 !important;
}


/* ==========================================================================
 * v0.6.15 - Global search / compact grid action
 * ========================================================================== */

/* --------------------------------------------------------------------------
 * 상단 통합검색
 * -------------------------------------------------------------------------- */
.header-search {
    position: relative;
}

.header-search input {
    box-sizing: border-box;
    padding-right: 42px !important;
}

.header-search-button {
    position: absolute;
    top: 50%;
    right: 4px;
    width: 32px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #536176;
    cursor: pointer;
    transform: translateY(-50%);
}

.header-search-button:hover {
    background: #eef3fb;
    color: #2457d6;
}

/* --------------------------------------------------------------------------
 * 모든 content-card Grid: pager 뒤 의미 없는 빈 영역 제거
 * -------------------------------------------------------------------------- */
.grid-card>.k-grid {
    min-height: 0 !important;
    height: auto !important;
}

.grid-card>.k-grid .k-grid-content {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

/* --------------------------------------------------------------------------
 * 상표 메인 Grid 작업 컬럼
 * -------------------------------------------------------------------------- */
#trademarkGrid .trademark-grid-actions {
    gap: 3px !important;
}

#trademarkGrid .trademark-grid-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    width: 26px !important;
    height: 26px !important;
    padding: 0 !important;
    border: 1px solid #d1d7e1 !important;
    border-radius: 4px !important;
    background: #fff !important;
    color: #526075 !important;
    line-height: 1 !important;
}

#trademarkGrid .trademark-grid-action .k-icon {
    margin: 0 !important;
}

#trademarkGrid .trademark-grid-action:hover {
    border-color: #aeb8c7 !important;
    background: #f4f7fb !important;
    color: #2457d6 !important;
}

#trademarkGrid .trademark-grid-action.danger {
    color: #657184 !important;
}

#trademarkGrid .trademark-grid-action.danger:hover {
    border-color: #e4aaaa !important;
    background: #fff5f5 !important;
    color: #cf3333 !important;
}

/*
 * 작업 컬럼을 5%로 축소하고 상표명/의뢰제목에 공간을 배분.
 * 합계 100%.
 */
#trademarkGrid colgroup col:nth-child(1) {
    width: 5% !important;
}

#trademarkGrid colgroup col:nth-child(2) {
    width: 7% !important;
}

#trademarkGrid colgroup col:nth-child(3) {
    width: 12% !important;
}

#trademarkGrid colgroup col:nth-child(4) {
    width: 7% !important;
}

#trademarkGrid colgroup col:nth-child(5) {
    width: 9% !important;
}

#trademarkGrid colgroup col:nth-child(6) {
    width: 7% !important;
}

#trademarkGrid colgroup col:nth-child(7) {
    width: 11% !important;
}

#trademarkGrid colgroup col:nth-child(8) {
    width: 6% !important;
}

#trademarkGrid colgroup col:nth-child(9) {
    width: 4% !important;
}

#trademarkGrid colgroup col:nth-child(10) {
    width: 4% !important;
}

#trademarkGrid colgroup col:nth-child(11) {
    width: 9% !important;
}

#trademarkGrid colgroup col:nth-child(12) {
    width: 6% !important;
}

#trademarkGrid colgroup col:nth-child(13) {
    width: 6% !important;
}

#trademarkGrid colgroup col:nth-child(14) {
    width: 7% !important;
}

/* --------------------------------------------------------------------------
 * 통합 사건 Grid
 * -------------------------------------------------------------------------- */
#ipCaseGrid {
    min-height: 0 !important;
}

#ipCaseGrid .k-grid-content {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
}

#ipCaseGrid th.k-header,
#ipCaseGrid td {
    box-sizing: border-box;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#ipCaseGrid .empty-state {
    padding: 18px 10px;
    text-align: center;
}

.ipcase-search-card { margin-bottom:14px; padding:12px 14px; }
.ipcase-search-fields { display:grid; grid-template-columns:minmax(280px,1fr) 150px 180px auto auto; align-items:end; gap:9px; }
.ipcase-search-fields label { display:grid; gap:4px; color:#65738a; font-size:10px; font-weight:700; }
.ipcase-search-fields input,.ipcase-search-fields select { box-sizing:border-box; width:100%; height:32px; padding:0 9px; border:1px solid #cfd7e3; border-radius:5px; background:#fff; color:#34435a; font-size:11px; }
.ipcase-search-fields button { height:32px; min-height:32px; padding:0 13px; font-size:11px; }
.ipcase-view-tabs { display:flex; gap:4px; padding:10px 12px 0; border-top:1px solid #e5eaf1; }
.ipcase-view-tab { min-width:90px; height:29px; padding:0 12px; border:1px solid #cfd7e3; border-bottom:0; border-radius:5px 5px 0 0; background:#f5f7fa; color:#65738a; font-size:11px; font-weight:700; cursor:pointer; }
.ipcase-view-tab.is-active { border-color:#7fa4de; background:#fff; color:#2f6fc5; }
.ipcase-view-panel a.js-ipcase-detail,
.ipcase-view-panel a.js-ipapplication-detail,
.dashboard-case-link { color:#2369bd; text-decoration:underline; text-underline-offset:2px; font-weight:600; }
.ipcase-view-panel a.js-ipcase-detail:hover,
.ipcase-view-panel a.js-ipapplication-detail:hover,
.dashboard-case-link:hover { color:#164d91; }
#ipCaseKeywordSummary.is-filtered { display:inline-flex; align-items:center; min-height:22px; padding:0 9px; border:1px solid #b9d0ef; border-radius:11px; background:#eef5ff; color:#245faa; font-weight:700; }
.has-commu-detail-overlay { overflow:hidden; }
.commu-detail-overlay { display:none; position:fixed; inset:0; z-index:10000; background:transparent; }
.commu-detail-overlay.is-open { display:block; }
.commu-detail-overlay-frame { width:100%; height:100%; border:0; background:transparent; }
html.embedded-trademark-detail-root,
body.embedded-trademark-detail { overflow:hidden; background:transparent !important; }
body.embedded-trademark-detail .app-shell { display:none; }
#ipApplicationGrid { min-height:0!important; }
#ipApplicationGrid .k-grid-content { height:auto!important; min-height:0!important; overflow:visible!important; }
@media(max-width:1000px){.ipcase-search-fields{grid-template-columns:1fr 1fr}.ipcase-search-fields label:first-child{grid-column:1/-1}}


/* ==========================================================================
 * v0.7.0 - Trademark lifecycle / image / aligned sub-grids
 * ========================================================================== */

.field-auto-badge {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 5px;
    border-radius: 9px;
    background: #eef3ff;
    color: #3d61b3;
    font-size: 10px;
    font-weight: 600;
}

.trademark-representative-image-field {
    margin-top: 2px;
}

.representative-image-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-height: 92px;
    padding: 10px;
    border: 1px solid #e0e6ef;
    border-radius: 6px;
    background: #fafcff;
}

.trademark-image-gallery {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    gap: 10px;
    min-width: 0;
}

.trademark-image-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 5px;
    width: auto;
    min-width: 0;
    padding: 7px;
    border: 1px solid #d7deea;
    border-radius: 6px;
    background: #fff;
}

.trademark-image-card.is-representative {
    border-color: #6d9ee8;
    box-shadow: 0 0 0 2px rgba(36, 104, 162, .1);
}

.trademark-image-card .representative-image-preview {
    grid-column: 1 / -1;
    width: 100%;
    box-sizing: border-box;
}

.trademark-image-name {
    grid-column: 1 / -1;
    overflow: hidden;
    color: #536176;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.representative-image-badge {
    align-self: center;
    color: #2468a2;
    font-size: 10px;
    font-weight: 700;
}

.image-card-action {
    min-height: 25px;
    padding: 3px 6px;
    font-size: 10px;
}

.image-delete-action {
    color: #7a5960;
}

.representative-image-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 76px;
    overflow: hidden;
    border: 1px solid #d7deea;
    border-radius: 5px;
    background: #fff;
}

.representative-image-preview img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.representative-image-preview.is-clickable {
    cursor: zoom-in;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.representative-image-preview.is-clickable:hover,
.representative-image-preview.is-clickable:focus-visible {
    border-color: #8fb3dc;
    box-shadow: 0 0 0 3px rgba(36, 104, 162, .1);
    outline: 0;
}

.representative-image-empty {
    color: #8a95a6;
    font-size: 11px;
}

.representative-image-actions {
    display: flex;
    width: 100%;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.representative-image-actions input[type="file"] {
    width: 300px;
    max-width: 100%;
    height: 32px;
    min-height: 32px;
    padding: 0 6px;
    box-sizing: border-box;
    font-size: 11px;
    line-height: 30px;
}

.representative-image-actions input[type="file"]::file-selector-button {
    height: 30px;
    margin: 0 9px 0 0;
    padding: 0 10px;
    border: 0;
    border-right: 1px solid #d7dce5;
    background: #fff;
    color: #3f4758;
    font: inherit;
    font-weight: 700;
    line-height: 30px;
    vertical-align: middle;
    cursor: pointer;
}

.representative-image-actions .form-help {
    flex-basis: 100%;
    margin-top: 0;
}

@media (max-width: 900px) {
    .trademark-image-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .trademark-image-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 메인 목록: 작업 + 이미지 + 13개 업무 컬럼 = 15개. 합계 100%. */
#trademarkGrid colgroup col:nth-child(1) {
    width: 5% !important;
}

#trademarkGrid colgroup col:nth-child(2) {
    width: 6% !important;
}

#trademarkGrid colgroup col:nth-child(3) {
    width: 7% !important;
}

#trademarkGrid colgroup col:nth-child(4) {
    width: 11% !important;
}

#trademarkGrid colgroup col:nth-child(5) {
    width: 7% !important;
}

#trademarkGrid colgroup col:nth-child(6) {
    width: 8% !important;
}

#trademarkGrid colgroup col:nth-child(7) {
    width: 7% !important;
}

#trademarkGrid colgroup col:nth-child(8) {
    width: 9% !important;
}

#trademarkGrid colgroup col:nth-child(9) {
    width: 5% !important;
}

#trademarkGrid colgroup col:nth-child(10) {
    width: 4% !important;
}

#trademarkGrid colgroup col:nth-child(11) {
    width: 4% !important;
}

#trademarkGrid colgroup col:nth-child(12) {
    width: 9% !important;
}

#trademarkGrid colgroup col:nth-child(13) {
    width: 6% !important;
}

#trademarkGrid colgroup col:nth-child(14) {
    width: 6% !important;
}

#trademarkGrid colgroup col:nth-child(15) {
    width: 6% !important;
}

.tm-grid-image-button {
    width: 44px;
    height: 32px;
    padding: 1px;
    border: 1px solid #d8dee8;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}

.tm-grid-thumbnail {
    display: block;
    width: 40px;
    height: 28px;
    object-fit: contain;
    margin: 0 auto;
}

.tm-grid-image-loading,
.tm-grid-image-empty {
    font-size: 10px;
    color: #8993a3;
}

.trademark-image-preview-large {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: 12px;
}

.trademark-image-preview-large img {
    max-width: 100%;
    max-height: 460px;
    object-fit: contain;
}

/* 국가별 출원 Grid header/body exact alignment: 9 columns = 100% */
#applicationGrid table,
#applicationGrid .k-grid-header table,
#applicationGrid .k-grid-content table {
    width: 100% !important;
    table-layout: fixed !important;
}

#applicationGrid colgroup col:nth-child(1) {
    width: 13% !important;
}

#applicationGrid colgroup col:nth-child(2) {
    width: 10% !important;
}

#applicationGrid colgroup col:nth-child(3) {
    width: 13% !important;
}

#applicationGrid colgroup col:nth-child(4) {
    width: 14% !important;
}

#applicationGrid colgroup col:nth-child(5) {
    width: 11% !important;
}

#applicationGrid colgroup col:nth-child(6) {
    width: 11% !important;
}

#applicationGrid colgroup col:nth-child(7) {
    width: calc(28% - 32px) !important;
}

#applicationGrid colgroup col:nth-child(8) {
    width: 32px !important;
}

#applicationGrid th,
#applicationGrid td {
    box-sizing: border-box !important;
    text-align: center !important;
    vertical-align: middle !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

#applicationGrid .k-grid-content {
    overflow: visible !important;
}

/* 국가별 출원 목록은 한 화면에서 상세 입력까지 함께 볼 수 있도록 행 높이를 줄입니다. */
#applicationGrid .k-grid-header th {
    height: 30px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

#applicationGrid tbody td {
    height: 30px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

#applicationGrid .k-grid-header tr,
#applicationGrid tbody tr {
    height: 30px !important;
}

#applicationGrid tbody tr.k-selected > td,
#applicationGrid tbody tr.k-state-selected > td,
#applicationGrid tbody tr.is-application-selection > td,
#applicationGrid tbody tr.is-linked-application-selection > td {
    background-color:#d8eaff !important;
    color:#124b91 !important;
    box-shadow:inset 0 1px 0 #76a8e5, inset 0 -1px 0 #76a8e5;
    font-weight:600;
}

#applicationGrid tbody tr {
    cursor:pointer;
}

.trademark-editor .sub-grid-heading #selectedApplicationLabel {
    display:inline-flex;
    align-items:center;
    min-height:20px;
    padding:0 8px;
    border:1px solid #b8d0ee;
    border-radius:10px;
    background:#eef5ff;
    color:#245faa !important;
    font-weight:700 !important;
}

#applicationGrid .k-grid-header .k-grid-filter {
    height: 18px !important;
    min-height: 18px !important;
    line-height: 18px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

#addApplicationButton {
    min-height: 22px !important;
    height: 22px !important;
    padding: 0 8px !important;
    border-radius: 5px !important;
    font-size: 10px !important;
    line-height: 1 !important;
}

#applicationGrid .sub-grid-icon-button {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    padding:0;
    border-radius: 3px;
}

#applicationGrid .sub-grid-icon-button .k-icon {
    font-size: 12px;
}

/* Kendo Grid 컬럼 필터 팝업을 목록의 조밀한 밀도에 맞춘다. */
.k-filter-menu {
    font-size: 11px !important;
}

.k-filter-menu .k-filter-help-text,
.k-filter-menu .k-label,
.k-filter-menu label {
    font-size: 11px !important;
}

.k-filter-menu .k-input,
.k-filter-menu .k-textbox,
.k-filter-menu .k-dropdown-wrap,
.k-filter-menu .k-picker-wrap {
    min-height: 26px !important;
    font-size: 11px !important;
}

.k-filter-menu .k-button {
    min-height: 26px !important;
    padding: 3px 8px !important;
    font-size: 11px !important;
}

.sub-grid-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid #d3d9e3;
    border-radius: 4px;
    background: #fff;
    color: #647084;
    cursor: pointer;
}

.sub-grid-icon-button .k-icon {
    margin: 0;
}

.sub-grid-icon-button:not(.danger):hover {
    border-color: #8fb3dc;
    color: #2468a2;
    background: #f2f8ff;
}

.sub-grid-icon-button.danger:hover {
    border-color: #e0aaaa;
    color: #c93131;
    background: #fff5f5;
}

/* 상품류 Grid는 코드/지정상품/비고/작업 4열 고정 */
#applicationClassGrid table {
    width: 100% !important;
    table-layout: fixed !important;
}

#applicationClassGrid colgroup col:nth-child(1) {
    width: 25% !important;
}

#applicationClassGrid colgroup col:nth-child(2) {
    width: 37.5% !important;
}

#applicationClassGrid colgroup col:nth-child(3) {
    width: calc(37.5% - 44px) !important;
}

#applicationClassGrid colgroup col:nth-child(4) {
    width: 44px !important;
}

#applicationGrid colgroup col:last-child {
    width: 32px !important;
}

#applicationClassGrid colgroup col:last-child {
    width: 44px !important;
}

#applicationGrid th:last-child,
#applicationGrid td:last-child,
#applicationClassGrid th:last-child,
#applicationClassGrid td:last-child {
    padding-left: 4px !important;
    padding-right: 4px !important;
}

#applicationClassGrid th,
#applicationClassGrid td {
    box-sizing: border-box !important;
}


/* ==========================================================================
 * v0.7.1 - 상표 대표이미지 / 업무 첨부파일 분리
 * ========================================================================== */

.business-attachment-section {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid #e6eaf0;
}

.business-attachment-section .attachment-heading {
    margin-top: 0 !important;
}

.business-attachment-section .attachment-help {
    margin-left: 8px;
    color: #7b8798;
    font-size: 11px;
    font-weight: 400;
}

.business-attachment-section .attachment-immediate-save-notice {
    display: block;
    margin-top: 4px;
    margin-left: 0;
    color: #356ca5;
    font-size: 11px;
    font-weight: 600;
}

.compact-file-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0 8px !important;
}

.compact-file-toolbar input[type="file"] {
    max-width: 440px;
    height: 34px;
    font-size: 11px;
}

/* 상표 상세창의 작업 버튼은 제목 영역 버튼과 같은 높이로 통일합니다. */
.trademark-editor button.primary-button,
.trademark-editor button.secondary-button,
.trademark-editor button.danger-button,
.trademark-editor button.grid-mini-button,
.trademark-editor button.process-application-page-button {
    height: 22px !important;
    min-height: 22px !important;
    padding: 0 8px !important;
    border-radius: 5px !important;
    font-size: 10px !important;
    line-height: 20px !important;
}

#requestFileGrid,
#reviewFileGrid,
#applicationFileGrid,
#oaFileGrid,
#workFileGrid,
#costFileGrid,
#trademarkAllFileGrid {
    width: 100%;
    min-height: 0 !important;
}

#requestFileGrid table,
#reviewFileGrid table,
#applicationFileGrid table,
#oaFileGrid table,
#workFileGrid table,
#costFileGrid table,
#trademarkAllFileGrid table {
    width: 100% !important;
    table-layout: fixed !important;
}

#requestFileGrid th,
#requestFileGrid td,
#reviewFileGrid th,
#reviewFileGrid td,
#applicationFileGrid th,
#applicationFileGrid td,
#oaFileGrid th,
#oaFileGrid td,
#workFileGrid th,
#workFileGrid td,
#costFileGrid th,
#costFileGrid td,
#trademarkAllFileGrid th,
#trademarkAllFileGrid td {
    box-sizing: border-box;
    vertical-align: middle;
}


/* ==========================================================================
 * v0.7.5 - Trademark sub-grid exact column alignment
 * ========================================================================== */

/*
 * 중간업무 / 비용 / 갱신 Grid는 scrollable:false로 렌더링하고
 * 하나의 table/colgroup을 Header와 Body가 공유한다.
 *
 * JavaScript의 px width를 제거하고 아래 비율을 단일 기준으로 사용한다.
 */
#workGrid table,
#costGrid table,
#renewalGrid table {
    width: 100% !important;
    table-layout: fixed !important;
}

/* 중간업무: 8열 = 100% */
#workGrid colgroup col:nth-child(1) {
    width: 13% !important;
}

/* 업무유형 */
#workGrid colgroup col:nth-child(2) {
    width: 10% !important;
}

/* 상태 */
#workGrid colgroup col:nth-child(3) {
    width: 26% !important;
}

/* 업무 제목 */
#workGrid colgroup col:nth-child(4) {
    width: 11% !important;
}

/* 발생일 */
#workGrid colgroup col:nth-child(5) {
    width: 11% !important;
}

/* 기한 */
#workGrid colgroup col:nth-child(6) {
    width: 11% !important;
}

/* 완료일 */
#workGrid colgroup col:nth-child(7) {
    width: 10% !important;
}

/* 완료 */
#workGrid colgroup col:nth-child(8) {
    width: 8% !important;
}

/* 작업 */

/* 비용: 7열 = 100% */
#costGrid colgroup col:nth-child(1) {
    width: 14% !important;
}

/* 비용유형 */
#costGrid colgroup col:nth-child(2) {
    width: 11% !important;
}

/* 상태 */
#costGrid colgroup col:nth-child(3) {
    width: 27% !important;
}

/* 비용 제목 */
#costGrid colgroup col:nth-child(4) {
    width: 12% !important;
}

/* 발생일 */
#costGrid colgroup col:nth-child(5) {
    width: 12% !important;
}

/* 처리일 */
#costGrid colgroup col:nth-child(6) {
    width: 16% !important;
}

/* 금액 */
#costGrid colgroup col:nth-child(7) {
    width: 8% !important;
}

/* 작업 */

/* 갱신 / 등록료: 7열 = 100% */
#renewalGrid colgroup col:nth-child(1) {
    width: 8% !important;
}

/* 회차 */
#renewalGrid colgroup col:nth-child(2) {
    width: 15% !important;
}

/* 납부마감일 */
#renewalGrid colgroup col:nth-child(3) {
    width: 15% !important;
}

/* 실제납부일 */
#renewalGrid colgroup col:nth-child(4) {
    width: 15% !important;
}

/* 납부금액 */
#renewalGrid colgroup col:nth-child(5) {
    width: 14% !important;
}

/* 수수료 */
#renewalGrid colgroup col:nth-child(6) {
    width: 25% !important;
}

/* 비고 */
#renewalGrid colgroup col:nth-child(7) {
    width: 8% !important;
}

/* 작업 */

/*
 * Header / Body 공통 cell 규칙.
 * th/td 각각의 box sizing 차이로 1px씩 틀어지는 현상도 방지한다.
 */
#workGrid th.k-header,
#workGrid td,
#costGrid th.k-header,
#costGrid td,
#renewalGrid th.k-header,
#renewalGrid td {
    box-sizing: border-box !important;
    vertical-align: middle !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

#workGrid th.k-header,
#costGrid th.k-header,
#renewalGrid th.k-header {
    text-align: center !important;
}

/*
 * scrollable:false에서 불필요한 content wrapper 높이/scroll을 강제로 만들지 않는다.
 */
#workGrid .k-grid-content,
#costGrid .k-grid-content,
#renewalGrid .k-grid-content {
    overflow: visible !important;
    height: auto !important;
    min-height: 0 !important;
}

/* command 열은 중앙정렬 */
#workGrid td:last-child,
#costGrid td:last-child,
#renewalGrid td:last-child {
    text-align: center !important;
}


/* ==========================================================================
 * v0.7.6 - Kendo DatePicker ko-KR
 * ========================================================================== */
.editor-field .k-datepicker,
.editor-field .k-dateinput {
    width: 100% !important;
    box-sizing: border-box !important;
}

.editor-field .k-datepicker .k-picker-wrap,
.editor-field .k-dateinput .k-dateinput-wrap {
    width: 100% !important;
    box-sizing: border-box !important;
}

.k-calendar .k-header,
.k-calendar .k-content {
    font-family: inherit;
}


/* 상단 Grid의 상품류는 조회 전용 요약 셀 */
#applicationGrid .nice-class-summary-cell {
    cursor: default !important;
}

#applicationGrid .nice-class-summary-cell span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ==========================================================================
 * v0.7.9 - Trademark editor selected tab
 * ========================================================================== */

/*
 * JSP의 첫 탭에 k-active를 하드코딩하지 않고,
 * 실제 Kendo TabStrip 선택 상태와 동기화한 trademark-tab-selected만 강조한다.
 */
#trademarkTabStrip>.k-tabstrip-items {
    padding: 0 12px !important;
    border-bottom: 1px solid #d9e0ea !important;
    background: #fbfcfe !important;
}

#trademarkTabStrip>.k-tabstrip-items>.k-item {
    position: relative;
    margin: 0 2px 0 0 !important;
    border: 0 !important;
    background: transparent !important;
}

#trademarkTabStrip>.k-tabstrip-items>.k-item>.k-link {
    position: relative;
    min-height: 34px;
    box-sizing: border-box;
    padding: 9px 12px 9px 22px !important;
    color: #596477 !important;
    font-size: 12px;
    font-weight: 600 !important;
    text-decoration: none;
}

/*
 * Kendo 기본 active class는 테마마다 k-active / k-state-active가 달라질 수 있으므로
 * 글자색 강조에는 사용하지 않는다.
 */
#trademarkTabStrip>.k-tabstrip-items>.k-item.k-active>.k-link,
#trademarkTabStrip>.k-tabstrip-items>.k-item.k-state-active>.k-link {
    color: #596477 !important;
    font-weight: 600 !important;
}

#trademarkTabStrip>.k-tabstrip-items>.k-item:not(.trademark-tab-selected):hover>.k-link {
    color: #245fbd !important;
    background: #f3f6fb !important;
}

/* 실제 선택된 탭 하나 */
#trademarkTabStrip>.k-tabstrip-items>.k-item.trademark-tab-selected {
    background: #edf4ff !important;
}

#trademarkTabStrip>.k-tabstrip-items>.k-item.trademark-tab-selected>.k-link {
    color: #1158c7 !important;
    font-weight: 700 !important;
}

/* 탭 이름 앞의 선택 표시 */
#trademarkTabStrip>.k-tabstrip-items>.k-item.trademark-tab-selected>.k-link::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-radius: 50%;
    background: #2368db;
}

/* 선택 탭 하단 indicator */
#trademarkTabStrip>.k-tabstrip-items>.k-item.trademark-tab-selected::after {
    content: "";
    position: absolute;
    left: 7px;
    right: 7px;
    bottom: -1px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: #2368db;
}

/* disabled 탭은 선택 표시보다 disabled 상태가 우선 */
#trademarkTabStrip>.k-tabstrip-items>.k-item.k-state-disabled>.k-link,
#trademarkTabStrip>.k-tabstrip-items>.k-item.k-disabled>.k-link {
    color: #a9b1bd !important;
    background: transparent !important;
}


/* ==========================================================================
 * v0.7.10 - 모든 상표 Kendo Grid 헤더 중앙정렬
 * ========================================================================== */

/*
 * 상표 관리에서 사용하는 모든 Kendo Grid의 헤더 정렬을 공통으로 중앙화한다.
 * sortable header의 .k-link까지 중앙정렬하여 텍스트/정렬아이콘 위치도 일관되게 한다.
 */
#trademarkGrid .k-grid-header th.k-header,
#requesterGrid .k-grid-header th.k-header,
#applicationGrid .k-grid-header th.k-header,
#applicationClassGrid .k-grid-header th.k-header,
#renewalGrid .k-grid-header th.k-header,
#workGrid .k-grid-header th.k-header,
#costGrid .k-grid-header th.k-header,
#requestFileGrid .k-grid-header th.k-header,
#reviewFileGrid .k-grid-header th.k-header,
#applicationFileGrid .k-grid-header th.k-header,
#oaFileGrid .k-grid-header th.k-header,
#workFileGrid .k-grid-header th.k-header,
#costFileGrid .k-grid-header th.k-header,
#trademarkAllFileGrid .k-grid-header th.k-header {
    text-align: center !important;
    vertical-align: middle !important;
}

#trademarkGrid .k-grid-header th.k-header>.k-link,
#requesterGrid .k-grid-header th.k-header>.k-link,
#applicationGrid .k-grid-header th.k-header>.k-link,
#applicationClassGrid .k-grid-header th.k-header>.k-link,
#renewalGrid .k-grid-header th.k-header>.k-link,
#workGrid .k-grid-header th.k-header>.k-link,
#costGrid .k-grid-header th.k-header>.k-link,
#requestFileGrid .k-grid-header th.k-header>.k-link,
#reviewFileGrid .k-grid-header th.k-header>.k-link,
#applicationFileGrid .k-grid-header th.k-header>.k-link,
#oaFileGrid .k-grid-header th.k-header>.k-link,
#workFileGrid .k-grid-header th.k-header>.k-link,
#costFileGrid .k-grid-header th.k-header>.k-link,
#trademarkAllFileGrid .k-grid-header th.k-header>.k-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}


/* ==========================================================================
 * v0.7.11 - 첨부파일 작업 버튼 한 줄 표시
 * ========================================================================== */

.attachment-grid-actions {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
}

.attachment-grid-actions .grid-mini-button,
.attachment-grid-actions .sub-grid-icon-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    white-space: nowrap !important;
}

.attachment-grid-actions .sub-grid-icon-button {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    padding: 0 !important;
    border-radius: 3px !important;
}

.attachment-grid-actions .sub-grid-icon-button .k-icon {
    font-size: 12px !important;
}

.attachment-grid-actions .grid-mini-button {
    width: auto !important;
}

#requestFileGrid td:last-child,
#reviewFileGrid td:last-child,
#applicationFileGrid td:last-child,
#oaFileGrid td:last-child,
#workFileGrid td:last-child,
#costFileGrid td:last-child,
#trademarkAllFileGrid td:last-child {
    white-space: nowrap !important;
    text-align: center !important;
}

.business-attachment-section .k-grid colgroup col:last-child,
#trademarkAllFileGrid colgroup col:last-child {
    width: 48px !important;
}

.business-attachment-section .k-grid colgroup col:first-child {
    width: calc(100% - 368px) !important;
}

.business-attachment-section .k-grid colgroup col:nth-last-child(4) {
    width: 100px !important;
}

.business-attachment-section .k-grid colgroup col:nth-last-child(3) {
    width: 90px !important;
}

.business-attachment-section .k-grid colgroup col:nth-last-child(2) {
    width: 130px !important;
}

#trademarkAllFileGrid colgroup col:nth-child(1) { width: 110px !important; }
#trademarkAllFileGrid colgroup col:nth-child(2) { width: 180px !important; }
#trademarkAllFileGrid colgroup col:nth-child(3) { width: calc(100% - 658px) !important; }
#trademarkAllFileGrid colgroup col:nth-child(4) { width: 100px !important; }
#trademarkAllFileGrid colgroup col:nth-child(5) { width: 90px !important; }
#trademarkAllFileGrid colgroup col:nth-child(6) { width: 130px !important; }

.business-attachment-section .k-grid th:last-child,
.business-attachment-section .k-grid td:last-child,
#trademarkAllFileGrid th:last-child,
#trademarkAllFileGrid td:last-child {
    padding-left: 2px !important;
    padding-right: 2px !important;
    white-space: nowrap !important;
    text-align: center !important;
}


/* ==========================================================================
 * v0.7.12 - Kendo DatePicker 높이 공통화
 * ========================================================================== */

/*
 * 일반 input과 Kendo DropDownList가 34px이므로 DatePicker도 정확히 34px로 맞춘다.
 * Kendo가 원본 input을 wrapper 내부로 이동하면서 기존 direct-child CSS가 적용되지
 * 않았던 문제를 보정한다.
 */
.trademark-editor .editor-field .k-datepicker,
.trademark-editor .editor-field .k-dateinput {
    width: 100% !important;
    height: 34px !important;
    min-height: 34px !important;
    box-sizing: border-box !important;
}

.trademark-editor .editor-field .k-datepicker .k-picker-wrap,
.trademark-editor .editor-field .k-dateinput .k-dateinput-wrap {
    width: 100% !important;
    height: 34px !important;
    min-height: 34px !important;
    box-sizing: border-box !important;
    border: 1px solid #d4dbe6 !important;
    border-radius: 6px !important;
    background: #fff !important;
    overflow: hidden !important;
}

.trademark-editor .editor-field .k-datepicker .k-input,
.trademark-editor .editor-field .k-dateinput .k-input {
    box-sizing: border-box !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 10px !important;
    border: 0 !important;
    line-height: 32px !important;
    font-size: 12px !important;
}

.trademark-editor .editor-field .k-datepicker .k-select,
.trademark-editor .editor-field .k-dateinput .k-select {
    box-sizing: border-box !important;
    width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    border-left: 1px solid #e1e6ee !important;
    border-radius: 0 !important;
    background: #fafbfd !important;
    line-height: 32px !important;
}

.trademark-editor .editor-field .k-datepicker:hover .k-picker-wrap,
.trademark-editor .editor-field .k-dateinput:hover .k-dateinput-wrap {
    border-color: #b9c4d4 !important;
}

.trademark-editor .editor-field .k-datepicker .k-picker-wrap.k-state-focused,
.trademark-editor .editor-field .k-datepicker .k-picker-wrap.k-state-active {
    border-color: #7193e8 !important;
    box-shadow: 0 0 0 3px rgba(36, 87, 214, .08) !important;
}


/* ==========================================================================
 * v0.7.13 - 상표 상세 섹션 구분선 + ▣ 제목 표시
 * ========================================================================== */

/*
 * 섹션 제목은 전부 동일한 ▣ 표시를 사용한다.
 * 이모지/컬러 아이콘 대신 텍스트 기호를 사용해 현재 IPMS UI의 밀도를 유지한다.
 */
.trademark-editor .form-section-title,
.trademark-editor .sub-grid-heading strong {
    color: #29364a !important;
    font-weight: 700 !important;
}

.trademark-editor .form-section-title::before,
.trademark-editor .sub-grid-heading strong::before {
    content: "▣";
    display: inline-block;
    margin-right: 6px;
    color: #53657d;
    font-size: 11px;
    line-height: 1;
    vertical-align: 1px;
}

/* 첫 업무영역 다음에 오는 독립 섹션만 얇은 선으로 분리한다. */
.trademark-editor .section-divider-title {
    margin-top: 16px !important;
    padding-top: 13px !important;
    border-top: 1px solid #dfe5ee !important;
}

.trademark-editor .sub-grid-heading.section-divider-heading {
    margin-top: 16px !important;
    padding-top: 13px !important;
    border-top: 1px solid #dfe5ee !important;
}

/* 업무별 첨부영역 역시 동일한 선/간격 체계를 사용한다. */
.trademark-editor .business-attachment-section {
    margin-top: 16px !important;
    padding-top: 13px !important;
    border-top: 1px solid #dfe5ee !important;
}

.trademark-editor .business-attachment-section .attachment-heading {
    margin-top: 0 !important;
    margin-bottom: 6px !important;
    padding-top: 0 !important;
    border-top: 0 !important;
}

/* 제목 옆 설명은 제목보다 시각적으로 약하게 유지한다. */
.trademark-editor .sub-grid-heading .attachment-help,
.trademark-editor .sub-grid-heading #selectedApplicationLabel {
    margin-left: 8px !important;
    color: #7b8798 !important;
    font-size: 11px !important;
    font-weight: 400 !important;
}

/* 첫 섹션은 위쪽 선 없이 바로 시작한다. */
.trademark-editor .editor-tab-panel>.form-section-title:first-child,
.trademark-editor .editor-tab-panel>.sub-grid-heading:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: 0 !important;
}


/* ==========================================================================\n * v0.7.14 - 좌측 Sidebar 접기 / 펼치기\n * ========================================================================== */

:root {
    --sidebar-collapsed-width: 52px;
}

/* TOP Header는 Sidebar 상태와 무관하게 항상 전체 너비를 유지한다. */
.app-header {
    left: 0 !important;
    right: 0 !important;
}

.app-sidebar,
.app-content {
    transition: width .18s ease, margin-left .18s ease;
}

.sidebar-toolbar {
    display: flex;
    justify-content: flex-end;
    margin: -8px 0 12px;
}

.sidebar-toggle-button {
    width: 100%;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 6px;
    background: rgba(255, 255, 255, .04);
    color: #cfd7e6;
    font-size: 12px;
}

.sidebar-toggle-button:hover,
.sidebar-toggle-button:focus {
    background: rgba(255, 255, 255, .09);
    color: #ffffff;
    outline: none;
}

.sidebar-toggle-icon {
    width: 16px;
    flex: 0 0 16px;
    text-align: center;
    font-size: 10px;
}

.nav-item-icon {
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
}

/* 접힌 상태: TOP은 그대로, Sidebar와 본문 시작점만 변경 */
.app-shell.sidebar-collapsed .app-sidebar {
    width: var(--sidebar-collapsed-width);
    padding: 14px 8px;
    overflow-x: hidden;
}

.app-shell.sidebar-collapsed .app-content {
    width: calc(100% - var(--sidebar-collapsed-width));
    margin-left: var(--sidebar-collapsed-width);
}

.app-shell.sidebar-collapsed .sidebar-toolbar {
    margin: 0 0 12px;
    justify-content: center;
}

.app-shell.sidebar-collapsed .sidebar-toggle-button {
    width: 40px;
    height: 36px;
    min-height: 36px;
    justify-content: center;
    padding: 0;
}

.app-shell.sidebar-collapsed .sidebar-toggle-text,
.app-shell.sidebar-collapsed .nav-item-label,
.app-shell.sidebar-collapsed .nav-group-title {
    display: none !important;
}

.app-shell.sidebar-collapsed .sidebar-toggle-icon {
    width: auto;
    flex: none;
    font-size: 11px;
}

.app-shell.sidebar-collapsed .sidebar-nav {
    align-items: center;
    gap: 6px;
}

.app-shell.sidebar-collapsed .nav-item {
    width: 40px;
    min-height: 40px;
    justify-content: center;
    padding: 0;
    border-radius: 7px;
}

.app-shell.sidebar-collapsed .nav-item-icon {
    display: inline-flex;
    color: #dbe1ec;
    background: rgba(255, 255, 255, .04);
}

.app-shell.sidebar-collapsed .nav-item:hover .nav-item-icon,
.app-shell.sidebar-collapsed .nav-item.is-active .nav-item-icon {
    color: #ffffff;
    background: transparent;
}

.app-shell.sidebar-collapsed .nav-item.is-active {
    box-shadow: inset 3px 0 0 #6f94ff;
}

.app-shell.sidebar-collapsed .nav-item.is-active::after {
    display: none;
}

/* v1.0 customer/role management */
.customer-admin-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 16px
}

.customer-admin-layout>aside,
.customer-admin-detail {
    min-width: 0
}

.role-permission-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 14px
}

.section-toolbar {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0 0 12px
}

.customer-admin-detail .k-tabstrip>.k-content {
    padding: 16px
}

.process-stage-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 7px 10px;
    border-bottom: 1px solid #dce3ee;
    background: #f8faff
}

.process-stage-tab {
    white-space: nowrap;
    border: 1px solid #d9e1ec;
    background: #fff;
    border-radius: 5px;
    padding: 6px 10px;
    font-size: 12px;
    color: #41516a
}

.process-stage-tab.is-active {
    border-color: #2d6cdf;
    background: #edf4ff;
    color: #1557c0;
    font-weight: 700
}

.process-stage-tab.is-hidden {
    display: none
}

.process-view-button {
    margin-left: auto
}

.process-modal {
    display: none
}

.trademark-process-scroll {
    overflow-x: hidden
}

#trademarkProcessWindow .process-diagram {
    padding: 18px;
    min-width: 0
}

.process-diagram {
    padding: 24px;
    background: linear-gradient(180deg, #f7faff, #fff);
    min-width: 0
}

#trademarkProcessWindow .process-diagram>p {
    margin: 0 0 8px;
}

.process-flow {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: 10px;
    row-gap: 24px;
    align-items: center
}

.process-role-legend {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin: 18px 0 0;
    padding-top: 14px;
    border-top: 1px solid #dbe3ef;
    align-items: center;
    color: #52657f;
    font-size: 12px;
}

.process-legend-title {
    display: block;
    margin-bottom: -3px;
    color: #26364d;
    font-size: 13px;
}

.process-role-legend span {
    display: grid;
    grid-template-columns: 12px 210px minmax(0, 1fr);
    column-gap: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    align-items: center;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    text-align: left;
}

.process-role-legend i {
    display: block;
    width: 9px;
    height: 9px;
    margin-right: 0;
    border-radius: 50%;
    background: currentColor;
}

.process-role-legend .role-requester {
    border-color: #a9d6b7;
    background: #eaf8ef;
    color: #287044;
}

.process-role-legend .role-shared {
    border-color: #9ccfca;
    background: #eaf8f7;
    color: #21736e;
}

.process-role-legend .role-ip-manager {
    border-color: #a9c5ef;
    background: #edf4ff;
    color: #285fba;
}

.process-role-legend .role-customer-admin {
    border-color: #c7b5e9;
    background: #f4effc;
    color: #6d48a8;
}

.process-role-legend span strong {
    color: inherit;
}

.process-role-legend span small {
    grid-column: 3;
    min-width: 0;
    margin-top: 0;
    color: inherit;
    font-size: 11px;
    opacity: .88;
    overflow-wrap: anywhere;
}

.process-node {
    position: relative;
    min-height: 150px;
    padding: 13px 10px 10px;
    border: 1px solid #bfcce0;
    border-radius: 8px;
    background: #fff;
    text-align: center;
    font-weight: 700;
    color: #26364d;
    box-shadow: 0 3px 12px rgba(25, 50, 90, .08)
}

.process-node>strong,
.process-node>span,
.process-node>small {
    display: block;
}

.process-node>span {
    margin-top: 7px;
    color: #65758b;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
}

.process-node>small {
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px dashed #d5deeb;
    color: #44546a;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.65;
}

.process-node>small b {
    color: #d14343;
    font-weight: 800;
}

.process-node-requester {
    border-color: #9ec5ac;
    background: linear-gradient(180deg, #f1faf4, #fff);
}

.process-node-requester>span {
    color: #287044;
}

.process-node-shared {
    border-color: #8fc9c3;
    background: linear-gradient(135deg, #edf9f2 0 50%, #edf4ff 50% 100%);
}

.process-node-shared>span {
    color: #21736e;
}

.process-node-ip-manager {
    border-color: #a9c5ef;
    background: linear-gradient(180deg, #edf4ff, #fff);
}

.process-node-ip-manager>span {
    color: #285fba;
}

.process-node:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    color: #7d8ca3
}

/* 11개 단계를 6개 + 5개 두 줄로 표현하므로 첫 줄 끝의 화살표는 숨긴다. */
.process-node:nth-child(6)::after {
    display: none;
}

.process-node.current {
    background: #2f6fe4;
    color: #fff;
    border-color: #2f6fe4
}

.process-oa-loop {
    margin: 18px auto 0;
    max-width: 420px;
    border: 1px dashed #7b93bb;
    border-radius: 18px;
    padding: 10px;
    text-align: center;
    color: #36557d
}

.stage-readonly input,
.stage-readonly textarea,
.stage-readonly select {
    pointer-events: none;
    background: #f4f6f8 !important;
    color: #667 !important
}

.stage-readonly button:not(.process-stage-tab):not(.process-view-button) {
    display: none !important
}


/* ==========================================================================
 * v1.0.1 - 상표 업무 프로세스 단계별 화면 분리
 * ========================================================================== */

/* Kendo TabStrip는 콘텐츠 전환 엔진으로만 사용하고 기존 2차 탭 헤더는 숨긴다. */
.trademark-process-content>.k-tabstrip-items,
.trademark-process-content>.process-content-tab-headers {
    display: none !important;
}

.trademark-process-content.k-tabstrip,
.trademark-process-content>.k-content {
    border-top: 0 !important;
}

.trademark-process-content>.k-content {
    padding-top: 12px !important;
}

.process-stage-tabs {
    flex-wrap: nowrap !important;
    gap: 3px;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 7px 8px;
    align-items: center;
    scrollbar-width: thin;
}

.process-stage-tabs .process-stage-tab {
    flex: 0 0 auto;
    padding: 6px 8px;
    font-size: 11px;
}

.process-stage-tab:disabled,
.process-stage-tab.is-disabled {
    cursor: not-allowed;
    opacity: .45;
    background: #f4f6f9;
}

.process-stage-separator {
    flex: 0 0 1px;
    width: 1px;
    height: 24px;
    margin: 0 1px;
    background: #ccd5e2;
}

.process-common-tab {
    background: #fbfcfe;
}

.process-view-button {
    margin-left: auto;
}

.stage-description {
    margin: -2px 0 12px;
    color: #7b8798;
    font-size: 11px;
    line-height: 1.5;
}

.stage-description-inline {
    margin-left: 8px;
    color: #7b8798;
    font-size: 11px;
    font-weight: 400;
}

.process-application-context {
    display: grid;
    grid-template-columns: 80px minmax(260px, 360px) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin: 10px 12px 0;
    padding: 10px 12px;
    border: 1px solid #dce4ef;
    border-radius: 7px;
    background: #f8faff;
}

.process-application-context>label {
    color: #34435a;
    font-size: 12px;
    font-weight: 700;
}

.process-application-context .k-dropdown,
.process-application-context .k-dropdownlist {
    width: 100% !important;
}

.process-application-help {
    color: #708096;
    font-size: 11px;
}

.selected-app-stage-card.is-disabled {
    opacity: .58;
    pointer-events: none;
}

@media (max-width: 980px) {
    .process-application-context {
        grid-template-columns: 70px minmax(220px, 1fr);
    }

    .process-application-help {
        grid-column: 1 / -1;
    }
}


/* 조회전용 단계에서도 첨부파일 다운로드는 사용할 수 있다. */
.stage-readonly .js-attachment-download {
    display: inline-flex !important;
}

/* ==========================================================================
 * v1.0.2 - 단계별 첨부파일
 * ========================================================================== */

.trademark-editor .stage-attachment-section {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #dfe5ee;
}

.trademark-editor .possibility-field-help {
    display: block;
    margin-top: 3px;
    color: #6d7b8e;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.4;
}

.trademark-editor .stage-status-note {
    margin: 8px 0 0;
    padding: 7px 9px;
    border-left: 3px solid #8eb2dd;
    background: #f7faff;
    color: #5f6e82;
    font-size: 11px;
    line-height: 1.5;
}

.trademark-editor .stage-field-guide {
    display: grid;
    gap: 6px;
    margin-top: 10px;
    padding: 9px 11px;
    border: 1px solid #dce6f2;
    border-radius: 6px;
    background: #f7faff;
    color: #5f6e82;
    font-size: 11px;
    line-height: 1.5;
}

.trademark-editor .stage-field-guide div {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 8px;
}

.trademark-editor .stage-field-guide strong {
    color: #315f92;
}

.trademark-editor .stage-attachment-section .attachment-heading strong::before {
    content: "▣";
    display: inline-block;
    margin-right: 6px;
    color: #2457d6;
    font-size: 12px;
}

.trademark-editor .stage-attachment-section .attachment-help {
    margin-left: 10px;
    color: #7b8798;
    font-weight: 400;
}

.trademark-editor .stage-attachment-section .k-grid-header th.k-header,
.trademark-editor .stage-attachment-section .k-grid-header th.k-header>.k-link {
    text-align: center !important;
    justify-content: center !important;
}

.grid-action-empty {
    color: #9aa4b2;
}


/* ==========================================================================
 * v1.0.3 - 고객사 관리 필수값 / 저장 메시지
 * ========================================================================== */

.required-mark {
    margin-left: 2px;
    color: #d93025;
    font-weight: 700;
}

.required-guide {
    margin: 0 0 10px;
    color: #6f7a89;
    font-size: 11px;
}

.editor-field input.input-error,
.editor-field select.input-error,
.editor-field textarea.input-error {
    border-color: #d93025 !important;
    box-shadow: 0 0 0 2px rgba(217, 48, 37, .08) !important;
}

.form-message {
    margin-bottom: 12px;
    padding: 9px 12px;
    border: 1px solid #cfd8e6;
    border-radius: 5px;
    font-size: 12px;
    line-height: 1.5;
}

.form-message.is-success {
    border-color: #b9d7c2;
    background: #f3faf5;
    color: #28643a;
}

.form-message.is-error {
    border-color: #efb7b3;
    background: #fff5f4;
    color: #a72d25;
}


/* ==========================================================================
 * v1.0.4 - 시스템 자동생성 내부 관리코드
 * ========================================================================== */

.auto-code-label {
    display: inline-block;
    margin-left: 5px;
    padding: 1px 5px;
    border-radius: 8px;
    background: #eef3ff;
    color: #3563c7;
    font-size: 10px;
    font-weight: 600;
    vertical-align: middle;
}

input[readonly][placeholder="저장 시 자동생성"] {
    background: #f7f9fc !important;
    color: #657184;
    cursor: default;
}

#caseNumber::placeholder,
#reqNo::placeholder {
    color: #657184;
    font-size: 11px;
    font-weight: 400;
}

/* 신규 등록은 기본정보만 사용하므로 업무 탭을 표시하지 않는다. */
#trademarkForm.is-registration-mode #trademarkProcessTabs {
    display: none !important;
}

/* 상표 등록/상세 팝업 제목을 공통 아이콘과 크기로 통일한다. */
.trademark-editor-window .k-window-titlebar .k-window-title {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    font-size: 16px !important;
    font-weight: 700 !important;
}

.trademark-editor-window .k-window-titlebar .k-window-title::before {
    content: "T";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    border-radius: 5px;
    color: #fff;
    background: #2f67d8;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.trademark-editor-window .trademark-window-title-text {
    flex: 0 0 auto;
}

.trademark-editor-window .trademark-window-title-meta,
.trademark-editor-window .trademark-window-title-stage {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border: 1px solid #d7e0ec;
    border-radius: 11px;
    background: #f7f9fc;
    color: #5f6d80;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
}

.trademark-editor-window .trademark-window-title-stage {
    border-color: #c9daf5;
    background: #edf4ff;
    color: #245cad;
    font-family: inherit;
    cursor: pointer;
}

.trademark-editor-window .trademark-window-title-stage:hover,
.trademark-editor-window .trademark-window-title-stage:focus-visible {
    border-color: #7da6e3;
    background: #dfeeff;
    color: #174f9f;
}


/* ==========================================================================
 * v1.0.5 - ComboBox / DropDownList layout normalization
 * ========================================================================== */

/* cols-2가 선언된 화면은 실제 2열 Grid로 동작하도록 공통 정의한다. */
.editor-form-grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.editor-form-grid.form-grid-following-row {
    margin-top: 15px;
}

.system-managed-field-notice {
    padding: 12px 14px;
    border: 1px solid #dbe5f5;
    border-radius: 8px;
    background: #f6f9fe;
    color: var(--muted);
    font-size: 13px;
}

.system-managed-field-notice>div+div {
    margin-top: 6px;
}

.system-managed-field-notice strong {
    color: var(--primary);
    font-weight: 800;
}

.system-managed-fields,
.system-managed-fields * {
    display: none !important;
}

.detail-system-summary {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.detail-view-mode .detail-system-summary {
    display: grid;
}

.detail-view-mode .system-managed-field-notice {
    display: none;
}

.detail-system-summary>div {
    padding: 11px 13px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #f8fafc;
}

.detail-system-summary span,
.detail-system-summary strong {
    display: block;
}

.detail-system-summary span {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 11px;
}

.detail-system-summary strong {
    color: #26364d;
    font-size: 13px;
}

.detail-view-mode .editor-field input:not([type="file"]),
.detail-view-mode .editor-field textarea,
.detail-view-mode .editor-field select,
.detail-view-mode .editor-field .k-widget {
    pointer-events: none;
}

.detail-view-mode.dispute-create-mode [data-stage-panel="TRADEMARK_DISPUTE"] .editor-field input:not([type="file"]),
.detail-view-mode.dispute-create-mode [data-stage-panel="TRADEMARK_DISPUTE"] .editor-field textarea,
.detail-view-mode.dispute-create-mode [data-stage-panel="TRADEMARK_DISPUTE"] .editor-field select,
.detail-view-mode.dispute-create-mode [data-stage-panel="TRADEMARK_DISPUTE"] .editor-field .k-widget {
    pointer-events: auto;
}

.detail-view-mode.office-action-create-mode [data-stage-panel="TRADEMARK_EXAMINATION_OA"] .editor-field input:not([type="file"]),
.detail-view-mode.office-action-create-mode [data-stage-panel="TRADEMARK_EXAMINATION_OA"] .editor-field textarea,
.detail-view-mode.office-action-create-mode [data-stage-panel="TRADEMARK_EXAMINATION_OA"] .editor-field select,
.detail-view-mode.office-action-create-mode [data-stage-panel="TRADEMARK_EXAMINATION_OA"] .editor-field .k-widget {
    pointer-events: auto;
}

.detail-view-mode .editor-field input:not([type="file"]),
.detail-view-mode .editor-field textarea,
.detail-view-mode .editor-field select {
    border-color: #d7dce4 !important;
    color: #556274 !important;
    background: #f4f5f7 !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45) !important;
}

.detail-view-mode.dispute-create-mode [data-stage-panel="TRADEMARK_DISPUTE"] .editor-field input:not([type="file"]),
.detail-view-mode.dispute-create-mode [data-stage-panel="TRADEMARK_DISPUTE"] .editor-field textarea,
.detail-view-mode.dispute-create-mode [data-stage-panel="TRADEMARK_DISPUTE"] .editor-field select,
.detail-view-mode.dispute-create-mode [data-stage-panel="TRADEMARK_DISPUTE"] .editor-field .k-widget {
    border-color: #b9c8dc !important;
    color: #263750 !important;
    background: #fff !important;
}

.detail-view-mode.office-action-create-mode [data-stage-panel="TRADEMARK_EXAMINATION_OA"] .editor-field input:not([type="file"]),
.detail-view-mode.office-action-create-mode [data-stage-panel="TRADEMARK_EXAMINATION_OA"] .editor-field textarea,
.detail-view-mode.office-action-create-mode [data-stage-panel="TRADEMARK_EXAMINATION_OA"] .editor-field select,
.detail-view-mode.office-action-create-mode [data-stage-panel="TRADEMARK_EXAMINATION_OA"] .editor-field .k-widget {
    border-color: #b9c8dc !important;
    color: #263750 !important;
    background: #fff !important;
}

.detail-view-mode .editor-field .k-dropdown,
.detail-view-mode .editor-field .k-dropdownlist,
.detail-view-mode .editor-field .k-combobox,
.detail-view-mode .editor-field .k-datepicker,
.detail-view-mode .editor-field .k-picker,
.detail-view-mode .editor-field .k-picker-solid,
.detail-view-mode .editor-field .k-input,
.detail-view-mode .editor-field .k-input-solid,
.detail-view-mode .editor-field .k-dropdown-wrap,
.detail-view-mode .editor-field .k-picker-wrap {
    border-color: #d7dce4 !important;
    color: #556274 !important;
    background: #f4f5f7 !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45) !important;
}

.detail-view-mode .editor-field .k-input-inner,
.detail-view-mode .editor-field .k-input-value-text,
.detail-view-mode .editor-field .k-dropdownlist .k-input-inner,
.detail-view-mode .editor-field .k-dropdownlist .k-input-value-text,
.detail-view-mode .editor-field .k-picker .k-input-inner,
.detail-view-mode .editor-field .k-picker .k-input-value-text {
    color: #556274 !important;
    background: #f4f5f7 !important;
}

.detail-view-mode .editor-field .k-input-button,
.detail-view-mode .editor-field .k-button-solid-base {
    border-color: #d7dce4 !important;
    color: #7b8797 !important;
    background: #eceff3 !important;
}

.detail-view-mode.dispute-create-mode [data-stage-panel="TRADEMARK_DISPUTE"] .editor-field .k-input-inner,
.detail-view-mode.dispute-create-mode [data-stage-panel="TRADEMARK_DISPUTE"] .editor-field .k-input-value-text,
.detail-view-mode.dispute-create-mode [data-stage-panel="TRADEMARK_DISPUTE"] .editor-field .k-input-button,
.detail-view-mode.dispute-create-mode [data-stage-panel="TRADEMARK_DISPUTE"] .editor-field .k-button-solid-base {
    color: #263750 !important;
    background: #fff !important;
}

.detail-view-mode.office-action-create-mode [data-stage-panel="TRADEMARK_EXAMINATION_OA"] .editor-field .k-input-inner,
.detail-view-mode.office-action-create-mode [data-stage-panel="TRADEMARK_EXAMINATION_OA"] .editor-field .k-input-value-text,
.detail-view-mode.office-action-create-mode [data-stage-panel="TRADEMARK_EXAMINATION_OA"] .editor-field .k-input-button,
.detail-view-mode.office-action-create-mode [data-stage-panel="TRADEMARK_EXAMINATION_OA"] .editor-field .k-button-solid-base {
    color: #263750 !important;
    background: #fff !important;
}

.detail-view-mode .editor-field .k-select {
    display: none !important;
}

.detail-view-mode.dispute-create-mode [data-stage-panel="TRADEMARK_DISPUTE"] .editor-field .k-select {
    display: flex !important;
}

.detail-view-mode.office-action-create-mode [data-stage-panel="TRADEMARK_EXAMINATION_OA"] .editor-field .k-select {
    display: flex !important;
}

.detail-view-mode .editor-field textarea {
    min-height: 34px !important;
    overflow-y: hidden;
    resize: none;
}

.detail-view-mode .editor-field input:not([type="file"]),
.detail-view-mode .editor-field textarea {
    pointer-events: auto;
    cursor: text;
    user-select: text;
    -webkit-user-select: text;
}

.detail-view-mode .form-help,
.detail-view-mode .attachment-help,
.detail-view-mode .file-toolbar,
.detail-view-mode .representative-image-actions {
    display: none !important;
}

/* 심사/OA 항목 설명은 조회 중에도 값의 의미를 확인할 수 있도록 유지합니다. */
.detail-view-mode #officeActionPanel .editor-field .form-help {
    display: block !important;
}

.detail-view-mode [data-stage-panel="TRADEMARK_DISPUTE"] .editor-field .form-help {
    display: block !important;
}

.stage-title-with-description {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.stage-title-with-description small {
    color: #6c7f99;
    font-size: 11px;
    font-weight: 400;
}

.trademark-editor #disputeTmOaId {
    height: 34px;
    min-height: 34px;
    padding: 0 10px;
    font-family: inherit;
    font-size: 12px;
    line-height: 32px;
}

/* 상표 상세의 값 표시 글꼴을 네이티브/Kendo 필드 구분 없이 통일합니다. */
.trademark-editor .editor-field>input:not([type="hidden"]):not([type="file"]),
.trademark-editor .editor-field>select,
.trademark-editor .editor-field>textarea,
.trademark-editor .editor-field .k-input-inner,
.trademark-editor .editor-field .k-input-value-text {
    font-family: inherit !important;
    font-size: 12px !important;
}

#officeActionPanel .editor-field .form-help {
    margin-top: 5px;
    line-height: 1.35;
}

#officeActionPanel>.stage-required-guide {
    margin: 12px 0 14px;
    padding: 7px 10px;
    border: 0;
    border-left: 3px solid #8eb5ee;
    border-radius: 0;
    color: #60728c;
    background: #f3f7fc;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
}

#officeActionPanel>.stage-required-guide::before {
    content: "※ ";
    color: #658bc4;
}

.dispute-required-guide {
    margin: 12px 0 14px;
    padding: 7px 10px;
    border-left: 3px solid #8eb5ee;
    color: #60728c;
    background: #f3f7fc;
    font-size: 11px;
    line-height: 1.4;
}

.detail-view-mode .image-delete-action {
    display: none !important;
}

.detail-view-mode .edit-mode-action {
    display: none !important;
}

.sub-grid-purpose-help {
    display: block;
    margin-top: 3px;
    color: #7b8798;
    font-size: 10px;
    font-weight: 400;
}

.sub-grid-purpose-help b {
    color: #536176;
    font-weight: 700;
}

.auto-generated-placeholder {
    color: #8a95a6;
    font-size: 10px;
}

.application-remarks-field {
    grid-column: 1 / -1;
}

.detail-view-mode .editor-form-grid.form-grid-following-row+.editor-form-grid.form-grid-following-row {
    margin-top: 34px !important;
}

.detail-view-mode .trademark-representative-image-field.is-image-empty .trademark-image-gallery {
    width: 100%;
    height: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-style: dashed;
    background: #f8fafc;
}

.detail-view-mode .trademark-representative-image-field.is-image-empty .representative-image-box {
    min-height: 0;
    padding: 6px;
}

.stage-required-label {
    margin-left: 5px;
    color: #d14343;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

/* Grid item이 select의 intrinsic width 때문에 부모 폭을 밀지 않도록 한다. */
.editor-form-grid,
.editor-form-grid>.editor-field,
.k-window-content .editor-form-grid,
.k-window-content .editor-field {
    min-width: 0;
    max-width: 100%;
}

/* 아직 Kendo로 변환되지 않은 native select도 동일한 크기로 보이게 한다. */
.editor-field>select {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 34px;
    min-height: 34px;
    padding: 0 32px 0 10px;
    border: 1px solid #cfd8e6;
    border-radius: 5px;
    background-color: #fff;
    color: #26364d;
    line-height: 32px;
    outline: 0;
}

.editor-field>select:focus {
    border-color: #7ea4ea;
    box-shadow: 0 0 0 2px rgba(45, 108, 223, .10);
    outline: 0;
}

/* Kendo DropDownList도 input / DatePicker와 같은 34px 규격으로 통일한다. */
.editor-field .k-dropdown,
.editor-field .k-dropdownlist,
.customer-admin-detail .k-dropdown,
.customer-admin-detail .k-dropdownlist,
#userEditor .k-dropdown,
#userEditor .k-dropdownlist {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 34px !important;
    box-sizing: border-box !important;
}

.editor-field .k-dropdown .k-dropdown-wrap,
.editor-field .k-dropdownlist .k-dropdown-wrap,
.customer-admin-detail .k-dropdown .k-dropdown-wrap,
.customer-admin-detail .k-dropdownlist .k-dropdown-wrap,
#userEditor .k-dropdown .k-dropdown-wrap,
#userEditor .k-dropdownlist .k-dropdown-wrap {
    width: 100% !important;
    height: 34px !important;
    min-height: 34px !important;
    box-sizing: border-box !important;
    border: 1px solid #cfd8e6 !important;
    border-radius: 5px !important;
    background: #fff !important;
}

.editor-field .k-dropdown .k-input,
.editor-field .k-dropdownlist .k-input,
.customer-admin-detail .k-dropdown .k-input,
.customer-admin-detail .k-dropdownlist .k-input,
#userEditor .k-dropdown .k-input,
#userEditor .k-dropdownlist .k-input {
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 9px !important;
    line-height: 32px !important;
    box-sizing: border-box !important;
}

.editor-field .k-dropdown .k-select,
.editor-field .k-dropdownlist .k-select,
.customer-admin-detail .k-dropdown .k-select,
.customer-admin-detail .k-dropdownlist .k-select,
#userEditor .k-dropdown .k-select,
#userEditor .k-dropdownlist .k-select {
    width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    line-height: 32px !important;
    box-sizing: border-box !important;
}

.editor-field .k-dropdown-wrap.k-state-focused,
.editor-field .k-dropdown-wrap.k-state-hover,
#userEditor .k-dropdown-wrap.k-state-focused,
#userEditor .k-dropdown-wrap.k-state-hover {
    border-color: #7ea4ea !important;
    box-shadow: 0 0 0 2px rgba(45, 108, 223, .10) !important;
}

/* 필수값 오류도 Kendo wrapper 테두리에 동일하게 표시한다. */
.k-dropdown.input-error .k-dropdown-wrap,
.k-dropdownlist.input-error .k-dropdown-wrap {
    border-color: #d93025 !important;
    box-shadow: 0 0 0 2px rgba(217, 48, 37, .08) !important;
}

/* Kendo Window 내부에서 필드 폭 때문에 가로 스크롤이 생기지 않게 한다. */
#userEditor {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

#userEditor .editor-form-grid {
    width: 100%;
}

/* 저장/닫기 등 Dialog 액션은 우측 정렬한다. */
.dialog-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #edf0f5;
}

.user-editor-footer {
    padding-right: 0;
}

@media (max-width: 720px) {
    #userEditor .editor-form-grid.cols-2 {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* ==========================================================================
 * v1.0.6 - 고객사 관리 화면을 상표 상세/수정과 동일한 업무 화면 스타일로 통일
 * ========================================================================== */

.customer-admin-editor {
    border: 1px solid #dce3ee;
    border-radius: 5px;
    background: #fff;
    overflow: hidden;
}

.customer-admin-editor #customerAdminTabs {
    border: 0;
    background: #fff;
}

.customer-admin-editor #customerAdminTabs>.k-tabstrip-items {
    display: flex;
    gap: 4px;
    padding: 7px 10px 0;
    border-bottom: 1px solid #dce3ee;
    background: #f8faff;
    overflow-x: auto;
}

.customer-admin-editor #customerAdminTabs>.k-tabstrip-items .k-item {
    margin: 0;
    border: 1px solid #d9e1ec;
    border-radius: 5px 5px 0 0;
    background: #fff;
    color: #41516a;
}

.customer-admin-editor #customerAdminTabs>.k-tabstrip-items .k-link {
    min-height: 34px;
    padding: 7px 13px;
    font-size: 12px;
    line-height: 18px;
}

.customer-admin-editor #customerAdminTabs>.k-tabstrip-items .k-active,
.customer-admin-editor #customerAdminTabs>.k-tabstrip-items .k-state-active,
.customer-admin-editor #customerAdminTabs>.k-tabstrip-items .k-selected {
    border-color: #2d6cdf;
    background: #edf4ff;
    color: #1557c0;
    font-weight: 700;
}

.customer-admin-editor #customerAdminTabs>.k-tabstrip-items .k-active .k-link::before,
.customer-admin-editor #customerAdminTabs>.k-tabstrip-items .k-state-active .k-link::before,
.customer-admin-editor #customerAdminTabs>.k-tabstrip-items .k-selected .k-link::before {
    content: "•";
    margin-right: 5px;
    color: #2d6cdf;
    font-size: 16px;
    line-height: 10px;
    vertical-align: -1px;
}

.customer-admin-editor #customerAdminTabs>.k-content {
    min-height: 530px;
    padding: 0 14px 16px;
    border: 0;
    background: #fff;
    overflow: visible;
}

.customer-section-heading,
.customer-subsection-heading {
    display: flex;
    align-items: center;
    min-height: 38px;
    margin: 0 0 12px;
    border-bottom: 1px solid #dfe5ee;
    color: #26364d;
}

.customer-section-heading strong {
    font-size: 13px;
}

.customer-section-heading strong::before,
.customer-subsection-heading strong::before {
    content: "▣";
    display: inline-block;
    margin-right: 6px;
    color: #2d6cdf;
    font-size: 11px;
}

.customer-subsection-heading {
    min-height: 34px;
    margin-top: 14px;
    margin-bottom: 10px;
}

.customer-subsection-heading strong {
    font-size: 12px;
}

.customer-basic-grid {
    display: grid;
    grid-template-columns: 180px minmax(280px, 1fr) minmax(220px, .75fr);
    gap: 12px;
}

.customer-code-field input {
    width: 170px !important;
    min-width: 170px !important;
    font-family: Consolas, "Courier New", monospace;
    letter-spacing: .2px;
}

.customer-invite-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(220px, .8fr);
    gap: 12px;
}

.customer-admin-editor .editor-field>label {
    margin-bottom: 5px;
    color: #3a4a61;
    font-size: 11px;
    font-weight: 700;
}

.customer-admin-editor .editor-field>input,
.customer-admin-editor .editor-field>textarea,
.customer-admin-editor .editor-field>select {
    height: 34px;
    border-color: #cfd8e6;
    border-radius: 5px;
}

.customer-admin-editor .section-toolbar.customer-section-toolbar {
    justify-content: flex-end;
    min-height: 42px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #edf0f5;
}

.customer-admin-editor .customer-tab-footer {
    margin-top: 14px;
}

.customer-admin-editor .customer-grid-section {
    margin-top: 14px;
}

.customer-admin-editor .role-permission-layout {
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 14px;
}

.customer-admin-editor .role-permission-detail {
    min-width: 0;
}

.customer-admin-editor .k-grid-header th.k-header,
.customer-admin-editor .k-grid-header th.k-header>.k-link {
    text-align: center !important;
    justify-content: center !important;
}

.customer-admin-layout>aside {
    border: 1px solid #dce3ee;
    border-radius: 5px;
    background: #fff;
    overflow: hidden;
}

.customer-admin-layout>aside .card-header {
    min-height: 48px;
    padding: 8px 10px;
    border-bottom: 1px solid #dce3ee;
    background: #f8faff;
}

.customer-admin-layout>aside #customerGrid {
    border: 0;
}

.customer-admin-layout>aside #customerGrid th:first-child,
.customer-admin-layout>aside #customerGrid td:first-child {
    min-width: 112px;
    width: 112px;
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .customer-basic-grid {
        grid-template-columns: 180px minmax(220px, 1fr);
    }
}

@media (max-width: 840px) {
    .customer-admin-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .customer-basic-grid,
    .customer-invite-grid,
    .customer-admin-editor .role-permission-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .customer-code-field input {
        width: 100% !important;
        min-width: 0 !important;
    }
}


/* ==========================================================================
 * v1.0.7 - 고객사 기본정보 필드 폭/간격 정상화
 * ========================================================================== */

/*
 * v1.0.6의 180px / 1fr / .75fr 구조는 필드별 폭이 지나치게 달랐다.
 * 상표 상세 기본정보와 동일하게 3열 균등 Grid로 맞춘다.
 */
.customer-admin-editor .customer-basic-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    column-gap: 16px !important;
    row-gap: 10px !important;
    padding: 0 2px 5px !important;
    align-items: start;
}

/*
 * 기존 공통 .editor-field input은 width:100% 상태에서 padding/border가
 * content-box로 더해져 Grid 칸을 침범할 수 있었다.
 * 고객사 관리에서는 모든 입력 요소를 border-box로 고정한다.
 */
.customer-admin-editor .editor-field {
    min-width: 0 !important;
    gap: 4px !important;
}

.customer-admin-editor .editor-field>input:not([type="hidden"]):not([type="file"]),
.customer-admin-editor .editor-field>textarea,
.customer-admin-editor .editor-field>select {
    box-sizing: border-box !important;
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    border: 1px solid #d4dbe6 !important;
    border-radius: 6px !important;
    background: #fff;
    color: #273247;
    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}

.customer-admin-editor .editor-field>input:not([type="hidden"]):not([type="file"]),
.customer-admin-editor .editor-field>select {
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 11px !important;
    line-height: 32px !important;
}

.customer-admin-editor .editor-field>input:hover,
.customer-admin-editor .editor-field>textarea:hover,
.customer-admin-editor .editor-field>select:hover {
    border-color: #b9c4d4 !important;
}

.customer-admin-editor .editor-field>input:focus,
.customer-admin-editor .editor-field>textarea:focus,
.customer-admin-editor .editor-field>select:focus {
    outline: none !important;
    border-color: #7193e8 !important;
    box-shadow: 0 0 0 3px rgba(36, 87, 214, .08) !important;
}

/* 자동생성 고객사 코드도 다른 필드와 같은 한 칸 폭을 사용한다. */
.customer-admin-editor .customer-code-field input {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

/* Kendo DropDownList도 동일한 Grid 칸 안에서 정확히 맞춘다. */
.customer-admin-editor .editor-field .k-dropdown,
.customer-admin-editor .editor-field .k-dropdownlist {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

/* 왼쪽 고객사 목록: CUST000003 같은 10자리 코드가 잘리지 않게 한다. */
.customer-admin-layout>aside #customerGrid th:first-child,
.customer-admin-layout>aside #customerGrid td:first-child {
    width: 130px !important;
    min-width: 130px !important;
    max-width: 130px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
}

.customer-admin-layout>aside #customerGrid td.customer-code-cell {
    overflow: visible !important;
    text-overflow: clip !important;
}

/* 태블릿 이하에서만 2열로 변경한다. */
@media (max-width: 1180px) {
    .customer-admin-editor .customer-basic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* 모바일/좁은 창은 1열 */
@media (max-width: 840px) {
    .customer-admin-editor .customer-basic-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}


/* ==========================================================================
 * v1.0.8 - 사용자 등록/수정 팝업 입력 필드 규격 통일
 * ========================================================================== */

/* 고객사 기본정보 화면과 동일한 2열·34px 입력 규격을 사용한다. */
#userEditor .editor-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 10px;
    align-items: start;
}

#userEditor .editor-field {
    min-width: 0;
    gap: 4px;
}

#userEditor .editor-field>input:not([type="hidden"]):not([type="file"]),
#userEditor .editor-field>select {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 11px !important;
    border: 1px solid #d4dbe6 !important;
    border-radius: 6px !important;
    background: #fff;
    color: #273247;
    line-height: 32px !important;
    box-sizing: border-box !important;
}

#userEditor .editor-field>input:hover,
#userEditor .editor-field>select:hover {
    border-color: #b9c4d4 !important;
}

#userEditor .editor-field>input:focus,
#userEditor .editor-field>select:focus {
    outline: none !important;
    border-color: #7193e8 !important;
    box-shadow: 0 0 0 3px rgba(36, 87, 214, .08) !important;
}

@media (max-width: 720px) {
    #userEditor .editor-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* ==========================================================================
 * v1.0.9 - 상표 목록 사건번호 링크 전환
 * ========================================================================== */

#trademarkGrid .trademark-case-link {
    color: #2457d6;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

#trademarkGrid .trademark-case-link:hover,
#trademarkGrid .trademark-case-link:focus {
    color: #1742ad;
    text-decoration-thickness: 2px;
}

/* 작업 열 제거 후: 이미지 + 13개 업무 열의 너비를 재배분한다. */
#trademarkGrid colgroup col:nth-child(1) {
    width: 6% !important;
}

#trademarkGrid colgroup col:nth-child(2) {
    width: 8% !important;
}

#trademarkGrid colgroup col:nth-child(3) {
    width: 12% !important;
}

#trademarkGrid colgroup col:nth-child(4) {
    width: 7% !important;
}

#trademarkGrid colgroup col:nth-child(5) {
    width: 8% !important;
}

#trademarkGrid colgroup col:nth-child(6) {
    width: 7% !important;
}

#trademarkGrid colgroup col:nth-child(7) {
    width: 10% !important;
}

#trademarkGrid colgroup col:nth-child(8) {
    width: 5% !important;
}

#trademarkGrid colgroup col:nth-child(9) {
    width: 4% !important;
}

#trademarkGrid colgroup col:nth-child(10) {
    width: 4% !important;
}

#trademarkGrid colgroup col:nth-child(11) {
    width: 9% !important;
}

#trademarkGrid colgroup col:nth-child(12) {
    width: 6% !important;
}

#trademarkGrid colgroup col:nth-child(13) {
    width: 7% !important;
}

#trademarkGrid colgroup col:nth-child(14) {
    width: 7% !important;
}
