/* Dashboard Grid & Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    /* transition 제거 — hover 시 움직임 방지 */
}

/* .glass-card:hover transform 제거 — 카드가 hover 시 움직이지 않도록 고정 */
.glass-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

/* Jelly Card — 반투명 젤리 스타일 */
.jelly-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.08),
        0 1px 4px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    padding: 20px 24px;
}

/* 업체 상세 뷰 배경 */
.content-panel.company-bg {
    background: #0d1b2e;
}

/* 업체 뷰 내 카드들 다크 테마로 오버라이드 */
.company-bg .jelly-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: rgba(226, 236, 249, 0.92);
}

.company-bg .jelly-card h3,
.company-bg .jelly-card h4 {
    color: rgba(239, 246, 255, 0.95);
}

.section-title-note {
    font-size: 0.7em;
    font-weight: 500;
    opacity: 0.78;
}

.company-bg .jelly-card .section-header {
    border-bottom-color: rgba(145, 170, 210, 0.08);
}

.company-bg .todo-section {
    position: relative;
    overflow: hidden;
    background: rgba(255, 237, 213, 0.26);
    border-color: rgba(251, 146, 60, 0.34);
}

.company-bg .todo-section::before {
    content: '';
    position: absolute;
    left: 75%;
    top: 66%;
    width: min(240px, 38%);
    aspect-ratio: 3 / 2;
    background: url("../assets/todo-schedule-illustration.png") center / contain no-repeat;
    opacity: 0.18;
    transform: translate(-50%, -50%) rotate(-4deg);
    pointer-events: none;
    z-index: 0;
}

.company-bg .todo-section > * {
    position: relative;
    z-index: 1;
}

.company-bg .empty-msg,
.company-bg .empty-state {
    color: rgba(174, 190, 213, 0.55);
}

/* 통신이력 흰 배경 → 완전 투명 */
.company-bg .history-timeline {
    background: transparent;
    border: none;
}

/* 발송함 카드 */
.company-bg .archive-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.09);
}

.company-bg .archive-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(147, 197, 253, 0.22);
}

/* 투두 아이템 */
.company-bg .todo-item {
    border-bottom-color: rgba(145, 170, 210, 0.08);
    color: rgba(220, 232, 248, 0.88);
}

/* 내노트 뷰 */
.main-layout.mynotes-main {
    background: url("../assets/chul004.webp?v=1") right center / cover no-repeat;
    background-color: #13224e;
}
.top-nav.mynotes-header {
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.top-nav.mynotes-header #currentPageTitle {
    color: #ffffff;
    text-shadow: 0 1px 6px rgba(0,0,0,0.75);
}
.content-panel.mynotes-bg {
    padding: 0;
    background: transparent;
    overflow: hidden;
}
.content-panel.mynotes-bg iframe {
    width: 100% !important;
    height: 100% !important;
    display: block;
    border: none;
}

/* 직원관리 뷰 */
.main-layout.staff-mgmt-main {
    background: url("../assets/chul014.webp?v=1") no-repeat center center / cover;
    background-color: #0f2442;
}
.top-nav.staff-mgmt-header {
    background: transparent;
    border-bottom: none;
    box-shadow: none;
}
.top-nav.staff-mgmt-header #currentPageTitle {
    color: #ffffff;
}
.content-panel.staff-mgmt-bg {
    background: transparent;
}
.staff-mgmt-page {
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.content-panel.staff-mgmt-bg .glass-card {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.content-panel.staff-mgmt-bg .glass-card td {
    color: #ffffff;
}

/* 대시보드 뷰 */
.top-nav.dashboard-header {
    display: none;
}
.top-nav.dashboard-header #currentPageTitle {
    color: #ffffff;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.content-panel.dashboard-bg {
    position: relative;
    isolation: isolate;
    overflow: auto;
    background:
        linear-gradient(90deg, rgba(4, 12, 25, 0.96) 0%, rgba(6, 18, 37, 0.90) 48%, rgba(7, 23, 48, 0.14) 70%, transparent 84%),
        url("../assets/chul001.webp?v=1") no-repeat right center / cover;
}

/* 전송결과조회 뷰 */
.main-layout.send-results-main {
    background: url("../assets/chul009.webp?v=1") right center / cover no-repeat;
    background-color: #0d1b2e;
}
.top-nav.send-results-header {
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.top-nav.send-results-header #currentPageTitle {
    color: #ffffff;
    text-shadow: 0 1px 6px rgba(0,0,0,0.75);
}
.content-panel.send-results-bg {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: transparent;
}
.content-panel.send-results-bg .send-results-view {
    width: 72%;
    min-width: 760px;
    max-width: 1400px;
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    box-sizing: border-box;
    scrollbar-width: none;
}
.content-panel.send-results-bg .send-results-view::-webkit-scrollbar {
    display: none;
}

/* sr-row: 5컬럼 grid (상태 | 미리보기+유형 | 결과 | 날짜 | 버튼) */
.send-results-main .pt-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.send-results-main .pt-row {
    display: grid;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 0;
    border-radius: 8px;
    background: rgba(31, 47, 72, 0.68);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
    transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
    cursor: pointer;
}
.send-results-main .pt-row:hover {
    background: rgba(38, 56, 82, 0.78);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}
.send-results-main .sr-row {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    cursor: default;
}
.send-results-main .sr-row:hover {
    transform: none;
    background: rgba(31, 47, 72, 0.68);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.send-results-main .sr-result-cell {
    min-width: 80px;
    text-align: right;
}
.send-results-main #srListBody {
    max-height: calc(100vh - 430px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(96, 165, 250, 0.35) transparent;
}
.send-results-main #srListBody::-webkit-scrollbar { width: 5px; }
.send-results-main #srListBody::-webkit-scrollbar-track { background: transparent; }
.send-results-main #srListBody::-webkit-scrollbar-thumb {
    background: rgba(96, 165, 250, 0.35);
    border-radius: 4px;
}
.send-results-main .pt-task-text {
    min-width: 0;
    color: #c8d4e3;
    font-size: 0.88rem;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sr-filter-card .pt-card-header { align-items: flex-start; }
.sr-date-group {
    display: flex;
    align-items: center;
    gap: 6px;
}
.sr-date-label {
    font-size: 0.82rem;
    color: #99a5b7;
    white-space: nowrap;
}
.sr-date-input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    padding: 6px 10px;
    color: #e2eaf5;
    font-size: 0.84rem;
}
.sr-date-input:focus {
    outline: none;
    border-color: rgba(96, 165, 250, 0.6);
    background: rgba(255, 255, 255, 0.12);
}
@media (max-width: 1024px) {
    .content-panel.send-results-bg .send-results-view {
        width: 100%;
        min-width: 0;
    }
}

/* 통합일정 뷰 — premium CRM calendar */
.main-layout.calendar-main {
    background:
        linear-gradient(90deg, rgba(7, 17, 31, 0.92) 0%, rgba(10, 23, 40, 0.86) 50%, rgba(10, 23, 40, 0.14) 70%, transparent 82%),
        url("../assets/chul002.webp?v=1") no-repeat right center / cover;
    background-color: #07111f;
}
.top-nav.calendar-header {
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.top-nav.calendar-header #currentPageTitle {
    color: #edf4fb;
}
.content-panel.calendar-bg {
    padding: 22px 26px 20px;
    overflow: hidden;
    background: transparent;
}

