﻿/* Layout fixes */
.empdesk-container {
    margin-top: -100px;
}
/* Panel card default */
.panel-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    transition: 0.3s ease;
    padding: 20px;
    display: flex;
    flex-direction: column;
}
/* Taller panels (Holiday + Thoughts) */
.panel-card-tall {
    min-height: 500px;
}
/* Split second panel into two equal halves */
.panel-card-split {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.panel-card-split .split-half {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%; /* Ensures no horizontal overflow from flex centering */
}
/* Holiday table — no scrollbar on desktop */
.holiday-table {
    flex: 1 1 auto;
    overflow-y: visible;
    margin-top: 4px;
    text-align: left;
}
.holiday-list-table {
    width: 100%;
    font-size: 13px;
    border-collapse: collapse;
}
.holiday-list-table th,
.holiday-list-table td {
    padding: 8px;
    border-bottom: 1px solid #eee;
}
.holiday-list-table tbody tr:hover {
    background-color: #fff4f4;
    color: #d62828;
}
.holiday-list-table tbody tr:hover td {
    color: #d62828 !important;
    font-weight: 600;
    cursor: pointer;
}
/* Panel header */
.panel-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}
.panel-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}
.panel-dots {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ccc;
}
/* Thought & Notice Cards */
.quote-card {
    background-color: #f8f9fa;
    border-left: 4px solid #2196f3;
    border-radius: 14px;
    padding: 18px 20px;
    width: 100%;
    max-width: 100%; /* Enforces container width constraint */
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    box-sizing: border-box;
    overflow: hidden; /* Prevents any potential overflow from children */
    word-break: break-word;
    overflow-wrap: break-word;
}
.quote-card-secondary {
    background-color: #fff5d8;
    border-left-color: #ffb300;
}
.quote-text {
    font-size: 1.05rem;
    color: #333;
    text-align: center;
    margin-bottom: 8px;
    line-height: 1.5;
    width: 100%;
    max-width: 100%; /* Reinforces width constraint */
    word-break: break-word !important; /* !important for priority over any conflicting styles */
    overflow-wrap: break-word !important; /* !important for priority */
    hyphens: auto;
    box-sizing: border-box; /* Ensures padding/margins don't cause overflow */
}
.quote-author {
    text-align: center;
    font-size: 0.95rem;
    color: #555;
    margin-top: 4px;
    width: 100%;
}
/* Notice Board */
.notice-title {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 6px;
}
.notice-content {
    font-size: 0.9rem;
    text-align: center;
    color: #666;
    line-height: 1.5;
}
/* Recent Activities */
.recent-panel {
    background: #fff;
    border-radius: 20px;
}
.transaction-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}
.icon-L { background: #ff9800; }
.icon-P { background: #9c27b0; }
.icon-R { background: #00bcd4; }
.icon-D { background: #f44336; }
.icon-B { background: #795548; }
.tx-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}
.tx-detail {
    font-size: 12px;
    color: #999;
}
.tx-red {
    color: #f44336;
}
/* Hover effect on cards */
.panel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
/* Responsive Rules */
@media (max-width: 992px) {
    .panel-card-tall { min-height: auto; }
    .holiday-table {
        max-height: 350px;
        overflow-y: auto;
    }
}
@media (max-width: 768px) {
    .quote-card {
        min-height: 150px;
        padding: 12px 16px; /* Reduced padding on smaller screens to give more room for text */
    }
    .split-half { min-height: 120px; }
    .quote-text {
        font-size: 0.95rem;
        padding: 0 4px; /* Slight inner padding adjustment for breathing room */
    }
}
@media (max-width: 480px) {
    .empdesk-container { margin-top: -60px; }
    .holiday-table {
        max-height: 360px;
        overflow-y: auto;
    }
    .quote-card { padding: 10px 12px; } /* Further reduction: For very small screens */
    .quote-text { font-size: 0.9rem; }
}



/*Circular Box */
    /* ================= PANEL CARD ================= */
.panel-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Header */
.panel-header {
    border-bottom: 1px solid #eef2ff;
    padding-bottom: 14px;
}

.panel-title {
    font-size: 20px;
    font-weight: 600;
    color: #2e5fff;
}

/* Dots */
.panel-dots {
    width: 6px;
    height: 6px;
    background: #2e5fff;
    border-radius: 50%;
    position: relative;
}
.panel-dots::before,
.panel-dots::after {
    content: '';
    width: 6px;
    height: 6px;
    background: #2e5fff;
    border-radius: 50%;
    position: absolute;
    left: 0;
}
.panel-dots::before { top: -10px; }
.panel-dots::after  { top: 10px; }

/* ================= TRANSACTION ITEM ================= */
.transaction-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 0;
}

/* Circular Icon */
.icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2e5fff, #5a7dff);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(46,95,255,0.35);
}

/* Text */
.tx-name {
    font-weight: 600;
    font-size: 15px;
    color: #222;
}

.tx-detail {
    font-size: 13px;
    color: #6b7280;
}

/* Hover effect */
.transaction-item:hover .icon-circle {
    transform: scale(1.08);
    transition: 0.3s;
}



.panel-header {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
}

.panel-title {
    font-weight: 700;
    color: #2563eb;
}

.panel-ho {
    font-size: 14px;
    font-weight: 700;
    color: #16a34a;   /* green highlight */
    background: #dcfce7;
    padding: 4px 10px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}