/* ==========================================================
   K-TIP Quote System - Common UI
   ========================================================== */

:root {
    --ktip-bg: #eef2f5;
    --ktip-surface: #ffffff;

    --ktip-line: #d9e1e7;
    --ktip-line-strong: #bcc9d3;

    --ktip-text: #1f2933;
    --ktip-title: #263746;
    --ktip-muted: #758492;

    --ktip-primary: #3f6078;
    --ktip-primary-hover: #334f63;

    --ktip-soft: #edf3f7;
    --ktip-soft-hover: #e2ebf1;

    --ktip-danger: #c62828;
}


* {
    box-sizing: border-box;
}


html,
body {
    margin: 0;
    padding: 0;
}


body {
    font-family:
        Arial,
        "Noto Sans KR",
        sans-serif;

    background: var(--ktip-bg);
    color: var(--ktip-text);
}


/* ==========================================================
   공통 상단바
   ========================================================== */

.topbar {
    min-height: 68px !important;
    height: auto !important;

    padding: 8px 32px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px;

    background: var(--ktip-surface) !important;
    color: var(--ktip-text) !important;

    border-bottom: 1px solid var(--ktip-line);
    box-shadow:
        0 1px 8px
        rgba(31, 41, 51, 0.06);
}


.brand {
    display: flex !important;
    align-items: center !important;
    gap: 13px !important;

    color: var(--ktip-title) !important;

    font-size: 20px !important;
    font-weight: 700 !important;

    white-space: nowrap;
}


.brand-logo {
    display: block;

    width: auto;
    height: 42px;

    object-fit: contain;
}




.top-buttons,
.top-actions,
.user-area {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

/* ==========================================================
   공통 상단 버튼
   ========================================================== */

.topbar button,
.top-actions button,
.top-buttons button,
.logout-btn {
    padding: 8px 14px;

    border: 1px solid var(--ktip-line-strong) !important;
    border-radius: 6px;

    background: var(--ktip-surface) !important;
    color: var(--ktip-primary) !important;

    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.15s,
        border-color 0.15s,
        color 0.15s;
}


.topbar button:hover,
.top-actions button:hover,
.top-buttons button:hover,
.logout-btn:hover {
    background: var(--ktip-soft) !important;
    border-color: #8da2b2 !important;
}


/* ==========================================================
   모바일
   ========================================================== */

@media (max-width: 800px) {

    .topbar {
        padding: 8px 16px !important;
    }


    .brand span {
        display: none;
    }


    .brand-logo {
        height: 38px;
    }

}
