﻿/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    margin-top: 12px;
    max-width: none;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
}

/* Set widths on the form inputs since otherwise they're 100% wide */
input,
select,
textarea {
    max-width: 280px;
}

/* Responsive: Portrait tablets and up */
@media screen and (min-width: 768px) {
    .body-content {
        padding-left: 20px;
        padding-right: 20px;
    }
}

body {
    background: #f4f7f6;
    color: #17212b;
}

.login-page {
    font-family: "Segoe UI", "Malgun Gothic", Arial, sans-serif;
    min-height: calc(100vh - 145px);
    padding: 22px 0 36px;
}

.login-page input {
    max-width: none;
}

.login-hero {
    align-items: center;
    background: linear-gradient(135deg, #dce8e7, #eef4f3);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    min-height: 640px;
    overflow: hidden;
    padding: 52px;
    position: relative;
}

.login-hero::before {
    background:
        linear-gradient(180deg, rgba(244, 247, 246, 0.5), rgba(244, 247, 246, 0.72)),
        url("/대표이미지-2.png") center center / min(92vw, 1180px) auto no-repeat;
    content: "";
    filter: saturate(0.75);
    inset: 0;
    opacity: 0.62;
    position: absolute;
}

.login-hero::after {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.08) 62%, rgba(17, 24, 39, 0.12));
    content: "";
    inset: 0;
    position: absolute;
}

.login-panel {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(203, 216, 213, 0.9);
    border-radius: 8px;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.18);
    max-width: 560px;
    padding: 34px;
    position: relative;
    width: 100%;
    z-index: 1;
}

.login-brand {
    align-items: center;
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
}

.login-brand-icon,
.login-security-icon {
    align-items: center;
    display: inline-flex;
    justify-content: center;
}

.login-brand-icon {
    background: #12343b;
    border-radius: 8px;
    color: #ffffff;
    height: 54px;
    width: 54px;
}

.login-brand-icon svg,
.login-security-icon svg,
.login-feature-grid svg {
    fill: none;
    height: 22px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 22px;
}

.login-kicker {
    color: #2f7d79;
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.login-brand h1 {
    color: #101820;
    font-size: 34px;
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.15;
    margin: 0;
}

.login-copy {
    color: #52616a;
    font-size: 16px;
    line-height: 1.65;
    margin: 0 0 20px;
}

.login-feature-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 22px;
}

.login-feature-grid span {
    align-items: center;
    background: #f3f7f6;
    border: 1px solid #dce5e2;
    border-radius: 8px;
    color: #24423f;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    gap: 8px;
    justify-content: center;
    min-height: 46px;
    padding: 10px;
}

.login-form {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    margin-bottom: 18px;
}

.login-form label {
    color: #42525b;
    font-size: 13px;
    font-weight: 800;
}

.login-input {
    background: #ffffff;
    border: 1px solid #cbd8d5;
    border-radius: 6px;
    color: #17212b;
    display: block;
    margin-top: 7px;
    min-height: 42px;
    padding: 9px 11px;
    width: 100%;
}

.login-input:focus {
    border-color: #2f7d79;
    box-shadow: 0 0 0 3px rgba(47, 125, 121, 0.14);
    outline: 0;
}

.login-button {
    align-self: end;
    background: #2f7d79;
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    font-weight: 800;
    min-height: 42px;
    padding: 9px 18px;
    white-space: nowrap;
}

.login-button:hover {
    background: #256b67;
}

.login-security {
    align-items: flex-start;
    background: #fff8e8;
    border: 1px solid #f0d49b;
    border-radius: 8px;
    color: #5d4a1f;
    display: flex;
    gap: 12px;
    padding: 13px 14px;
}

.login-security-icon {
    color: #c27803;
    flex: 0 0 auto;
    margin-top: 1px;
}

.login-security p {
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
}

.login-security span {
    display: block;
}

.app-nav {
    background: #111827 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-nav .navbar-brand {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
    margin-right: 28px;
}

.app-nav-inner {
    max-width: none;
    padding-left: 24px;
    padding-right: 24px;
    width: 100%;
}

.app-nav .nav-link {
    color: #cbd5e1 !important;
    font-size: 14px;
    font-weight: 600;
    padding-left: 14px !important;
    padding-right: 14px !important;
}

.app-nav .nav-link:hover {
    color: #ffffff !important;
}

.nav-account {
    align-items: center;
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.nav-user,
.nav-user-link {
    color: #d8e5e3;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.nav-user-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.nav-settings-button {
    align-items: center;
    border: 1px solid rgba(216, 229, 227, 0.42);
    border-radius: 6px;
    color: #d8e5e3;
    display: inline-flex;
    font-size: 20px;
    height: 34px;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
    width: 34px;
}

.nav-settings-button:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
}

.logout-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 6px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    padding: 7px 10px;
    text-decoration: none;
    white-space: nowrap;
}

.logout-button:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.crm-page,
.crm-modal {
    font-family: "Segoe UI", "Malgun Gothic", Arial, sans-serif;
    font-size: 13px;
}

.crm-page {
    padding: 4px 0 22px;
    width: 100%;
}

.crm-page input,
.crm-page select,
.crm-page textarea,
.crm-modal input,
.crm-modal select,
.crm-modal textarea {
    max-width: none;
}

.crm-topbar {
    color: #17212b;
    margin-bottom: 10px;
    padding: 0 2px;
}

.crm-kicker,
.section-label {
    color: #2f7d79;
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.crm-topbar .crm-kicker {
    color: #2f7d79;
}

.crm-topbar h1,
.customer-summary h2,
.section-heading h3,
.modal-header h3,
.empty-state h2 {
    font-weight: 800;
    letter-spacing: 0;
    margin: 0;
}

.crm-topbar h1 {
    font-size: 24px;
    line-height: 1.18;
}

.customer-summary h2 {
    font-size: 20px;
    line-height: 1.22;
}

.section-heading h3 {
    font-size: 17px;
    line-height: 1.25;
}

.modal-header h3,
.empty-state h2 {
    font-size: 18px;
    line-height: 1.25;
}

.crm-layout {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
}

.crm-sidebar,
.crm-main,
.crm-section,
.customer-summary,
.info-grid,
.empty-state {
    background: #ffffff;
    border: 1px solid #dce5e2;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
}

.crm-sidebar {
    align-self: start;
    max-height: calc(100vh - 190px);
    overflow: auto;
    padding: 14px;
    position: sticky;
    top: 14px;
}

.crm-main {
    background: transparent;
    border: 0;
    box-shadow: none;
    min-width: 0;
}

.customer-list-view,
.customer-detail-view {
    min-width: 0;
}

.customer-directory {
    overflow: visible;
}

.customer-directory-tools {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px 0;
}

.search-default-panel {
    display: contents;
}

.customer-directory-tools > .crm-input:first-child {
    flex: 1 1 280px;
}

.search-default-panel > .crm-input:first-child {
    flex: 1 1 280px;
}

.paging-toolbar {
    align-items: center;
    color: #52616a;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 14px 0;
}

.detail-paging-toolbar {
    background: #ffffff;
    border-top: 1px solid #e1e9e6;
    margin-bottom: 10px;
    padding-bottom: 8px;
}

.paging-info {
    color: #42525b;
    font-size: 12px;
    font-weight: 800;
    margin-right: auto;
}

.pager-buttons {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.page-size-control {
    align-items: center;
    color: #42525b;
    display: inline-flex !important;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 800;
    gap: 6px;
    white-space: nowrap;
}

.page-size-input {
    min-height: 30px;
    padding: 4px 7px;
    width: 64px;
}

.customer-directory-list {
    overflow-x: auto;
    padding: 10px 14px 14px;
}

.crm-directory-table {
    min-width: 980px;
}

.crm-directory-table th,
.crm-directory-table td {
    white-space: normal;
}

.sort-header,
.crm-table th a {
    color: #42525b;
    display: inline-block;
    font-weight: 800;
    text-decoration: none;
}

.sort-header:hover,
.crm-table th a:hover {
    color: #2f7d79;
    text-decoration: underline;
}

.customer-table-row:hover td {
    background: #f0f7f5;
}

.customer-table-row.selected td {
    background: #e6f3f0;
}

.table-link {
    color: #2563a8;
    font-weight: 700;
    text-decoration: none;
}

.table-link:hover {
    text-decoration: underline;
}

.table-link.strong {
    color: #1d4f8f;
}

.panel-title-row,
.section-heading,
.modal-header,
.summary-actions,
.modal-actions {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.panel-title-row {
    margin-bottom: 12px;
}

.section-actions {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.crm-search-row {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 12px;
}

.crm-input {
    background: #ffffff;
    border: 1px solid #cbd8d5;
    border-radius: 6px;
    color: #17212b;
    font-size: 13px;
    min-height: 34px;
    padding: 6px 9px;
    width: 100%;
}

.crm-input:focus {
    border-color: #2f7d79;
    box-shadow: 0 0 0 3px rgba(47, 125, 121, 0.14);
    outline: 0;
}

.crm-input.page-size-input {
    flex: 0 0 64px;
    min-height: 30px;
    padding: 4px 7px;
    width: 64px;
}

.readonly-input {
    background: #f3f7f6;
    color: #52616a;
}

.crm-button,
.icon-action {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    justify-content: center;
    min-height: 32px;
    padding: 5px 11px;
    text-decoration: none;
    white-space: nowrap;
}

.crm-button.primary,
.icon-action.primary {
    background: #2f7d79;
    color: #ffffff;
}

.crm-button.accent {
    background: #c27803;
    color: #ffffff;
}

.crm-button.danger {
    background: #c0392b;
    border-color: #a93226;
    color: #ffffff;
}

.crm-button.subtle {
    background: #edf4f2;
    border-color: #d2dfdc;
    color: #24423f;
}

.crm-button.small {
    min-height: 30px;
    padding: 5px 10px;
}

.crm-button.tiny {
    font-size: 12px;
    min-height: 28px;
    padding: 4px 8px;
}

.crm-button:disabled,
.crm-button[disabled] {
    cursor: default;
    opacity: 0.48;
}

.crm-button.compact {
    min-height: 32px;
    padding: 5px 10px;
}

.row-action-button {
    min-width: 48px;
}

.modal-action-spacer {
    flex: 1 1 auto;
}

.crm-alert {
    background: #fff7e6;
    border: 1px solid #f1c46a;
    border-radius: 8px;
    color: #704c00;
    display: block;
    font-weight: 700;
    margin-bottom: 14px;
    padding: 11px 14px;
}

.account-panel {
    max-width: 760px;
}

.account-form {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.account-form label {
    color: #42525b;
    display: grid;
    font-size: 12px;
    font-weight: 800;
    gap: 6px;
}

.account-actions {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 4px;
}

.customer-row {
    border: 1px solid transparent;
    border-radius: 8px;
    color: #17212b;
    display: block;
    margin-bottom: 8px;
    padding: 12px;
    text-decoration: none;
}

.customer-directory-list .customer-row {
    background: #ffffff;
    border-color: #dce5e2;
    margin-bottom: 0;
    min-height: 84px;
}

.customer-row:hover {
    background: #f0f7f5;
    color: #17212b;
}

.customer-row.selected {
    background: #e6f3f0;
    border-color: #7fc2bb;
}

.customer-row-main,
.customer-row-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.customer-row-name {
    font-weight: 800;
}

.customer-row-phone,
.customer-row-meta {
    color: #667780;
    font-size: 12px;
}

.customer-summary {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 12px 14px;
}

.customer-summary p {
    color: #607079;
    margin: 6px 0 0;
}

.info-grid {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 10px;
    overflow: hidden;
}

.modal-info-grid {
    margin-bottom: 0;
}

.info-item {
    background: #ffffff;
    min-height: 52px;
    padding: 9px 12px;
}

.info-item.wide {
    grid-column: 1 / -1;
}

.info-item span {
    color: #667780;
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
}

.info-item strong {
    color: #17212b;
    font-size: 13px;
    font-weight: 800;
    word-break: break-word;
}

.crm-section {
    margin-bottom: 10px;
    overflow-x: auto;
    overflow-y: hidden;
}

.section-heading {
    border-bottom: 1px solid #e1e9e6;
    padding: 10px 14px;
}

.crm-table {
    border-collapse: collapse;
    margin: 0;
    width: 100%;
}

.sales-table {
    min-width: 1380px;
}

.license-status-note {
    background: #f7faf9;
    border-top: 1px solid #e1e9e6;
    color: #42525b;
    font-size: 12px;
    font-weight: 700;
    margin: 0;
    padding: 10px 14px;
    white-space: normal;
}

.modal-table {
    margin-top: 14px;
}

.analytics-filter {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(160px, 220px) minmax(160px, 220px) auto;
    padding: 10px 14px 0;
}

.analytics-filter label {
    color: #42525b;
    display: grid;
    font-size: 12px;
    font-weight: 800;
    gap: 6px;
}

.analytics-metrics {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 10px 14px 14px;
}

.analytics-metric {
    background: #f7faf9;
    border: 1px solid #e1e9e6;
    min-height: 74px;
    padding: 10px;
}

.analytics-metric span,
.analytics-metric small {
    color: #667780;
    display: block;
    font-size: 12px;
}

.analytics-metric strong {
    color: #17212b;
    display: block;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.1;
    margin: 6px 0;
}

.analytics-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bar-chart {
    display: grid;
    gap: 10px;
    padding: 10px 14px 14px;
}

.version-chart-list {
    display: grid;
    gap: 1px;
    padding: 10px 14px 14px;
}

.version-chart-block {
    background: #fbfdfc;
    border: 1px solid #e1e9e6;
    padding: 10px;
}

.version-chart-title {
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 8px;
}

.compact-chart {
    padding: 0;
}

.chart-row {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: 92px minmax(140px, 1fr) 44px;
}

.chart-label {
    color: #42525b;
    font-size: 12px;
    font-weight: 800;
}

.chart-track {
    background: #e8efed;
    border-radius: 999px;
    display: block;
    height: 12px;
    overflow: hidden;
}

.chart-bar {
    background: #2f7d79;
    border-radius: inherit;
    display: block;
    height: 100%;
    min-width: 0;
}

.chart-bar.accent {
    background: #587ea6;
}

.chart-bar-new {
    background: #2f7d79;
}

.chart-bar-upgrade {
    background: #587ea6;
}

.chart-bar-cnt {
    background: #c27803;
}

.chart-row strong {
    color: #17212b;
    font-size: 13px;
    text-align: right;
}

.chart-title-new {
    color: #197044;
}

.chart-title-upgrade {
    color: #3651a4;
}

.chart-title-cnt {
    color: #9a5a00;
}

.crm-table th {
    background: #f3f7f6;
    color: #42525b;
    font-size: 12px;
    font-weight: 800;
    padding: 8px 10px;
    white-space: nowrap;
}

.crm-table td {
    border-top: 1px solid #e8efed;
    color: #26343d;
    font-size: 13px;
    padding: 8px 10px;
    vertical-align: top;
    word-break: break-word;
}

.crm-table tr:hover td {
    background: #fbfdfc;
}

.crm-table td.cell-action-clickable {
    color: #1d4f8f;
    cursor: pointer;
    font-weight: 700;
}

.crm-table td.cell-action-clickable:hover {
    text-decoration: underline;
}

.crm-table td.cell-action-clickable:focus {
    background: #eef7f5;
    outline: 2px solid #2f7d79;
    outline-offset: -2px;
}

.grid-pager td {
    background: #ffffff;
    border-top: 1px solid #e1e9e6;
    padding: 9px 10px;
}

.grid-pager table {
    margin-left: auto;
}

.grid-pager a,
.grid-pager span {
    align-items: center;
    border: 1px solid #d2dfdc;
    border-radius: 6px;
    color: #24423f;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    justify-content: center;
    margin-left: 4px;
    min-width: 28px;
    padding: 4px 8px;
    text-decoration: none;
}

.grid-pager span {
    background: #2f7d79;
    border-color: #2f7d79;
    color: #ffffff;
}

.grid-pager a:hover {
    background: #edf4f2;
    color: #17212b;
}

.checkbox-label {
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 8px;
    min-height: 42px;
}

.empty-state {
    padding: 40px;
    text-align: center;
}

body.has-modal {
    overflow: hidden;
}

footer p {
    font-size: 13px;
}

.modal-layer {
    align-items: center;
    background: rgba(15, 23, 42, 0.48);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 1050;
}

.modal-layer.is-open {
    display: flex;
}

.crm-modal {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
    max-height: calc(100vh - 48px);
    max-width: 720px;
    overflow: auto;
    padding: 18px;
    width: min(720px, 100%);
}

.crm-modal.large {
    max-width: 860px;
    width: min(860px, 100%);
}

.settings-modal {
    max-width: 1040px !important;
    width: min(1040px, 100%) !important;
}

.settings-page {
    margin: 0 auto 36px;
    max-width: 1280px;
}

.settings-page-header {
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #dce5e2;
    border-radius: 8px;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 20px 22px;
}

.settings-page-header .section-label {
    margin-bottom: 4px;
}

.settings-page-header h1 {
    color: #17212b;
    font-size: 24px;
    margin: 0;
}

.settings-page-header p {
    color: #61717a;
    font-size: 13px;
    margin: 7px 0 0;
}

.settings-page-header .crm-button {
    flex: 0 0 auto;
}

.detail-sections {
    display: flex;
    flex-direction: column;
}

.detail-sections > [hidden] {
    display: none !important;
}

.settings-block {
    border: 1px solid #dce5e2;
    border-radius: 8px;
    margin: 0 0 14px;
    overflow: hidden;
}

.settings-block-heading {
    align-items: center;
    background: #f7faf9;
    border-bottom: 1px solid #e1e9e6;
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
}

.settings-block-heading .section-label {
    margin-bottom: 2px;
}

.settings-block h4,
.settings-column-group h4 {
    color: #17212b;
    font-size: 14px;
    font-weight: 800;
    margin: 0;
}

.settings-restore-row {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.4fr) auto;
    padding: 12px;
}

.settings-backup-summary {
    align-items: center;
    color: #50616a;
    display: flex;
    font-size: 13px;
    gap: 16px;
    justify-content: space-between;
    padding: 12px;
}

.settings-safe-note {
    color: #a14c1a;
    font-weight: 700;
}

.settings-restore-card {
    align-items: center;
    background: #fffaf6;
    border-top: 1px solid #f0dfd1;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(220px, 0.8fr) minmax(440px, 1.7fr);
    padding: 16px 12px;
}

.settings-restore-card strong {
    color: #713015;
    font-size: 14px;
}

.settings-restore-card p {
    color: #7a6258;
    font-size: 12px;
    margin: 5px 0 0;
}

.settings-restore-controls {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(180px, 1fr) auto auto;
}

.settings-option-list {
    display: grid;
    gap: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-option-row {
    align-items: center;
    border-bottom: 1px solid #e8efed;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    min-height: 44px;
    padding: 7px 10px;
}

.settings-option-list .settings-option-row:nth-last-child(-n+2) {
    border-bottom: 0;
}

.settings-option-row.compact {
    font-size: 12px;
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.settings-confirmation,
.compact-check {
    align-items: center;
    display: inline-flex;
    gap: 6px;
    margin: 0;
    white-space: nowrap;
}

.settings-order-label {
    align-items: center;
    color: #42525b;
    display: inline-flex;
    font-size: 12px;
    gap: 5px;
    margin: 0;
    white-space: nowrap;
}

.settings-order-input {
    min-height: 28px;
    padding: 3px 5px;
    text-align: center;
    width: 54px;
}

.settings-column-groups {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px;
}

.settings-column-group {
    border: 1px solid #e1e9e6;
    border-radius: 6px;
    overflow: hidden;
}

.settings-column-group h4 {
    background: #f7faf9;
    border-bottom: 1px solid #e1e9e6;
    padding: 8px 10px;
}

.settings-column-group .settings-option-row:last-child {
    border-bottom: 0;
}

.settings-page-actions {
    border-top: 1px solid #dce5e2;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 22px;
    padding-top: 18px;
}

@media (max-width: 720px) {
    .settings-page-header,
    .settings-backup-summary,
    .settings-page-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .settings-restore-row,
    .settings-restore-card,
    .settings-restore-controls,
    .settings-option-list,
    .settings-column-groups {
        grid-template-columns: 1fr;
    }

    .settings-option-list .settings-option-row:nth-last-child(-n+2) {
        border-bottom: 1px solid #e8efed;
    }

    .settings-option-list .settings-option-row:last-child {
        border-bottom: 0;
    }
}

.picker-layer {
    z-index: 1060;
}

.picker-modal {
    max-width: 780px;
    width: min(780px, 100%);
}

.modal-header {
    border-bottom: 1px solid #e1e9e6;
    margin: -2px 0 14px;
    padding-bottom: 12px;
}

.modal-close {
    background: #edf4f2;
    border: 0;
    border-radius: 6px;
    color: #33464f;
    font-size: 22px;
    height: 34px;
    line-height: 1;
    width: 34px;
}

.modal-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.modal-grid label {
    color: #42525b;
    font-size: 12px;
    font-weight: 800;
}

.modal-grid .full {
    grid-column: 1 / -1;
}

.inline-control {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.picker-search-row {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 8px;
}

.sale-picker-results {
    display: none;
    margin-top: 6px;
    max-height: 150px;
    overflow-y: auto;
}

.picker-result-list {
    border-top: 1px solid #e1e9e6;
    margin-top: 8px;
    max-height: min(58vh, 520px);
    padding-top: 8px;
}

.sale-picker-summary {
    color: #5c6b75;
    font-size: 12px;
    font-weight: 800;
    min-height: 18px;
}

.sale-picker-results.is-open {
    display: grid;
    gap: 5px;
}

.sale-picker-result {
    background: #f7fbfa;
    border: 1px solid #d8e4e1;
    border-radius: 6px;
    color: #17212b;
    cursor: pointer;
    display: grid;
    gap: 2px;
    padding: 7px 9px;
    text-align: left;
    width: 100%;
}

.sale-picker-result:hover {
    border-color: #2f7d79;
    box-shadow: 0 0 0 2px rgba(47, 125, 121, 0.1);
}

.sale-picker-title {
    font-size: 12px;
    font-weight: 800;
}

.sale-picker-meta,
.sale-picker-empty {
    color: #5c6b75;
    font-size: 11px;
    font-weight: 700;
}

.sale-picker-empty {
    background: #f7fbfa;
    border: 1px dashed #d8e4e1;
    border-radius: 6px;
    padding: 8px 9px;
}

.license-contact-search {
    display: inline-grid;
    gap: 8px;
    grid-template-columns: minmax(180px, 260px) auto;
}

.license-search-input {
    border: 1px solid #cbd8d5;
    border-radius: 6px;
    min-height: 34px;
    padding: 6px 10px;
    width: 100%;
}

.license-search-input:focus {
    border-color: #2f7d79;
    box-shadow: 0 0 0 3px rgba(47, 125, 121, 0.14);
    outline: 0;
}

.license-search-button {
    background: #edf4f2;
    border: 1px solid #d2dfdc;
    border-radius: 6px;
    color: #24423f;
    cursor: pointer;
    font-weight: 700;
    min-height: 34px;
    padding: 6px 12px;
}

.license-contact-result {
    color: #2f7d79;
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    margin-left: 8px;
}

.modal-actions {
    border-top: 1px solid #e1e9e6;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 16px;
}

@media screen and (max-width: 992px) {
    .login-hero {
        min-height: 560px;
        padding: 28px;
    }

    .login-hero::before {
        background:
            linear-gradient(180deg, rgba(244, 247, 246, 0.96) 0%, rgba(244, 247, 246, 0.86) 56%, rgba(244, 247, 246, 0.62) 100%),
            url("/대표이미지-2.png") center bottom / min(92vw, 680px) auto no-repeat;
    }

    .crm-topbar,
    .customer-summary {
        align-items: stretch;
        flex-direction: column;
    }

    .crm-layout {
        grid-template-columns: 1fr;
    }

    .nav-account {
        align-items: flex-start;
        margin-left: 14px;
        margin-top: 8px;
    }

    .crm-sidebar {
        max-height: none;
        position: static;
    }
}

@media screen and (min-width: 721px) and (max-width: 1100px) {
    .body-content {
        padding-left: 14px;
        padding-right: 14px;
    }

    .app-nav-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .app-nav .navbar-brand {
        font-size: 17px;
        margin-right: 18px;
    }

    .app-nav .nav-link {
        font-size: 13px;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .nav-account {
        gap: 8px;
    }

    .login-page {
        padding-top: 12px;
    }

    .login-hero {
        min-height: 520px;
        padding: 28px;
    }

    .login-hero::before {
        background:
            linear-gradient(180deg, rgba(244, 247, 246, 0.52), rgba(244, 247, 246, 0.76)),
            url("/대표이미지-2.png") center center / min(96vw, 980px) auto no-repeat;
        opacity: 0.64;
    }

    .login-panel {
        max-width: min(560px, calc(100vw - 56px));
        padding: 28px;
    }

    .login-brand h1 {
        font-size: 30px;
    }

    .login-copy {
        font-size: 15px;
    }

    .crm-page {
        padding-bottom: 18px;
    }

    .crm-topbar h1 {
        font-size: 23px;
    }

    .section-heading,
    .customer-summary {
        padding-left: 12px;
        padding-right: 12px;
    }

    .customer-directory-tools,
    .paging-toolbar,
    .analytics-filter {
        padding-left: 12px;
        padding-right: 12px;
    }

    .analytics-grid {
        grid-template-columns: 1fr;
    }

    .crm-directory-table {
        min-width: 880px;
    }

    .sales-table {
        min-width: 1180px;
    }

    .crm-table th,
    .crm-table td {
        padding: 8px;
    }

    .crm-modal {
        width: min(820px, calc(100vw - 32px));
    }
}

@media screen and (max-width: 720px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    input,
    select,
    textarea {
        max-width: 100%;
    }

    .body-content {
        margin-top: 8px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .app-nav-inner {
        padding-left: 12px;
        padding-right: 12px;
    }

    .app-nav .navbar-brand {
        font-size: 16px;
        margin-right: 8px;
        max-width: calc(100vw - 86px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .app-nav .navbar-toggler {
        border-color: rgba(255, 255, 255, 0.18);
        min-height: 38px;
        padding: 5px 9px;
    }

    .app-nav .navbar-collapse {
        background: #111827;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        margin: 10px -12px -8px;
        padding: 8px 12px 12px;
    }

    .app-nav .nav-link {
        padding: 8px 0 !important;
    }

    .nav-account {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        flex-direction: row;
        margin-left: 0;
        margin-top: 8px;
        padding-top: 10px;
    }

    .login-page {
        min-height: auto;
        padding: 0 0 18px;
    }

    .login-hero {
        align-items: center;
        background: #dce9e8;
        border-radius: 8px;
        min-height: 0;
        padding: 10px;
    }

    .login-hero::before {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(232, 242, 240, 0.82)),
            url("/대표이미지-2.png") center center / 720px auto no-repeat;
        opacity: 0.7;
    }

    .login-hero::after {
        display: block;
    }

    .login-panel {
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
        padding: 20px;
        width: 100%;
    }

    .login-brand {
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 14px;
    }

    .login-brand-icon {
        border-radius: 8px;
        flex: 0 0 44px;
        height: 44px;
        width: 44px;
    }

    .login-brand-icon svg,
    .login-security-icon svg,
    .login-feature-grid svg {
        flex: 0 0 auto;
        height: 20px;
        max-height: 20px;
        max-width: 20px;
        width: 20px;
    }

    .login-kicker {
        font-size: 11px;
    }

    .login-brand h1 {
        font-size: 25px;
        line-height: 1.14;
        word-break: keep-all;
    }

    .login-copy {
        font-size: 14px;
        line-height: 1.58;
        margin-bottom: 14px;
    }

    .login-feature-grid,
    .login-form {
        grid-template-columns: 1fr;
        margin-bottom: 14px;
    }

    .login-feature-grid {
        gap: 8px;
    }

    .login-feature-grid span {
        justify-content: flex-start;
        min-height: 40px;
        padding: 8px 10px;
    }

    .login-form {
        gap: 11px;
    }

    .login-input,
    .login-button {
        min-height: 40px;
    }

    .login-button {
        width: 100%;
    }

    .login-security {
        gap: 9px;
        padding: 11px 12px;
    }

    .login-security p {
        font-size: 12px;
    }

    .crm-page {
        padding-bottom: 16px;
    }

    .crm-topbar {
        margin-bottom: 8px;
    }

    .crm-topbar h1 {
        font-size: 22px;
    }

    .crm-section,
    .customer-summary,
    .info-grid,
    .empty-state {
        border-radius: 7px;
        box-shadow: 0 8px 18px rgba(17, 24, 39, 0.05);
        margin-bottom: 8px;
    }

    .section-heading,
    .summary-actions,
    .modal-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .section-actions,
    .summary-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .customer-summary {
        padding: 11px 12px;
    }

    .customer-summary h2 {
        font-size: 19px;
    }

    .info-item {
        min-height: auto;
        padding: 9px 10px;
    }

    .customer-directory-tools,
    .paging-toolbar,
    .analytics-filter {
        align-items: stretch;
        flex-direction: column;
        padding-left: 10px;
        padding-right: 10px;
    }

    .customer-directory-tools > .crm-input:first-child,
    .search-default-panel > .crm-input:first-child {
        flex-basis: auto;
        width: 100%;
    }

    .paging-info {
        margin-right: 0;
    }

    .pager-buttons,
    .page-size-control {
        width: 100%;
    }

    .pager-buttons .crm-button {
        flex: 1 1 0;
    }

    .crm-input.page-size-input {
        flex: 1 1 auto;
        width: 100%;
    }

    .customer-directory-list {
        padding: 8px 10px 10px;
    }

    .crm-directory-table {
        min-width: 760px;
    }

    .sales-table {
        min-width: 1120px;
    }

    .analytics-metric {
        min-height: auto;
    }

    .analytics-filter,
    .analytics-grid,
    .analytics-metrics,
    .info-grid,
    .modal-grid {
        grid-template-columns: 1fr;
    }

    .chart-row {
        grid-template-columns: 74px minmax(120px, 1fr) 36px;
    }

    .crm-search-row,
    .customer-directory-tools,
    .inline-control,
    .license-contact-search {
        grid-template-columns: 1fr;
    }

    .license-contact-result {
        display: block;
        margin: 6px 0 0;
    }

    .crm-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .crm-table th,
    .crm-table td {
        font-size: 12px;
        padding: 8px;
    }

    .grid-pager table {
        margin-left: 0;
    }

    .grid-pager a,
    .grid-pager span {
        margin-bottom: 4px;
    }

    .crm-modal {
        border-radius: 8px;
        max-height: calc(100vh - 20px);
        padding: 14px;
        width: calc(100vw - 20px);
    }
}
