/* =============================================
   근태관리 - Dark Theme
   ============================================= */

/* --- Layout --- */
.att-layout {
    display: flex;
    height: calc(100vh - 64px);
    margin: -20px -24px;
    overflow: hidden;
    background: #0a0a14;
}

/* =============================================
   좌측 사이드바
   ============================================= */
.att-sidebar {
    width: 304px;
    min-width: 304px;
    background: rgba(255,255,255,.02);
    border-right: 1px solid rgba(255,255,255,.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    z-index: 2;
    box-shadow: 2px 0 12px rgba(0,0,0,0.2);
}

/* 헤더 */
.att-sb-header {
    padding: 20px 20px 0;
    flex-shrink: 0;
}
.att-sb-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.att-sb-title {
    font-size: 17px;
    font-weight: 800;
    color: rgba(255,255,255,.9);
    margin: 0;
    letter-spacing: -0.02em;
}
.att-sb-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 22px;
    padding: 0 8px;
    border-radius: 11px;
    background: linear-gradient(135deg, #818cf8, #6366f1);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.att-sb-desc {
    font-size: 11.5px;
    color: rgba(255,255,255,.35);
    margin: 6px 0 0;
    line-height: 1.4;
}

/* 검색 */
.att-sb-search {
    position: relative;
    padding: 14px 16px 0;
    flex-shrink: 0;
}
.att-sb-search-icon {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 7px;
    font-size: 12px;
    color: rgba(255,255,255,.3);
    pointer-events: none;
    transition: color 0.2s;
}
.att-sb-search input {
    width: 100%;
    padding: 9px 36px 9px 34px;
    border: 1.5px solid rgba(255,255,255,.08);
    border-radius: 10px;
    font-size: 12.5px;
    color: rgba(255,255,255,.9);
    background: rgba(255,255,255,.03);
    outline: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.att-sb-search input:focus {
    border-color: #818cf8;
    background: rgba(255,255,255,.05);
    box-shadow: 0 0 0 3px rgba(129,140,248,0.15);
}
.att-sb-search input:focus ~ .att-sb-search-icon {
    color: #818cf8;
}
.att-sb-search input::placeholder { color: rgba(255,255,255,.25); }

.att-sb-search-clear {
    position: absolute;
    right: 26px;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 7px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: rgba(255,255,255,.3);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all 0.15s;
}
.att-sb-search-clear.show { display: flex; }
.att-sb-search-clear:hover { background: rgba(255,255,255,.06); color: rgba(255,255,255,.6); }

/* 부서 필터 */
.att-sb-filter {
    padding: 8px 16px 6px;
    flex-shrink: 0;
}
.att-sb-dept-select {
    width: 100%;
    padding: 7px 28px 7px 10px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,.7);
    background: rgba(255,255,255,.03);
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.att-sb-dept-select option {
    background: #1a1a2e;
    color: rgba(255,255,255,.9);
}
.att-sb-dept-select:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 2px rgba(129,140,248,0.12);
}

/* 직원 리스트 */
.att-sb-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px 10px 16px;
}
.att-sb-list::-webkit-scrollbar { width: 5px; }
.att-sb-list::-webkit-scrollbar-track { background: transparent; }
.att-sb-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 10px; }
.att-sb-list::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.2); }

/* 직원 아이템 */
.emp-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid transparent;
    margin-bottom: 2px;
    position: relative;
}
.emp-item:hover {
    background: rgba(129,140,248,.06);
    border-color: rgba(129,140,248,.12);
}
.emp-item.active {
    background: rgba(129,140,248,.1);
    border-color: #818cf8;
    box-shadow: 0 2px 8px rgba(129,140,248,0.15);
}
.emp-item.active::before {
    content: '';
    position: absolute;
    left: -1.5px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: #818cf8;
}
.emp-item.kb-highlight {
    background: rgba(129,140,248,.08);
    border-color: rgba(129,140,248,.15);
}

/* 아바타 */
.emp-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    position: relative;
    letter-spacing: -0.02em;
}

.emp-status-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #0a0a14;
    flex-shrink: 0;
}
.emp-status-dot.st-working {
    background: #10b981;
    animation: dotBlink 1.5s ease-in-out infinite;
}
.emp-status-dot.st-late {
    background: #f59e0b;
    animation: dotBlink 1.5s ease-in-out infinite;
}
.emp-status-dot.st-done { background: #10b981; }
.emp-status-dot.st-leave { background: #818cf8; }
.emp-status-dot.st-absent { background: #ef4444; }
.emp-status-dot.st-none { background: rgba(255,255,255,.2); }

@keyframes dotBlink {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
    50% { opacity: 0.4; box-shadow: 0 0 0 4px rgba(16,185,129,0); }
}

.emp-info { min-width: 0; flex: 1; }
.emp-name {
    font-size: 13px;
    font-weight: 650;
    color: rgba(255,255,255,.85);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.emp-meta {
    font-size: 11px;
    color: rgba(255,255,255,.35);
    font-weight: 450;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.emp-list-empty {
    text-align: center;
    padding: 48px 20px;
    color: rgba(255,255,255,.3);
}
.emp-list-empty i {
    display: block;
    font-size: 32px;
    margin-bottom: 10px;
    opacity: 0.25;
}
.emp-list-empty span {
    font-size: 12.5px;
    font-weight: 500;
}

/* =============================================
   우측 메인
   ============================================= */
.att-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

/* 상단 바 */
.att-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    background: rgba(255,255,255,.02);
    border-bottom: 1px solid rgba(255,255,255,.06);
    flex-shrink: 0;
    min-height: 48px;
}
.att-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.att-topbar-date {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,.8);
    letter-spacing: -0.01em;
}
.att-topbar-divider {
    width: 1px;
    height: 18px;
    background: rgba(255,255,255,.1);
}

.att-today-chips {
    display: flex;
    align-items: center;
    gap: 4px;
}
.t-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.t-chip i { font-size: 10px; }
.t-chip span { font-weight: 800; }
.t-chip.t-total { background: rgba(255,255,255,.05); color: rgba(255,255,255,.6); }
.t-chip.t-normal { background: rgba(16,185,129,.12); color: #34d399; }
.t-chip.t-late { background: rgba(245,158,11,.12); color: #fbbf24; }
.t-chip.t-leave { background: rgba(129,140,248,.12); color: #a5b4fc; }
.t-chip.t-absent { background: rgba(239,68,68,.12); color: #fca5a5; }

.att-topbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
}
.att-btn-holiday {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    background: rgba(255,255,255,.03);
    color: rgba(255,255,255,.5);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}
.att-btn-holiday:hover {
    background: rgba(245,158,11,.1);
    color: #fbbf24;
    border-color: rgba(245,158,11,.25);
}

.att-btn-export {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    background: rgba(255,255,255,.03);
    color: rgba(255,255,255,.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.2s;
}
.att-btn-export:hover {
    background: rgba(16,185,129,.1);
    color: #34d399;
    border-color: rgba(16,185,129,.25);
}

/* =============================================
   선택 직원 정보 바
   ============================================= */
.att-emp-bar {
    background: rgba(255,255,255,.02);
    border-bottom: 1px solid rgba(255,255,255,.06);
    flex-shrink: 0;
    min-height: 56px;
}

.att-emp-bar-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    color: rgba(255,255,255,.3);
    font-size: 13px;
    font-weight: 500;
}
.att-emp-bar-empty i { font-size: 16px; opacity: 0.6; }

.att-emp-bar-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    gap: 20px;
    animation: fadeSlideIn 0.3s ease;
}
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.att-emp-bar-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.att-emp-bar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    background: linear-gradient(135deg, #818cf8, #6366f1);
}
.att-emp-bar-name {
    font-size: 15px;
    font-weight: 750;
    color: rgba(255,255,255,.9);
    letter-spacing: -0.02em;
    line-height: 1.3;
}
.att-emp-bar-meta {
    font-size: 12px;
    color: rgba(255,255,255,.4);
    font-weight: 450;
    line-height: 1.3;
}

/* 월간 통계 */
.att-month-stats {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}
.m-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 14px;
    position: relative;
}
.m-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background: rgba(255,255,255,.06);
}
.m-stat-val {
    font-size: 17px;
    font-weight: 800;
    color: rgba(255,255,255,.9);
    line-height: 1.1;
    letter-spacing: -0.03em;
}
.m-stat-lbl {
    font-size: 10px;
    color: rgba(255,255,255,.35);
    font-weight: 550;
    margin-top: 2px;
}
.m-stat-rate .m-stat-val {
    color: #34d399;
    font-size: 15px;
}

/* =============================================
   달력 영역
   ============================================= */
.att-cal-area {
    flex: 1;
    overflow: auto;
    padding: 16px 20px;
}

.att-cal-card {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px;
    padding: 16px 20px 12px;
    min-height: 100%;
}

/* Calendar header */
.att-cal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.att-cal-nav {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    background: rgba(255,255,255,.03);
    color: rgba(255,255,255,.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.18s;
}
.att-cal-nav:hover {
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.8);
    border-color: rgba(255,255,255,.12);
}
.att-cal-title {
    font-size: 17px;
    font-weight: 800;
    color: rgba(255,255,255,.9);
    letter-spacing: -0.03em;
}
.att-cal-today-btn {
    margin-left: 8px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    background: #818cf8;
    color: #fff;
    cursor: pointer;
    transition: all 0.18s;
}
.att-cal-today-btn:hover {
    background: #6366f1;
}
.att-cal-today-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

/* Calendar table */
.att-cal-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.att-cal-table thead th {
    padding: 10px 0;
    font-size: 11.5px;
    font-weight: 700;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255,255,255,.02);
    text-align: center;
}
.att-cal-table thead th:first-child { border-radius: 8px 0 0 8px; }
.att-cal-table thead th:last-child { border-radius: 0 8px 8px 0; }
.att-cal-table thead th.sun { color: #ef4444; }
.att-cal-table thead th.sat { color: #60a5fa; }

.att-cal-table tbody td {
    border: 1px solid rgba(255,255,255,.04);
    vertical-align: top;
    height: 80px;
    padding: 4px;
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
}
.att-cal-table tbody td:hover {
    background: rgba(129,140,248,.04);
}
.att-cal-table tbody td.today {
    background: rgba(129,140,248,.06);
}
.att-cal-table tbody td.other-month {
    opacity: 0.3;
}
.att-cal-table tbody td.selected {
    background: rgba(129,140,248,.1);
    box-shadow: inset 0 0 0 2px #818cf8;
    border-radius: 4px;
}

.cal-day-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    font-size: 12.5px;
    font-weight: 650;
    color: rgba(255,255,255,.6);
    border-radius: 7px;
    margin: 2px;
}
td.today .cal-day-num {
    background: #818cf8;
    color: #fff;
}
td:first-child .cal-day-num { color: #ef4444; }
td:last-child .cal-day-num { color: #60a5fa; }
td.today:first-child .cal-day-num,
td.today:last-child .cal-day-num { color: #fff; }
td.other-month .cal-day-num { color: rgba(255,255,255,.2) !important; }

/* Attendance dots in calendar cells */
.cal-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    padding: 2px 4px;
}
.cal-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.cal-evt-label {
    display: block;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: transform 0.12s;
}
.cal-evt-label:hover {
    transform: scale(1.03);
}

/* Event colors */
.ev-normal  { background: #10b981; color: #fff; }
.ev-late    { background: #f59e0b; color: #fff; }
.ev-absent  { background: #ef4444; color: #fff; }
.ev-leave   { background: #818cf8; color: #fff; }
.ev-business { background: #8b5cf6; color: #fff; }
.ev-remote  { background: #0891b2; color: #fff; }
.ev-holiday { background: rgba(255,255,255,.2); color: rgba(255,255,255,.7); }
.ev-night   { background: #312e81; color: #fff; }
.ev-overtime { background: #4338ca; color: #fff; }

/* dot colors */
.dot-normal  { background: #10b981; }
.dot-late    { background: #f59e0b; }
.dot-absent  { background: #ef4444; }
.dot-leave   { background: #818cf8; }
.dot-business { background: #8b5cf6; }
.dot-remote  { background: #0891b2; }
.dot-holiday { background: rgba(255,255,255,.3); }

/* =============================================
   날짜 상세 패널
   ============================================= */
.att-detail {
    background: rgba(255,255,255,.02);
    border-top: 1px solid rgba(255,255,255,.06);
    flex-shrink: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.att-detail.open {
    max-height: 380px;
}

.att-detail-inner {
    padding: 0;
}

.att-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255,255,255,.04);
}

.att-detail-date {
    display: flex;
    align-items: center;
    gap: 12px;
}
.att-detail-day-num {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #818cf8, #6366f1);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -0.03em;
}
.att-detail-day-full {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,.85);
    display: block;
    line-height: 1.3;
}
.att-detail-day-weekday {
    font-size: 12px;
    color: rgba(255,255,255,.35);
    font-weight: 500;
    display: block;
}

.att-detail-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}
.att-detail-btn {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    background: rgba(255,255,255,.03);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.18s;
}
.att-detail-btn.edit { color: #818cf8; }
.att-detail-btn.edit:hover { background: rgba(129,140,248,.1); border-color: rgba(129,140,248,.25); }
.att-detail-btn.delete { color: #ef4444; }
.att-detail-btn.delete:hover { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.25); }
.att-detail-btn.close { color: rgba(255,255,255,.4); }
.att-detail-btn.close:hover { background: rgba(255,255,255,.06); color: rgba(255,255,255,.7); }

.att-detail-body {
    padding: 14px 24px 18px;
}

/* 상세 그리드 */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}
.detail-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.detail-label {
    font-size: 10.5px;
    color: rgba(255,255,255,.35);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.detail-value {
    font-size: 14px;
    font-weight: 650;
    color: rgba(255,255,255,.85);
}

/* 근무 타임라인 */
.detail-timeline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 28px 14px 12px;
    background: rgba(255,255,255,.03);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.04);
}
.tl-time {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255,255,255,.35);
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.tl-bar-wrap {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,.08);
    border-radius: 4px;
    position: relative;
    overflow: visible;
}
.tl-bar {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #10b981, #818cf8);
    transition: width 0.5s ease;
    position: absolute;
    top: 0;
}

/* 출퇴근 시각 마커 */
.tl-marker {
    position: absolute;
    top: -22px;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1;
    letter-spacing: -0.02em;
}
.tl-marker::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 4px;
}
.tl-marker-in { color: #34d399; }
.tl-marker-in::after { background: #34d399; }
.tl-marker-out { color: #818cf8; }
.tl-marker-out::after { background: #818cf8; }

/* 타임라인 태그 요약 */
.tl-summary {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}
.tl-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 650;
}
.tl-tag.in { background: rgba(16,185,129,.12); color: #34d399; }
.tl-tag.out { background: rgba(129,140,248,.12); color: #a5b4fc; }
.tl-tag.hours { background: rgba(255,255,255,.05); color: rgba(255,255,255,.7); }

/* 월간 합산 */
.detail-month-summary {
    margin-top: 14px;
    padding: 12px 14px;
    background: rgba(255,255,255,.03);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.06);
}
.dms-title {
    font-size: 10.5px;
    font-weight: 700;
    color: rgba(255,255,255,.35);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}
.dms-items {
    display: flex;
    gap: 0;
}
.dms-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    position: relative;
}
.dms-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 2px;
    bottom: 2px;
    width: 1px;
    background: rgba(255,255,255,.06);
}
.dms-val {
    font-size: 16px;
    font-weight: 800;
    color: rgba(255,255,255,.9);
    letter-spacing: -0.03em;
}
.dms-lbl {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255,255,255,.35);
}

/* 근무코드 뱃지 */
.work-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 650;
    letter-spacing: -0.01em;
}
.work-badge.NORMAL { background: rgba(16,185,129,.15); color: #34d399; }
.work-badge.LATE { background: rgba(245,158,11,.15); color: #fbbf24; }
.work-badge.ABSENT { background: rgba(239,68,68,.15); color: #fca5a5; }
.work-badge.LEAVE, .work-badge.HALF, .work-badge.SICK { background: rgba(129,140,248,.15); color: #a5b4fc; }
.work-badge.BUSINESS { background: rgba(139,92,246,.15); color: #c4b5fd; }
.work-badge.REMOTE { background: rgba(8,145,178,.15); color: #67e8f9; }
.work-badge.HOLIDAY { background: rgba(255,255,255,.06); color: rgba(255,255,255,.5); }
.work-badge.NIGHT, .work-badge.OVERTIME { background: rgba(67,56,202,.15); color: #a5b4fc; }

.manual-mark {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(245,158,11,.15);
    color: #fbbf24;
    font-size: 10px;
    font-weight: 700;
}

/* 기록 없음 */
.detail-empty {
    text-align: center;
    padding: 20px;
    color: rgba(255,255,255,.35);
    font-size: 13px;
    font-weight: 500;
}
.detail-empty i {
    display: block;
    font-size: 22px;
    margin-bottom: 6px;
    opacity: 0.35;
}
.detail-empty span { display: block; margin-bottom: 12px; }
.att-btn-register {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 18px;
    background: linear-gradient(135deg, #818cf8, #6366f1);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(129,140,248,0.25);
}
.att-btn-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(129,140,248,0.35);
}

/* =============================================
   모달
   ============================================= */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.modal-overlay.show { display: flex; }

.modal-container {
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,.04);
    animation: modalIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(-16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-md { max-width: 580px; }

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px 18px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.modal-header h3 {
    font-size: 17px;
    font-weight: 750;
    color: rgba(255,255,255,.9);
    margin: 0;
    letter-spacing: -0.02em;
}
.modal-close {
    background: none;
    border: none;
    font-size: 22px;
    color: rgba(255,255,255,.35);
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.15s;
}
.modal-close:hover { color: rgba(255,255,255,.7); }

.modal-body { padding: 22px 28px; }

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 18px 28px 22px;
    border-top: 1px solid rgba(255,255,255,.06);
}

/* 버튼 */
.att-layout .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}
.att-layout .btn-primary {
    background: linear-gradient(135deg, #818cf8, #6366f1);
    color: #fff;
    box-shadow: 0 2px 8px rgba(129,140,248,0.3);
}
.att-layout .btn-primary:hover {
    box-shadow: 0 4px 14px rgba(129,140,248,0.4);
    transform: translateY(-1px);
}
.att-layout .btn-ghost {
    background: transparent;
    color: rgba(255,255,255,.5);
    border: 1px solid rgba(255,255,255,.1);
}
.att-layout .btn-ghost:hover { background: rgba(255,255,255,.04); color: rgba(255,255,255,.7); }

/* 폼 */
.att-layout .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.att-layout .form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.att-layout .form-group.full-width { grid-column: 1 / -1; }
.att-layout .form-label {
    font-size: 11.5px;
    font-weight: 650;
    color: rgba(255,255,255,.4);
    letter-spacing: 0.01em;
}
.att-layout .form-label.required::after { content: ' *'; color: #ef4444; }

.att-layout .form-static {
    font-size: 14px;
    font-weight: 650;
    color: rgba(255,255,255,.85);
    padding: 8px 0;
}

.att-layout .form-input,
.att-layout .form-select {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid rgba(255,255,255,.08);
    border-radius: 9px;
    font-size: 13px;
    color: rgba(255,255,255,.9);
    background: rgba(255,255,255,.03);
    outline: none;
    transition: all 0.2s;
}
.att-layout .form-input:focus,
.att-layout .form-select:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(129,140,248,0.15);
}
.att-layout .form-input::placeholder { color: rgba(255,255,255,.2); }
.att-layout .form-select option {
    background: #1a1a2e;
    color: rgba(255,255,255,.9);
}

/* =============================================
   반응형
   ============================================= */
@media (max-width: 1100px) {
    .att-sidebar { width: 260px; min-width: 260px; }
    .att-month-stats { gap: 0; }
    .m-stat { padding: 4px 10px; }
}

@media (max-width: 767px) {
    .att-layout {
        flex-direction: column;
        height: auto;
        margin: -12px;
    }
    .att-sidebar {
        width: 100%;
        min-width: auto;
        max-height: 280px;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,.06);
        box-shadow: none;
    }
    .att-topbar { padding: 8px 14px; }
    .att-today-chips { flex-wrap: wrap; }
    .att-emp-bar-info { flex-direction: column; align-items: flex-start; padding: 10px 14px; gap: 10px; }
    .att-month-stats { width: 100%; justify-content: space-between; }
    .att-cal-area { padding: 10px; }
    .att-cal-card { padding: 10px 12px 8px; border-radius: 10px; }
    .att-detail-head { padding: 12px 14px; }
    .att-detail-body { padding: 12px 14px 14px; }
    .detail-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .att-layout .form-grid { grid-template-columns: 1fr; }
}
