/* =====================================================
   TEAM TASK ACCORDION
===================================================== */

.folder-task-list {
    display: none;
    margin-top: 10px;
    border-top: 1px solid #e5e7eb;
}


.folder-task-row {
    display: grid;

    grid-template-columns:
        190px
        1fr
        120px;

    align-items: center;

    gap: 15px;

    padding: 14px 18px;

    background: #ffffff;

    border-bottom: 1px solid #e5e7eb;
}


.folder-task-member {
    display: flex;

    align-items: center;

    gap: 8px;

    color: #172033;

    font-size: 14px;
}


.folder-task-title {
    color: #475569;

    font-size: 14px;
}


.folder-task-status {
    text-align: right;

    font-size: 13px;

    font-weight: 600;
}


.status-completed {
    color: #16a34a;
}


.status-pending {
    color: #d97706;
}


.folder-empty {
    padding: 25px;

    text-align: center;

    color: #94a3b8;

    background: #ffffff;
}
































/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f4f7fb;
    color: #172033;
    font-family: Arial, Helvetica, sans-serif;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

button {
    cursor: pointer;
}


/* =====================================================
   LOGIN PAGE
===================================================== */

.login-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background:
        linear-gradient(
            135deg,
            #0f172a 0%,
            #1e40af 55%,
            #2563eb 100%
        );
}


.login-box {
    width: 100%;
    max-width: 430px;

    background: #ffffff;

    padding: 36px;

    border-radius: 24px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.25);
}


.logo {
    width: 62px;
    height: 62px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 17px;

    background: #2563eb;

    color: #ffffff;

    font-size: 22px;
    font-weight: 800;
}


.login-box h1 {
    text-align: center;

    margin-top: 18px;

    font-size: 28px;

    color: #0f172a;
}


.login-subtitle {
    text-align: center;

    margin-top: 8px;
    margin-bottom: 26px;

    color: #64748b;

    font-size: 14px;
}


/* =====================================================
   ROLE BUTTONS
===================================================== */

.role-buttons {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;

    margin-bottom: 22px;
}


.role-btn {
    padding: 13px;

    border: 1px solid #dbe2ea;

    border-radius: 10px;

    background: #f8fafc;

    color: #334155;

    font-weight: 700;

    transition: 0.2s;
}


.role-btn:hover {
    border-color: #2563eb;
}


.role-btn.active {
    background: #2563eb;

    border-color: #2563eb;

    color: #ffffff;
}


/* =====================================================
   FORMS
===================================================== */

.form-group {
    margin-bottom: 17px;
}


label {
    display: block;

    margin-bottom: 7px;

    color: #334155;

    font-size: 14px;

    font-weight: 700;
}


input,
textarea,
select {
    width: 100%;

    padding: 13px 14px;

    border: 1px solid #dbe2ea;

    border-radius: 10px;

    background: #ffffff;

    color: #172033;

    outline: none;

    font-size: 14px;

    transition: 0.2s;
}


input:hover,
textarea:hover,
select:hover {
    border-color: #b8c4d3;
}


input:focus,
textarea:focus,
select:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.10);
}


textarea {
    min-height: 115px;

    resize: vertical;
}


/* =====================================================
   PRIMARY BUTTON
===================================================== */

.primary-btn {
    width: 100%;

    padding: 14px 18px;

    border: none;

    border-radius: 11px;

    background: #2563eb;

    color: #ffffff;

    font-size: 15px;

    font-weight: 700;

    transition: 0.2s;
}


.primary-btn:hover {
    background: #1d4ed8;

    transform: translateY(-1px);
}


.primary-btn:active {
    transform: translateY(0);
}


/* =====================================================
   DEMO LOGIN
===================================================== */

.demo-login {
    margin-top: 20px;

    padding-top: 18px;

    border-top: 1px solid #e5e7eb;

    color: #64748b;

    font-size: 13px;

    line-height: 1.6;
    
    display: none !important;
}


.demo-login strong {
    color: #334155;
}


/* =====================================================
   APP
===================================================== */

.app {
    display: none;

    min-height: 100vh;
}


/* =====================================================
   SIDEBAR
===================================================== */

.sidebar {
    position: fixed;

    top: 0;
    left: 0;
    bottom: 0;

    width: 250px;

    padding: 24px 16px;

    background: #0f172a;

    color: #ffffff;

    z-index: 100;

    overflow-y: auto;
}


/* BRAND */

.brand {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 0 10px 27px;

    border-bottom:
        1px solid #263247;
}


.brand-logo {
    width: 43px;
    height: 43px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #2563eb;

    color: #ffffff;

    font-weight: 800;
}


.brand h2 {
    font-size: 17px;

    color: #ffffff;
}


.brand p {
    margin-top: 4px;

    color: #94a3b8;

    font-size: 11px;
}


/* =====================================================
   MENU
===================================================== */

.menu {
    margin-top: 25px;
}


.menu-btn {
    width: 100%;

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 6px;

    padding: 13px 14px;

    border: none;

    border-radius: 10px;

    background: transparent;

    color: #cbd5e1;

    text-align: left;

    font-size: 14px;

    font-weight: 600;

    transition: 0.2s;
}


.menu-btn:hover {
    background: #1e293b;

    color: #ffffff;
}


.menu-btn.active {
    background: #1d4ed8;

    color: #ffffff;
}


.menu-btn span {
    white-space: nowrap;
}


/* =====================================================
   LOGOUT
===================================================== */

.logout-btn {
    position: absolute;

    left: 16px;
    right: 16px;
    bottom: 20px;

    padding: 13px 14px;

    border: none;

    border-radius: 10px;

    background: #1e293b;

    color: #cbd5e1;

    text-align: left;

    font-size: 14px;

    font-weight: 600;

    transition: 0.2s;
}


.logout-btn:hover {
    background: #dc2626;

    color: #ffffff;
}


/* =====================================================
   MAIN
===================================================== */

.main {
    min-height: 100vh;

    margin-left: 250px;
}


/* =====================================================
   TOPBAR
===================================================== */

.topbar {
    height: 75px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 35px;

    background: #ffffff;

    border-bottom:
        1px solid #e5e7eb;

    position: sticky;

    top: 0;

    z-index: 50;
}


.topbar h2 {
    font-size: 20px;

    color: #172033;
}


/* USER */

.user-box {
    display: flex;

    align-items: center;

    gap: 12px;
}


.user-info {
    display: flex;

    flex-direction: column;

    text-align: right;
}


.user-info strong {
    color: #172033;

    font-size: 14px;
}


.user-info span {
    margin-top: 3px;

    color: #64748b;

    font-size: 12px;
}


.avatar {
    width: 43px;
    height: 43px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #dbeafe;

    color: #2563eb;

    font-weight: 800;
}


/* =====================================================
   CONTENT
===================================================== */

.content {
    padding: 30px;
}


/* =====================================================
   PAGE
===================================================== */

.page {
    display: none;
}


.page.active {
    display: block;
}


/* =====================================================
   SECTION HEADER
===================================================== */

.section-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;
}


.section-header h1 {
    color: #172033;

    font-size: 28px;
}


.section-header p {
    margin-top: 6px;

    color: #64748b;

    font-size: 14px;
}


/* =====================================================
   DATE PANEL
===================================================== */

.date-panel {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 25px;

    padding: 15px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 16px;

    box-shadow:
        0 4px 15px rgba(15, 23, 42, 0.03);
}


.date-arrow {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    border: none;

    border-radius: 10px;

    background: #eff6ff;

    color: #2563eb;

    font-size: 20px;

    font-weight: 800;

    transition: 0.2s;
}


.date-arrow:hover {
    background: #2563eb;

    color: #ffffff;
}


.date-center {
    flex: 1;

    display: flex;

    flex-direction: column;

    gap: 4px;

    min-width: 150px;
}


.date-center span {
    color: #64748b;

    font-size: 12px;
}


.date-center strong {
    color: #172033;

    font-size: 17px;
}


.date-panel input[type="date"] {
    width: 170px;
}


.today-btn {
    padding: 12px 17px;

    border: none;

    border-radius: 10px;

    background: #0f172a;

    color: #ffffff;

    font-weight: 700;

    transition: 0.2s;
}


.today-btn:hover {
    background: #2563eb;
}


/* =====================================================
   STATS
===================================================== */

.stats {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;

    margin-bottom: 30px;
}


.stat-card {
    padding: 22px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 16px;

    transition: 0.2s;
}


.stat-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(15, 23, 42, 0.06);
}


.stat-card span {
    color: #64748b;

    font-size: 13px;

    font-weight: 600;
}


.stat-card strong {
    display: block;

    margin-top: 8px;

    color: #172033;

    font-size: 30px;
}


.sub-heading {
    margin-bottom: 18px;

    color: #172033;

    font-size: 20px;
}


/* =====================================================
   TASK TABS
===================================================== */

.task-tabs {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 22px;
}


.task-tab {
    padding: 11px 20px;

    border: 1px solid #dbe2ea;

    border-radius: 10px;

    background: #ffffff;

    color: #475569;

    font-size: 13px;

    font-weight: 700;

    transition: 0.2s;
}


.task-tab:hover {
    border-color: #2563eb;

    color: #2563eb;
}


.task-tab.active {
    border-color: #2563eb;

    background: #2563eb;

    color: #ffffff;
}


/* =====================================================
   TASK GRID
===================================================== */

.task-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;
}


/* =====================================================
   TASK CARD
===================================================== */

.task-card {
    padding: 20px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 17px;

    transition: 0.2s;
}


.task-card:hover {
    transform: translateY(-3px);

    border-color: #bfdbfe;

    box-shadow:
        0 14px 30px
        rgba(15, 23, 42, 0.08);
}


.task-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;
}


.task-type {
    display: inline-flex;

    align-items: center;

    padding: 5px 10px;

    border-radius: 20px;

    background: #eff6ff;

    color: #2563eb;

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;
}


.priority-high {
    color: #dc2626;

    font-size: 12px;

    font-weight: 800;
}


.priority-medium {
    color: #d97706;

    font-size: 12px;

    font-weight: 800;
}


.priority-low {
    color: #16a34a;

    font-size: 12px;

    font-weight: 800;
}


.task-card h3 {
    margin-top: 17px;

    color: #172033;

    font-size: 18px;

    line-height: 1.35;
}


.task-card > p {
    margin-top: 8px;

    color: #64748b;

    font-size: 13px;

    line-height: 1.6;
}


.task-info {
    margin-top: 18px;

    padding-top: 14px;

    border-top:
        1px solid #eef2f7;

    color: #64748b;

    font-size: 12px;

    line-height: 2;
}


.task-info strong {
    color: #334155;
}


/* =====================================================
   FORM CARD
===================================================== */

.form-card {
    margin-bottom: 25px;

    padding: 25px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 17px;

    box-shadow:
        0 4px 15px rgba(15, 23, 42, 0.03);
}


.form-card h2 {
    margin-bottom: 20px;

    color: #172033;

    font-size: 20px;
}


.form-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 18px;
}


.full {
    grid-column: 1 / -1;
}


.button-align {
    display: flex;

    align-items: end;
}


/* =====================================================
   ADD MEMBER / ADD TASK BUTTON
===================================================== */

.add-btn {
    padding: 12px 18px;

    border: none;

    border-radius: 10px;

    background: #2563eb;

    color: #ffffff;

    font-size: 13px;

    font-weight: 700;

    transition: 0.2s;
}


.add-btn:hover {
    background: #1d4ed8;

    transform: translateY(-1px);
}


/* =====================================================
   MEMBER GRID
===================================================== */

.member-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;
}


/* =====================================================
   MEMBER CARD
===================================================== */

.member-card {
    padding: 22px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 18px;

    cursor: pointer;

    transition: 0.2s;
}


.member-card:hover {
    transform: translateY(-4px);

    border-color: #93c5fd;

    box-shadow:
        0 15px 35px
        rgba(37, 99, 235, 0.10);
}


.member-head {
    display: flex;

    align-items: center;

    gap: 13px;
}


.member-avatar {
    width: 52px;
    height: 52px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #dbeafe;

    color: #2563eb;

    font-size: 18px;

    font-weight: 800;
}


.member-card h3 {
    color: #172033;

    font-size: 17px;
}


.member-card p {
    margin-top: 5px;

    color: #64748b;

    font-size: 12px;
}


/* =====================================================
   MEMBER STATS
===================================================== */

.member-stats {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 8px;

    margin-top: 20px;
}


.member-stat {
    padding: 10px 7px;

    background: #f8fafc;

    border-radius: 9px;

    text-align: center;
}


.member-stat strong {
    display: block;

    color: #172033;

    font-size: 16px;
}


.member-stat span {
    display: block;

    margin-top: 3px;

    color: #64748b;

    font-size: 10px;
}
















/* =====================================================
   TEAM FOLDER CARDS
===================================================== */

.team-folder-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 16px;

    margin-top: 18px;

}


.team-folder-card {

    display: flex;

    align-items: center;

    gap: 14px;

    padding: 20px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 16px;

    cursor: pointer;

    transition: 0.2s;

}


.team-folder-card:hover {

    transform:
        translateY(-3px);

    border-color:
        #93c5fd;

    box-shadow:
        0 10px 25px
        rgba(
            37,
            99,
            235,
            0.10
        );

}


.folder-icon {

    font-size: 34px;

}


.folder-content {

    flex: 1;

}


.folder-content h3 {

    margin: 0;

    color:
        #172033;

    font-size: 16px;

}


.folder-content p {

    margin-top: 5px;

    color:
        #64748b;

    font-size: 12px;

}


.folder-arrow {

    font-size: 22px;

    color:
        #2563eb;

    font-weight: 700;

}


/* =====================================================
   FOLDER TASK PAGE
===================================================== */

.folder-page-list {

    margin-top: 20px;

    background:
        #ffffff;

    border:
        1px solid #e5e7eb;

    border-radius:
        16px;

    overflow:
        hidden;

}


.folder-task-row {

    display: grid;

    grid-template-columns:
        1.1fr
        2fr
        1fr
        0.9fr;

    align-items:
        center;

    gap: 15px;

    padding:
        16px 20px;

    border-bottom:
        1px solid #eef0f4;

}


.folder-task-row:last-child {

    border-bottom:
        none;

}


.folder-task-member {

    display: flex;

    align-items:
        center;

    gap: 8px;

    color:
        #172033;

    font-size:
        14px;

}


.member-small-icon {

    font-size:
        15px;

}


.folder-task-title {

    color:
        #334155;

    font-size:
        14px;

}


.folder-task-date {

    color:
        #64748b;

    font-size:
        12px;

}


.folder-task-status {

    text-align:
        right;

    font-size:
        13px;

    font-weight:
        600;

}


.status-completed {

    color:
        #16a34a;

}


.status-pending {

    color:
        #d97706;

}


/* =====================================================
   MOBILE
===================================================== */

@media (
    max-width: 800px
) {

    .team-folder-grid {

        grid-template-columns:
            1fr;

    }


    .folder-task-row {

        grid-template-columns:
            1fr;

        gap: 8px;

    }


    .folder-task-status {

        text-align:
            left;

    }

}




























/* =====================================================
   TEAM TASKS
===================================================== */

.team-tasks-section {
    margin-top: 30px;
}


.task-folder {
    margin-top: 15px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 14px;

    overflow: hidden;
}


.folder-title {
    padding: 15px 18px;

    background: #f8fafc;

    color: #172033;

    font-size: 15px;

    font-weight: 700;
}


.folder-task-list {
    padding: 10px;
}


.team-task-item {
    display: grid;

    grid-template-columns:
        180px
        1fr
        130px;

    gap: 15px;

    align-items: center;

    padding: 13px 15px;

    border-bottom: 1px solid #f1f5f9;
}


.team-task-item:last-child {
    border-bottom: none;
}


.team-task-member {
    font-weight: 600;

    color: #172033;

    font-size: 13px;
}


.team-task-title {
    color: #475569;

    font-size: 13px;
}


.team-task-status {
    text-align: right;

    font-size: 12px;

    font-weight: 600;
}


.folder-empty {
    padding: 18px;

    text-align: center;

    color: #94a3b8;

    font-size: 13px;
}


/* =====================================================
   MEMBER PERFORMANCE
===================================================== */

.member-performance-section {
    margin-top: 35px;
}


.member-performance-card {
    margin-top: 12px;

    padding: 18px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 14px;
}


.performance-top {
    display: flex;

    align-items: center;

    justify-content: space-between;
}


.performance-name {
    color: #172033;

    font-size: 14px;

    font-weight: 700;
}


.performance-top strong {
    color: #2563eb;

    font-size: 14px;
}


.performance-bar {
    width: 100%;

    height: 9px;

    margin-top: 12px;

    background: #e5e7eb;

    border-radius: 20px;

    overflow: hidden;
}


.performance-fill {
    height: 100%;

    background: #2563eb;

    border-radius: 20px;

    transition: width 0.3s ease;
}


.performance-stats {
    display: flex;

    gap: 20px;

    margin-top: 10px;

    color: #64748b;

    font-size: 11px;
}































/* =====================================================
   MEMBER VIEW BUTTON
===================================================== */

.member-view {
    margin-top: 14px;

    padding-top: 14px;

    border-top:
        1px solid #eef2f7;

    color: #2563eb;

    font-size: 13px;

    font-weight: 800;
}


/* =====================================================
   MEMBER DETAIL HEADER
===================================================== */

.member-detail-header {
    display: flex;

    align-items: center;

    gap: 18px;

    margin-bottom: 15px;

    padding: 25px;

    background:
        linear-gradient(
            135deg,
            #0f172a,
            #1d4ed8
        );

    border-radius: 20px;

    color: #ffffff;
}


.detail-avatar {
    width: 70px;
    height: 70px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ffffff;

    color: #2563eb;

    font-size: 25px;

    font-weight: 800;
}


.member-detail-header h1 {
    color: #ffffff;

    font-size: 25px;
}


.member-detail-header p {
    margin-top: 5px;

    color: rgba(255, 255, 255, 0.75);

    font-size: 13px;
}


.member-detail-header p:last-child {
    color: #ffffff;

    font-weight: 600;
}


/* =====================================================
   MEMBER DETAIL ACTIONS
===================================================== */

.member-detail-actions {
    display: flex;

    justify-content: flex-end;

    margin-bottom: 18px;
}


.member-detail-actions .add-btn {
    padding: 12px 22px;

    box-shadow:
        0 7px 18px
        rgba(37, 99, 235, 0.18);
}


/* =====================================================
   BACK BUTTON
===================================================== */

.back-btn {
    margin-bottom: 20px;

    padding: 10px 15px;

    border: none;

    border-radius: 9px;

    background: #e2e8f0;

    color: #334155;

    font-size: 13px;

    font-weight: 700;

    transition: 0.2s;
}


.back-btn:hover {
    background: #2563eb;

    color: #ffffff;
}


/* =====================================================
   EMPTY STATE
===================================================== */

.empty-state {
    grid-column: 1 / -1;

    padding: 50px 20px;

    background: #ffffff;

    border: 1px dashed #cbd5e1;

    border-radius: 16px;

    color: #64748b;

    text-align: center;
}


.empty-state h3 {
    margin-top: 12px;

    color: #334155;

    font-size: 18px;
}


.empty-state p {
    margin-top: 7px;

    font-size: 13px;
}


/* =====================================================
   DELETE BUTTON
===================================================== */

.delete-btn {
    width: 100%;

    margin-top: 12px;

    padding: 9px 12px;

    border: 1px solid #fecaca;

    border-radius: 9px;

    background: #fff5f5;

    color: #dc2626;

    font-size: 12px;

    font-weight: 700;

    transition: 0.2s;
}


.delete-btn:hover {
    background: #dc2626;

    color: #ffffff;

    border-color: #dc2626;
}


/* =====================================================
   SCROLLBAR
===================================================== */

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}


::-webkit-scrollbar-track {
    background: #f1f5f9;
}


::-webkit-scrollbar-thumb {
    background: #cbd5e1;

    border-radius: 10px;
}


::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}


/* =====================================================
   RESPONSIVE - TABLET
===================================================== */

@media (max-width: 1100px) {

    .task-grid,
    .member-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .stats {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


/* =====================================================
   RESPONSIVE - MOBILE
===================================================== */

@media (max-width: 750px) {


    .sidebar {
        width: 70px;

        padding:
            20px 10px;
    }


    .brand {
        justify-content: center;

        padding:
            0 0 22px;
    }


    .brand h2,
    .brand p {
        display: none;
    }


    .brand-logo {
        width: 42px;
        height: 42px;
    }


    .menu-btn {
        justify-content: center;

        padding:
            13px 8px;
    }


    .menu-btn span {
        display: none;
    }


    .logout-btn {
        left: 10px;
        right: 10px;

        text-align: center;

        padding:
            12px 5px;

        font-size: 0;
    }


    .logout-btn:first-letter {
        font-size: 16px;
    }


    .main {
        margin-left: 70px;
    }


    .topbar {
        height: 68px;

        padding:
            0 18px;
    }


    .topbar h2 {
        font-size: 17px;
    }


    .user-info {
        display: none;
    }


    .content {
        padding: 18px;
    }


    .section-header {
        align-items: flex-start;

        flex-direction: column;
    }


    .section-header h1 {
        font-size: 24px;
    }


    .section-header .add-btn {
        width: 100%;
    }


    .stats {
        grid-template-columns: 1fr 1fr;

        gap: 10px;
    }


    .stat-card {
        padding: 17px;
    }


    .stat-card strong {
        font-size: 25px;
    }


    .task-grid,
    .member-grid {
        grid-template-columns: 1fr;
    }


    .form-grid {
        grid-template-columns: 1fr;
    }


    .full {
        grid-column: auto;
    }


    .date-panel {
        flex-wrap: wrap;
    }


    .date-center {
        min-width: 130px;
    }


    .date-panel input[type="date"] {
        width: 100%;
    }


    .today-btn {
        flex: 1;
    }


    .member-detail-header {
        align-items: flex-start;

        padding: 20px;

        gap: 14px;
    }


    .detail-avatar {
        width: 55px;
        height: 55px;

        font-size: 20px;
    }


    .member-detail-header h1 {
        font-size: 20px;
    }


    .member-detail-actions {
        justify-content: stretch;
    }


    .member-detail-actions .add-btn {
        width: 100%;
    }

}


/* =====================================================
   VERY SMALL SCREEN
===================================================== */

@media (max-width: 450px) {

    .stats {
        grid-template-columns: 1fr;
    }


    .role-buttons {
        grid-template-columns: 1fr;
    }


    .date-arrow {
        width: 38px;
        height: 38px;
    }


    .task-tabs {
        display: grid;

        grid-template-columns:
            repeat(2, 1fr);
    }


    .task-tab {
        padding:
            10px 8px;
    }

}

/* =====================================================
   TEAM TASK ACCORDION RESULT - CLEAR UI
===================================================== */

#teamTaskResults {
    grid-column: 1 / -1;
    width: 100%;
}

.team-task-result-box {
    margin-top: 2px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.team-task-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.team-task-result-header h3 {
    margin: 0;
    color: #172033;
    font-size: 16px;
}

.team-task-result-header p {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
}

.team-task-count {
    flex-shrink: 0;
    padding: 6px 10px;
    border-radius: 20px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
}

.team-task-result-list {
    width: 100%;
}

.team-task-result-row {
    display: grid;
    grid-template-columns: minmax(190px, 0.9fr) minmax(260px, 2fr) 130px;
    align-items: center;
    gap: 18px;
    padding: 15px 20px;
    border-bottom: 1px solid #eef2f7;
}

.team-task-result-row:last-child {
    border-bottom: none;
}

.team-task-person {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.team-task-avatar {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #dbeafe;
    color: #2563eb;
    font-size: 13px;
    font-weight: 800;
}

.team-task-person strong,
.team-task-main strong {
    display: block;
    color: #172033;
    font-size: 14px;
}

.team-task-person small {
    display: block;
    margin-top: 3px;
    color: #94a3b8;
    font-size: 11px;
}

.team-task-main {
    min-width: 0;
}

.team-task-main span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-task-status {
    justify-self: end;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.team-task-status.is-completed {
    color: #16a34a;
}

.team-task-status.is-pending {
    color: #d97706;
}

.team-task-empty {
    padding: 28px 20px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
}

@media (max-width: 800px) {
    .team-task-result-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .team-task-status {
        justify-self: start;
    }
}



























































































/* =====================================================
   PROFESSIONAL DASHBOARD DATE RANGE PICKER
===================================================== */

.dashboard-date-picker-wrap {
    position: relative;
    width: 100%;
}


/* =====================================================
   MAIN BUTTON
===================================================== */

.dashboard-date-range-button {
    min-width: 330px;
    height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 0 16px;

    background: #ffffff;

    border: 1px solid #cbd5e1;
    border-radius: 7px;

    color: #1e293b;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}

.dashboard-date-range-button:hover {
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.date-range-icon {
    font-size: 16px;
    color: #334155;
}

.date-range-arrow {
    font-size: 16px;
    margin-left: auto;
    color: #475569;
}


/* =====================================================
   POPUP
===================================================== */

.dashboard-date-picker {
    position: absolute;

    top: calc(100% + 8px);
    right: 0;

    width: 730px;

    display: none;

    background: #ffffff;

    border: 1px solid #dbe2ea;

    border-radius: 8px;

    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.18);

    z-index: 9999;

    overflow: hidden;
}

.dashboard-date-picker.open {
    display: flex;
}


/* =====================================================
   LEFT PRESETS
===================================================== */

.date-picker-presets {
    width: 205px;

    padding: 15px 10px;

    border-right: 1px solid #e2e8f0;

    background: #ffffff;

    max-height: 520px;

    overflow-y: auto;
}

.date-picker-title {
    padding: 5px 9px 10px;

    font-size: 13px;

    font-weight: 700;

    color: #334155;
}


.date-preset {
    width: 100%;

    display: block;

    padding: 9px 10px;

    margin: 2px 0;

    border: 0;

    border-radius: 6px;

    background: transparent;

    color: #334155;

    text-align: left;

    font-size: 13px;

    cursor: pointer;

    transition: 0.15s ease;
}

.date-preset:hover {
    background: #f1f5f9;
}

.date-preset.active {
    background: #eff6ff;

    color: #0f172a;

    font-weight: 700;
}

.date-preset.active::before {
    content: "●";

    display: inline-block;

    margin-right: 8px;

    color: #2563eb;

    font-size: 10px;
}


/* =====================================================
   CALENDAR AREA
===================================================== */

.date-picker-calendar-area {
    flex: 1;

    min-width: 0;

    padding: 18px;
}


/* =====================================================
   CALENDAR HEADER
===================================================== */

.date-picker-calendar-header {
    display: grid;

    grid-template-columns: 36px 1fr 1fr 36px;

    align-items: center;

    gap: 4px;

    margin-bottom: 12px;
}

.calendar-nav-btn {
    width: 32px;
    height: 32px;

    border: 0;

    background: transparent;

    border-radius: 6px;

    font-size: 25px;

    color: #334155;

    cursor: pointer;
}

.calendar-nav-btn:hover {
    background: #f1f5f9;
}


.calendar-month-title {
    text-align: center;

    font-size: 14px;

    font-weight: 700;

    color: #334155;
}


/* =====================================================
   TWO CALENDARS
===================================================== */

.dashboard-two-calendars {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;
}


.dashboard-calendar {
    min-width: 0;
}


/* =====================================================
   WEEKDAYS
===================================================== */

.dashboard-calendar-weekdays {
    display: grid;

    grid-template-columns: repeat(7, 1fr);

    margin-bottom: 6px;
}

.dashboard-calendar-weekday {
    text-align: center;

    font-size: 11px;

    font-weight: 600;

    color: #64748b;

    padding: 5px 0;
}


/* =====================================================
   DAYS
===================================================== */

.dashboard-calendar-days {
    display: grid;

    grid-template-columns: repeat(7, 1fr);

    row-gap: 4px;
}


.dashboard-calendar-day {
    width: 30px;
    height: 30px;

    margin: auto;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 0;

    border-radius: 5px;

    background: transparent;

    color: #334155;

    font-size: 12px;

    cursor: pointer;

    position: relative;

    z-index: 2;
}


.dashboard-calendar-day:hover {
    background: #e2e8f0;
}


.dashboard-calendar-day.other-month {
    color: #cbd5e1;
}


.dashboard-calendar-day.today {
    box-shadow: inset 0 0 0 1px #2563eb;
}


.dashboard-calendar-day.selected {
    background: #2563eb;

    color: #ffffff;

    font-weight: 700;
}


.dashboard-calendar-day.in-range {
    background: #dbeafe;

    color: #1e3a8a;

    border-radius: 0;
}


.dashboard-calendar-day.range-start {
    background: #2563eb;

    color: #ffffff;

    border-radius: 5px 0 0 5px;
}


.dashboard-calendar-day.range-end {
    background: #2563eb;

    color: #ffffff;

    border-radius: 0 5px 5px 0;
}


/* FUTURE DATE */

.dashboard-calendar-day.future {
    color: #cbd5e1;

    background: transparent;

    cursor: not-allowed;

    pointer-events: none;
}


/* =====================================================
   COMPARE
===================================================== */

.date-compare-row {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 18px;

    font-size: 13px;

    color: #334155;

    cursor: pointer;
}

.date-compare-row input {
    width: 18px;
    height: 18px;

    cursor: pointer;
}


/* =====================================================
   BOTTOM RANGE
===================================================== */

.date-picker-bottom {
    margin-top: 14px;

    padding-top: 14px;

    border-top: 1px solid #e2e8f0;
}


.date-picker-range-preview {
    display: flex;

    align-items: center;

    gap: 6px;
}


#dashboardSelectedPreset {
    min-width: 125px;

    padding: 9px 10px;

    border: 1px solid #cbd5e1;

    border-radius: 5px;

    background: #ffffff;

    font-size: 12px;

    color: #334155;
}


#dashboardRangeStartPreview,
#dashboardRangeEndPreview {
    width: 125px;

    height: 38px;

    padding: 0 9px;

    border: 1px solid #cbd5e1;

    border-radius: 5px;

    background: #ffffff;

    color: #334155;

    font-size: 12px;
}


.range-separator {
    color: #64748b;

    font-size: 13px;
}


/* =====================================================
   ACTIONS
===================================================== */

.date-picker-actions {
    display: flex;

    justify-content: flex-end;

    gap: 8px;

    margin-top: 14px;
}


.date-picker-cancel,
.date-picker-update {
    height: 38px;

    padding: 0 16px;

    border-radius: 5px;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;
}


.date-picker-cancel {
    background: #ffffff;

    border: 1px solid #cbd5e1;

    color: #334155;
}


.date-picker-cancel:hover {
    background: #f8fafc;
}


.date-picker-update {
    background: #2563eb;

    border: 1px solid #2563eb;

    color: #ffffff;
}


.date-picker-update:hover {
    background: #1d4ed8;
}


/* =====================================================
   SCROLLBAR
===================================================== */

.date-picker-presets::-webkit-scrollbar {
    width: 6px;
}

.date-picker-presets::-webkit-scrollbar-track {
    background: #f8fafc;
}

.date-picker-presets::-webkit-scrollbar-thumb {
    background: #cbd5e1;

    border-radius: 10px;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 850px) {

    .dashboard-date-picker {
        width: 95vw;

        right: 0;
    }

    .dashboard-two-calendars {
        gap: 8px;
    }

    .dashboard-calendar-day {
        width: 27px;
        height: 27px;

        font-size: 11px;
    }
}


@media (max-width: 650px) {

    .dashboard-date-range-button {
        width: 100%;

        min-width: 0;
    }

    .dashboard-date-picker {
        width: 95vw;

        flex-direction: column;

        right: 0;
    }

    .date-picker-presets {
        width: 100%;

        max-height: 220px;

        border-right: 0;

        border-bottom: 1px solid #e2e8f0;
    }

    .dashboard-two-calendars {
        grid-template-columns: 1fr;
    }

    .dashboard-calendar:nth-child(2) {
        display: none;
    }

    .date-picker-range-preview {
        flex-wrap: wrap;
    }
}

/* =====================================================
   2026-08-21 SAFE UI PATCH
===================================================== */

.dashboard-date-picker.open { display: flex; }
.dashboard-date-picker.show { display: flex; } /* compatibility */

.task-history-summary {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #166534;
    font-size: 12px;
}
.task-history-summary.pending-history {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}
.task-history-summary strong { font-size: 13px; }

.lead-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: -12px 0 30px;
}
.lead-stat-card {
    text-align: left;
    padding: 18px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    transition: .2s ease;
}
.lead-stat-card:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(15,23,42,.07); }
.lead-stat-card span { display:block; color:#64748b; font-size:13px; font-weight:700; }
.lead-stat-card strong { display:block; margin-top:6px; font-size:28px; color:#172033; }
.lead-stat-card small { color:#94a3b8; }
.lead-stat-card.ongoing { border-left:4px solid #f59e0b; }
.lead-stat-card.confirmed { border-left:4px solid #16a34a; }

.dashboard-lead-panel,
.member-lead-card {
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:16px;
    box-shadow:0 8px 22px rgba(15,23,42,.05);
}
.dashboard-lead-panel { margin:0 0 28px; overflow:hidden; }
.lead-panel-header,
.member-lead-head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:18px 20px;
    background:#f8fafc;
    border-bottom:1px solid #e5e7eb;
}
.lead-panel-header div { display:flex; flex-direction:column; gap:3px; }
.lead-panel-header span,.member-lead-head p { color:#64748b; font-size:12px; margin-top:4px; }
.lead-close { border:0; background:#eef2ff; color:#334155; width:32px; height:32px; border-radius:8px; font-size:20px; cursor:pointer; }
.lead-table-wrap { overflow:auto; }
.lead-table { width:100%; border-collapse:collapse; min-width:650px; }
.lead-table th,.lead-table td { padding:13px 16px; border-bottom:1px solid #eef2f7; text-align:left; font-size:12px; }
.lead-table th { color:#64748b; background:#fff; font-size:11px; text-transform:uppercase; }
.lead-table td small { display:block; margin-top:3px; color:#94a3b8; }
.lead-status { display:inline-flex; align-items:center; padding:5px 9px; border-radius:999px; font-weight:800; font-size:11px; }
.lead-status.ongoing { background:#fff7ed; color:#c2410c; }
.lead-status.confirmed { background:#f0fdf4; color:#15803d; }
.lead-confirm-btn { border:0; padding:7px 10px; border-radius:8px; background:#2563eb; color:#fff; font-size:11px; font-weight:700; cursor:pointer; }
.lead-empty { padding:22px; text-align:center; color:#64748b; font-size:13px; }
.member-lead-card { margin:0 0 25px; overflow:hidden; }
.member-lead-head { align-items:flex-start; }
.member-lead-head h2 { font-size:18px; color:#172033; }
.lead-note-badge { padding:6px 9px; background:#dbeafe; color:#1d4ed8; border-radius:999px; font-size:11px; font-weight:800; }
.lead-form-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; padding:20px; }
.lead-form-grid .full { grid-column:1/-1; }
.member-lead-list { border-top:1px solid #eef2f7; }
.lead-row { display:grid; grid-template-columns:2fr 1fr auto; gap:14px; align-items:center; padding:13px 20px; border-bottom:1px solid #eef2f7; }
.lead-row:last-child { border-bottom:0; }
.lead-row strong { display:block; color:#172033; font-size:13px; }
.lead-row small { display:block; margin-top:3px; color:#94a3b8; }
.lead-date { color:#64748b; font-size:11px; }
.member-performance-extra { margin: 12px 0 20px; }
.performance-extra-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.performance-extra-grid > div { padding:12px; background:#f8fafc; border:1px solid #e5e7eb; border-radius:12px; }
.performance-extra-grid strong { display:block; font-size:18px; color:#172033; }
.performance-extra-grid span { display:block; margin-top:3px; color:#64748b; font-size:11px; }

@media (max-width: 850px) {
    .lead-form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .lead-row { grid-template-columns:1fr; }
}
@media (max-width: 650px) {
    .lead-stats { grid-template-columns:1fr; }
    .lead-form-grid { grid-template-columns:1fr; }
    .lead-form-grid .full { grid-column:auto; }
    .performance-extra-grid { grid-template-columns:1fr; }
    .dashboard-date-picker { max-height:80vh; overflow:auto; }
}

/* =====================================================
   MEMBER TASK REPLY / STATUS UI
   Member-only. Admin task card styles remain untouched.
===================================================== */
.member-task-status-line {
    display: inline-flex;
    margin-top: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}
.member-task-status-line.is-pending {
    background: #fff7ed;
    color: #c2410c;
}
.member-task-status-line.is-complete {
    background: #f0fdf4;
    color: #15803d;
}
.member-reply-trigger {
    margin-top: 12px;
    border: 0;
    border-radius: 9px;
    padding: 9px 13px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}
.member-reply-trigger:hover {
    background: #dbeafe;
}
.member-reply-box {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #f8fafc;
}
.member-reason-label {
    display: block;
    margin-bottom: 7px;
    color: #172033;
    font-size: 12px;
    font-weight: 800;
}

.member-reply-box textarea {
    width: 100%;
    min-height: 74px;
    resize: vertical;
    padding: 10px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: #172033;
    font-family: inherit;
    font-size: 12px;
    box-sizing: border-box;
}
.member-reply-box textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.08);
}
.member-reply-box textarea.member-reply-error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220,38,38,.08);
}
.member-reply-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 9px;
}
.member-status-btn {
    border: 0;
    border-radius: 9px;
    padding: 10px 12px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}
.member-status-btn.pending {
    background: #f59e0b;
}
.member-status-btn.pending:hover {
    background: #d97706;
}
.member-status-btn.complete {
    background: #16a34a;
}
.member-status-btn.complete:hover {
    background: #15803d;
}
.member-task-response {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.45;
}
.member-task-response.pending {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
}
.member-task-response.completed {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}
.member-task-response strong {
    font-size: 11px;
}
.member-task-response span {
    color: inherit;
}

/* =====================================================
   MEMBER LEAD FORM - ALL TASKS
   Member-only. Admin panel is not affected.
===================================================== */
.member-lead-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid #2563eb;
    border-radius: 10px;
    background: #2563eb;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: .2s ease;
}

.member-lead-open-btn:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
}

.member-lead-form-panel {
    margin: -8px 0 25px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15,23,42,.06);
    overflow: hidden;
}

.member-lead-form-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.member-lead-form-head h2 {
    margin: 0;
    color: #172033;
    font-size: 18px;
}

.member-lead-form-head p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 12px;
}

.member-lead-close-btn {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 9px;
    background: #e2e8f0;
    color: #334155;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.member-lead-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    padding: 20px;
}

.member-lead-form-grid > div {
    min-width: 0;
}

.member-lead-form-grid label {
    display: block;
    margin-bottom: 6px;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}

.member-lead-form-grid input,
.member-lead-form-grid select,
.member-lead-form-grid textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: #172033;
    font: inherit;
    font-size: 13px;
}

.member-lead-form-grid textarea {
    min-height: 84px;
    resize: vertical;
}

.member-lead-form-grid input:focus,
.member-lead-form-grid select:focus,
.member-lead-form-grid textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.08);
}

.member-lead-form-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
}

.member-lead-save-btn {
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: #2563eb;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.member-lead-save-btn:hover {
    background: #1d4ed8;
}

.member-lead-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 0 20px 20px;
}

.member-lead-section-box {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.member-lead-section-title {
    padding: 12px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    color: #172033;
    font-size: 12px;
    font-weight: 900;
}

.member-lead-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 14px;
    border-bottom: 1px solid #eef2f7;
}

.member-lead-row:last-child {
    border-bottom: 0;
}

.member-lead-row-main {
    min-width: 0;
}

.member-lead-row-main strong,
.member-lead-row-main small {
    display: block;
}

.member-lead-row-main strong {
    color: #172033;
    font-size: 13px;
}

.member-lead-row-main small {
    margin-top: 3px;
    color: #64748b;
    font-size: 11px;
}

.member-lead-row-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.member-lead-row-meta .lead-confirm-btn {
    border: 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.member-lead-row-meta .lead-confirm-btn:hover {
    background: #1d4ed8;
}

@media (max-width: 850px) {
    .member-lead-form-grid,
    .member-lead-sections {
        grid-template-columns: 1fr;
    }

    .member-lead-form-actions {
        grid-column: auto;
    }
}

@media (max-width: 650px) {
    .date-panel {
        flex-wrap: wrap;
    }

    .date-panel .date-center {
        min-width: calc(100% - 110px);
    }

    .date-panel input[type="date"] {
        width: 100%;
        order: 10;
    }

    .member-lead-open-btn,
    .today-btn {
        flex: 1;
    }

    .member-lead-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .member-lead-row-meta {
        justify-content: flex-start;
    }
}
