/* ── Treelife Compliance Calendar ── v1.0 ──────────────────────────── */

.tl-ccal {
    font-family: inherit;
    font-size: 14px;
    color: #1c2b3a;
}

/* ── Section label ─────────────────────────────────────────────────── */

.tl-ccal__section-label {
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.07em !important;
    color: #6b7280 !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
}

/* ── Widget rows (kick.co style) ───────────────────────────────────── */

.tl-ccal__rows {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tl-ccal__row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tl-ccal__entity {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #1c2b3a !important;
    min-width: 0;
}

.tl-ccal__date-badge {
    font-size: 12px;
    font-weight: 500;
    color: #374151 !important;
    background: #e9ebee !important;
    padding: 3px 9px;
    border-radius: 4px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

/* ── Add button (shared widget + table) ────────────────────────────── */

.tl-ccal__add-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    padding: 3px 9px !important;
    text-decoration: none !important;
    background: #fff !important;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.5;
}

.tl-ccal__add-btn:hover {
    background: #f0fdf4 !important;
    border-color: #166534 !important;
    color: #166534 !important;
    text-decoration: none !important;
}

.tl-ccal__add-btn svg {
    flex-shrink: 0;
    vertical-align: middle;
}

/* ── Widget footer link ────────────────────────────────────────────── */

.tl-ccal__widget-footer {
    margin-top: 12px;
}

.tl-ccal__viewall {
    font-size: 12px !important;
    color: #28AFA6 !important;
    text-decoration: none !important;
    font-weight: 500;
}

.tl-ccal__viewall:hover {
    text-decoration: underline !important;
}

/* ── Detail mode: entity tabs ──────────────────────────────────────── */

.tl-ccal--detail .tl-ccal__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 20px;
}

.tl-ccal__tab {
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    background: #fff;
    color: #374151;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    line-height: 1.5;
}

.tl-ccal__tab:hover,
.tl-ccal__tab.is-active {
    background: #166534;
    border-color: #166534;
    color: #fff;
}

/* ── Detail mode: table ────────────────────────────────────────────── */

.tl-ccal__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tl-ccal__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.tl-ccal__table th {
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
    padding: 8px 12px;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

.tl-ccal__table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f3f4f6;
    color: #1c2b3a;
    vertical-align: middle;
}

.tl-ccal__table tr:last-child td {
    border-bottom: none;
}

.tl-ccal__td-title {
    font-weight: 500;
}

.tl-ccal__td-date {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

/* ── Area tags ─────────────────────────────────────────────────────── */

.tl-ccal__area {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.tl-ccal__area--gst          { background: #fef3c7; color: #92400e; }
.tl-ccal__area--tds          { background: #dbeafe; color: #1e40af; }
.tl-ccal__area--income-tax   { background: #ede9fe; color: #5b21b6; }
.tl-ccal__area--roc          { background: #dcfce7; color: #166534; }
.tl-ccal__area--pf-esic      { background: #fce7f3; color: #9d174d; }
.tl-ccal__area--fema         { background: #ffedd5; color: #9a3412; }
.tl-ccal__area--sebi         { background: #e0f2fe; color: #0c4a6e; }

/* ── Disclaimer / ICS link ─────────────────────────────────────────── */

.tl-ccal__disclaimer {
    margin-top: 14px !important;
    font-size: 11px !important;
    color: #9ca3af !important;
    line-height: 1.5 !important;
}

.tl-ccal__ics-link {
    color: #28AFA6 !important;
    text-decoration: none !important;
}

.tl-ccal__ics-link:hover {
    text-decoration: underline !important;
}

/* ── Responsive ────────────────────────────────────────────────────── */

@media (max-width: 480px) {
    .tl-ccal__entity   { font-size: 12px; }
    .tl-ccal__date-badge { font-size: 11px; padding: 2px 7px; }
    .tl-ccal__add-btn  { font-size: 11px !important; padding: 2px 7px !important; }
    .tl-ccal__tab      { font-size: 11px; padding: 4px 10px; }
}
