/* =====================================================================
   mac 셸 2단계: 앱 내부 스킨. html[data-shell="mac"] 일 때만 적용된다.
   Finder, 텍스트 편집기, 미리보기, 메시지, ERP 브라우저 창, 대화상자, 스티커 메모 위젯.
   ===================================================================== */

/* ===== Finder (파일 탐색기) ===== */
html[data-shell="mac"] .ex-app {
  background: #fff;
  font-size: 13px;
}

html[data-shell="mac"] .ex-toolbar {
  height: 38px;
  padding: 0 10px;
  background: #f6f6f8;
  border-bottom: 1px solid #dcdce0;
  gap: 2px;
}

html[data-shell="mac"] .ex-nav-btn {
  width: 26px;
  height: 24px;
  border-radius: 5px;
  font-size: 14px;
  color: #555;
}

html[data-shell="mac"] .ex-nav-btn:disabled {
  color: #c4c4c8;
}

html[data-shell="mac"] .ex-nav-btn[data-nav="up"] {
  display: none;
}

/* 위 주소 표시줄은 숨긴다. 경로는 아래 경로 막대에 보인다. 검색 칸은 오른쪽 끝으로 */
html[data-shell="mac"] .ex-address {
  display: none;
}

html[data-shell="mac"] .ex-search {
  margin-left: auto;
}

html[data-shell="mac"] .ex-search-input {
  height: 24px;
  border-color: #d5d5da;
  border-radius: 6px 0 0 6px;
}

html[data-shell="mac"] .ex-search-btn {
  height: 24px;
  border-color: #d5d5da;
  border-radius: 0 6px 6px 0;
}

html[data-shell="mac"] .ex-sidebar {
  flex-basis: 180px;
  background: #f3f3f6;
  border-right-color: #dcdce0;
  font-size: 13px;
  padding: 8px 8px;
}

html[data-shell="mac"] .ex-side-title {
  padding: 8px 10px 3px;
  color: #8e8e93;
  font-size: 11px;
  font-weight: 600;
}

html[data-shell="mac"] .ex-side-item {
  height: 24px;
  padding: 0 10px;
  border-radius: 6px;
  gap: 8px;
}

html[data-shell="mac"] .ex-side-item:hover {
  background: #e6e6ea;
}

html[data-shell="mac"] .ex-side-item.is-active {
  background: #d9d9de;
}

html[data-shell="mac"] .ex-side-icon,
html[data-shell="mac"] .ex-side-icon svg {
  width: 17px;
  height: 17px;
}

html[data-shell="mac"] .ex-list th {
  height: 24px;
  padding: 0 8px;
  color: #6e6e73;
  font-size: 11px;
  font-weight: 400;
  border-right: none;
  border-bottom: 1px solid #e3e3e6;
}

html[data-shell="mac"] .ex-list td {
  height: 22px;
  padding: 0 8px;
  line-height: 22px;
  font-size: 13px;
}

/* 줄무늬 */
html[data-shell="mac"] .ex-row:nth-child(even) td {
  background: #f4f5f5;
}

html[data-shell="mac"] .ex-row:hover td {
  background: #ebebef;
}

html[data-shell="mac"] .ex-row.is-selected td,
html[data-shell="mac"] .ex-row.is-selected:hover td {
  background: var(--mac-accent);
  color: #fff;
}

/* 아래 경로 막대와 상태 표시줄 */
.ex-pathbar {
  display: none;
}

html[data-shell="mac"] .ex-pathbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 22px;
  padding: 0 10px;
  background: #f6f6f8;
  border-top: 1px solid #dcdce0;
  font-size: 11px;
  color: #555;
  white-space: nowrap;
  overflow: hidden;
}

html[data-shell="mac"] .ex-pathbar .ex-crumb:hover {
  background: #e6e6ea;
}

html[data-shell="mac"] .ex-statusbar {
  height: 22px;
  justify-content: center;
  background: #f6f6f8;
  border-top: 1px solid #e3e3e6;
  color: #6e6e73;
  font-size: 11.5px;
}

html[data-shell="mac"] .ex-empty {
  color: #a0a0a5;
}

/* ===== 텍스트 편집기 (메모장) ===== */
html[data-shell="mac"] .np-menubar {
  display: none;
}

html[data-shell="mac"] .np-text {
  padding: 14px 18px;
  font-family: var(--mac-font);
  font-size: 13.5px;
  line-height: 1.5;
}

/* ===== 미리보기 (사진 뷰어) ===== */
html[data-shell="mac"] .iv-app {
  background: #e6e6ea;
  color: #333;
}

html[data-shell="mac"] .iv-toolbar {
  height: 38px;
  background: #f6f6f8;
  border-bottom: 1px solid #dcdce0;
  justify-content: center;
}

html[data-shell="mac"] .iv-btn {
  color: #444;
  border-radius: 5px;
}

html[data-shell="mac"] .iv-btn:hover {
  background: #e3e3e7;
}

html[data-shell="mac"] .iv-zoom {
  color: #444;
}

html[data-shell="mac"] .iv-img {
  background: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

html[data-shell="mac"] .iv-error {
  color: #777;
}

html[data-shell="mac"] .iv-statusbar {
  background: #f6f6f8;
  border-top: 1px solid #dcdce0;
  color: #777;
  justify-content: center;
}

/* ===== 메시지 (메신저) ===== */
html[data-shell="mac"] .ms-sidebar {
  flex-basis: 240px;
  background: #f5f5f7;
  border-right-color: #dcdce0;
}

html[data-shell="mac"] .ms-me {
  border-bottom-color: #e3e3e6;
}

html[data-shell="mac"] .ms-avatar {
  background: #a9b3bf;
}

html[data-shell="mac"] .ms-thread {
  margin: 2px 8px;
  padding: 8px 10px;
  border-radius: 8px;
}

html[data-shell="mac"] .ms-thread:hover {
  background: #e9e9ed;
}

html[data-shell="mac"] .ms-thread.is-active {
  background: var(--mac-accent);
  color: #fff;
}

html[data-shell="mac"] .ms-thread.is-active .ms-thread-time,
html[data-shell="mac"] .ms-thread.is-active .ms-thread-snippet {
  color: rgba(255, 255, 255, 0.8);
}

html[data-shell="mac"] .ms-unread {
  background: var(--mac-accent);
}

html[data-shell="mac"] .ms-thread.is-active .ms-unread {
  background: #fff;
  color: var(--mac-accent);
}

html[data-shell="mac"] .ms-main {
  background: #fff;
}

html[data-shell="mac"] .ms-header {
  height: 44px;
  background: #f5f5f7;
  color: #111;
  border-bottom: 1px solid #dcdce0;
}

html[data-shell="mac"] .ms-header-role {
  color: #8e8e93;
}

html[data-shell="mac"] .ms-date {
  background: transparent;
  color: #8e8e93;
}

html[data-shell="mac"] .ms-bubble {
  border-radius: 18px;
  background: #e9e9eb;
  color: #111;
  font-size: 13px;
}

html[data-shell="mac"] .ms-msg-me .ms-bubble {
  background: #1b8bfe;
  color: #fff;
}

html[data-shell="mac"] .ms-msg-time {
  color: #a0a0a5;
}

html[data-shell="mac"] .ms-compose {
  background: #fff;
  border-top-color: #e3e3e6;
}

html[data-shell="mac"] .ms-input {
  border-radius: 16px;
  border-color: #d5d5da;
  background: #fff;
}

/* ===== 사내 ERP: 브라우저 창 ===== */
html[data-shell="mac"] .erp-chrome {
  height: 40px;
  background: #f6f6f8;
  border-bottom-color: #dcdce0;
  justify-content: center;
}

html[data-shell="mac"] .erp-address {
  flex: 0 1 420px;
  justify-content: center;
  border-radius: 8px;
  background: #e9e9ed;
  border-color: transparent;
}

/* ===== 대화상자 ===== */
html[data-shell="mac"] .dlg {
  padding: 18px 20px 16px;
}

html[data-shell="mac"] .dlg-message {
  text-align: center;
}

html[data-shell="mac"] .dlg-input {
  border-radius: 6px;
  border-color: #c8c8cc;
}

html[data-shell="mac"] .dlg-input:focus {
  border-color: var(--mac-accent);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.25);
}

html[data-shell="mac"] .dlg-buttons {
  gap: 10px;
}

html[data-shell="mac"] .dlg-btn {
  min-width: 84px;
  height: 28px;
  border-radius: 6px;
  font-size: 13px;
}

/* 기본 단추는 오른쪽, 파란색 */
html[data-shell="mac"] .dlg-btn-primary {
  order: 2;
  background: var(--mac-accent);
  border-color: var(--mac-accent);
  color: #fff;
  box-shadow: none;
}

html[data-shell="mac"] .dlg-btn-primary:hover {
  background: #0066d6;
}

/* ===== 할 일 위젯: 스티커 메모 ===== */
html[data-shell="mac"] .todo-widget {
  width: 270px;
  border-radius: 4px;
  border: none;
  background: #fff6a8;
  color: #3a3420;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-family: "Segoe Print", "Marker Felt", "Comic Sans MS", "Malgun Gothic", cursive;
}

html[data-shell="mac"] .todo-head {
  background: #f7e27a;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

html[data-shell="mac"] .todo-head-sub,
html[data-shell="mac"] .todo-foot {
  color: rgba(58, 52, 32, 0.6);
}

html[data-shell="mac"] .todo-toggle {
  color: rgba(58, 52, 32, 0.7);
}

html[data-shell="mac"] .todo-toggle:hover {
  background: rgba(0, 0, 0, 0.08);
}

html[data-shell="mac"] .todo-progress {
  background: rgba(0, 0, 0, 0.1);
}

html[data-shell="mac"] .todo-progress-bar {
  background: #d9a300;
}

html[data-shell="mac"] .todo-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

html[data-shell="mac"] .todo-check {
  border-color: rgba(58, 52, 32, 0.6);
  color: #fff6a8;
}

html[data-shell="mac"] .todo-item.is-done .todo-check {
  background: #3a3420;
  border-color: #3a3420;
}

html[data-shell="mac"] .todo-item.is-done .todo-text,
html[data-shell="mac"] .todo-item.is-done .todo-due {
  color: rgba(58, 52, 32, 0.45);
}

html[data-shell="mac"] .todo-due {
  color: #b35a00;
}
