:root {
    --primary-color: #009956;
    --gray-color: #ecf1f5;
    --max-width: 480px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
}

button {
    font-family: inherit;
    cursor: pointer;
}

input, textarea {
    font-family: inherit;
}

/* ==================== 공통 프로젝트/그룹 선택 (PC GNB와 동일) ==================== */
/* 헤더(56px) 아래에 오도록 여백 추가 - 없으면 프로젝트 선택이 고정 헤더에 가려짐 */
.mobile-filter-section {
    background-color: #fff;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-color);
    width: 100%;
    max-width: var(--max-width);
    margin: 56px auto 0;
    overflow: hidden;
    box-sizing: border-box;
}

.mobile-filter-row {
    margin-bottom: 8px;
    min-width: 0;
}

.mobile-filter-row:last-child {
    margin-bottom: 0;
}

.mobile-filter-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 12px 36px 12px 16px;
    font-size: 15px;
    color: #333;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    box-sizing: border-box;
}

.mobile-filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ==================== 사이드바 헤더 아이콘 (알림/계정) ==================== */
.sidebar-header-icons {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    margin-right: 4px;
}

.sidebar-header-icons .sidebar-icon-btn {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 8px;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.sidebar-header-icons .sidebar-icon-btn:hover,
.sidebar-header-icons .sidebar-icon-btn:active {
    background-color: rgba(255, 255, 255, 0.15);
}

.sidebar-header-icons .sidebar-icon-btn img {
    width: 20px;
    height: 20px;
}

/* ==================== 계정(사람) 드롭다운 ==================== */
.dash-account-util {
    position: fixed;
    z-index: 200;
    top: 60px;
    right: 12px;
    width: 220px;
    max-width: calc(100vw - 24px);
    background: #fff;
    border: 1px solid #e1e6ea;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    display: none;
    overflow: hidden;
}

.dash-account-util.active {
    display: block;
}

.dash-account-info {
    padding: 14px 16px;
    border-bottom: 1px solid #eef0f3;
}

.dash-account-name {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
}

.dash-account-grade,
.dash-account-dept {
    margin: 4px 0 0;
    font-size: 12.5px;
    color: #6b7280;
}

.dash-account-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 46px;
    font-size: 14px;
    color: #374151;
    text-decoration: none;
    background: #f4f6f7;
}

.dash-account-logout:active {
    background: #e9edee;
}

.dash-account-logout-icon {
    display: block;
    width: 12px;
    height: 15px;
}

/* 공지 상세 모달 (partials/notice_modal.html, 전 페이지 공통 include) — 기본 숨김 처리가
   여기 있어야 dashboard.css를 로드하지 않는 페이지(파일목록 등)에서도 모달이 안 새어 보인다. */
.dash-nm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(10, 40, 26, .45);
    align-items: flex-end;
    justify-content: center;
}

.dash-nm-overlay.show {
    display: flex;
}

.dash-nm-box {
    position: relative;
    background: #fff;
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: var(--max-width);
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dash-nm-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #009956, #007a45);
    color: #fff;
}

.dash-nm-head-text {
    min-width: 0;
    flex: 1;
}

.dash-nm-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .04em;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, .22);
    padding: 2px 9px;
    border-radius: 999px;
}

.dash-nm-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    word-break: break-word;
}

.dash-nm-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, .9);
    font-size: 12px;
}

.dash-nm-meta .dash-nm-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dash-nm-meta .dash-nm-meta-label {
    color: rgba(255, 255, 255, .7);
}

.dash-nm-meta .dash-nm-dot {
    color: rgba(255, 255, 255, .45);
}

.dash-nm-meta .dash-nm-pin {
    background: #fff;
    color: #c0362a;
    font-weight: 700;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
}

.dash-nm-close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    padding: 0;
    font-size: 18px;
    line-height: 1;
    color: #fff;
    background: rgba(255, 255, 255, .18);
    border: 0;
    border-radius: 7px;
    cursor: pointer;
}

.dash-nm-body {
    padding: 18px;
    font-size: 14px;
    line-height: 1.8;
    color: #2a3a4c;
    word-break: break-word;
    overflow-y: auto;
    flex: 1 1 auto;
}

.dash-nm-body img { max-width: 100%; height: auto; }
.dash-nm-body p { margin: 0 0 10px; }
.dash-nm-body a { color: #007a45; text-decoration: underline; }

.dash-nm-attach-wrap {
    padding: 14px 16px 16px;
    background: #f0faf4;
    border-top: 1px solid #d9efe3;
    flex-shrink: 0;
}

.dash-nm-attach-label {
    font-size: 12px;
    font-weight: 700;
    color: #4f7a64;
    margin: 0 0 8px 4px;
}

.dash-nm-attach {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-nm-attach a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #2a3a4c;
    background: #fff;
    border: 1px solid #e2ece6;
    border-radius: 10px;
    padding: 10px 12px;
    text-decoration: none;
}

.dash-nm-attach-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.dash-nm-attach-size {
    flex-shrink: 0;
    color: #8a99ab;
    font-size: 12px;
}
