/* ============================================================
   Transparencia 360° — Base (componentes compartidos)
   Mobile-first. Breakpoints: 480 | 640 | 768 | 1024 | 1280 | 1536
   ============================================================ */

/* ------------------------------------------------------------
   Variables
   ------------------------------------------------------------ */
:root {
    --t360-primary:       #2563eb;
    --t360-primary-hover: #1d4ed8;
    --t360-secondary:     #64748b;
    --t360-success:       #10b981;
    --t360-danger:        #ef4444;
    --t360-warning:       #f59e0b;
    --t360-bg-card:       #ffffff;
    --t360-border-color:  #e2e8f0;
    --t360-text-main:     #1e293b;
    --t360-text-muted:    #64748b;
    --t360-shadow-sm:     0 1px 2px 0 rgb(0 0 0 / 0.05);
    --t360-shadow:        0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --t360-shadow-lg:     0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --t360-radius:        12px;
    --t360-radius-sm:     8px;
    --t360-radius-xs:     6px;
    --t360-font:          'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ------------------------------------------------------------
   Container
   ------------------------------------------------------------ */
.t360-dashboard-container {
    width: 100%;
    padding: 12px 14px;
    margin: 0 auto;
    font-family: var(--t360-font);
    color: var(--t360-text-main);
    line-height: 1.5;
    box-sizing: border-box;
}

@media (min-width: 480px) {
    .t360-dashboard-container { padding: 16px 20px; }
}

@media (min-width: 1024px) {
    .t360-dashboard-container { width: 96%; max-width: 1200px; padding: 20px; }
}

@media (min-width: 1280px) {
    .t360-dashboard-container { max-width: 1440px; }
}

@media (min-width: 1536px) {
    .t360-dashboard-container { max-width: 1800px; }
}

/* ------------------------------------------------------------
   Typography
   ------------------------------------------------------------ */
.t360-dashboard-container h2,
.t360-dashboard-container h3 {
    color: var(--t360-text-main);
    font-weight: 700;
}

.t360-dashboard-container h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.t360-dashboard-container h3 {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .t360-dashboard-container h2 { font-size: 1.75rem; margin-bottom: 1.5rem; }
    .t360-dashboard-container h3 { font-size: 1.25rem; margin-bottom: 1rem; }
}

/* ------------------------------------------------------------
   Role Switcher
   ------------------------------------------------------------ */
.t360-role-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    justify-content: flex-start;
}

@media (min-width: 480px) {
    .t360-role-switcher {
        justify-content: flex-end;
        margin-bottom: 24px;
    }
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.t360-btn,
.t360-btn-submit,
.t360-btn-upload,
.t360-btn-secondary,
.t360-btn-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    min-height: 44px;
    border-radius: var(--t360-radius-sm);
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    line-height: 1.25rem;
    background-color: var(--t360-primary) !important;
    color: white !important;
    box-shadow: var(--t360-shadow-sm);
    gap: 6px;
    white-space: nowrap;
}

.t360-btn:hover,
.t360-btn-submit:hover,
.t360-btn-upload:hover,
.t360-btn-secondary:hover {
    background-color: var(--t360-primary-hover) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: var(--t360-shadow);
}

.t360-btn:active,
.t360-btn-submit:active {
    transform: translateY(0);
}

.t360-btn--sm  { padding: 5px 10px; font-size: 0.75rem; min-height: 32px; }
.t360-btn--xs  { padding: 4px 8px;  font-size: 0.7rem;  min-height: 28px; }

.t360-btn--danger:hover  { background-color: #dc2626 !important; }
.t360-btn--danger        { background-color: #ef4444 !important; }
.t360-btn--indigo        { background-color: #6366f1 !important; }
.t360-btn--indigo:hover  { background-color: #4f46e5 !important; }
.t360-btn--slate         { background-color: #64748b !important; }
.t360-btn--slate:hover   { background-color: #475569 !important; }
.t360-btn--blue          { background-color: #3b82f6 !important; }
.t360-btn--blue:hover    { background-color: #2563eb !important; }
.t360-btn--neutral       { background-color: #e2e8f0 !important; color: #475569 !important; }
.t360-btn--neutral:hover { background-color: #cbd5e1 !important; color: #1e293b !important; }

/* ------------------------------------------------------------
   Alerts
   ------------------------------------------------------------ */
.t360-alert {
    padding: 12px 16px;
    border-radius: var(--t360-radius-sm);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.t360-alert--success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.t360-alert--error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.t360-alert--warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.t360-alert__title {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.t360-alert p { margin: 0; font-size: 0.875rem; }

/* ------------------------------------------------------------
   Filter Bar
   ------------------------------------------------------------ */
.t360-filter-bar {
    background: #f8fafc;
    padding: 12px 14px;
    border-radius: var(--t360-radius-sm);
    margin-bottom: 16px;
    border: 1px solid var(--t360-border-color);
}

.t360-filter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 640px) {
    .t360-filter-form {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-end;
        gap: 10px;
    }
}

.t360-filter-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1 1 140px;
}

.t360-filter-field--xs   { flex: 0 1 90px; }
.t360-filter-field--sm   { flex: 0 1 130px; }
.t360-filter-field--grow { flex: 1 1 160px; }

.t360-filter-label {
    font-size: 0.8rem;
    color: var(--t360-text-muted);
    font-weight: 600;
}

.t360-filter-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: var(--t360-radius-xs);
    font-size: 0.9rem;
    background: white;
    min-height: 40px;
    box-sizing: border-box;
    font-family: var(--t360-font);
}

.t360-filter-input:focus {
    outline: none;
    border-color: var(--t360-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.t360-filter-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: flex-end;
    flex-shrink: 0;
}

/* ------------------------------------------------------------
   Stats Row (tarjetas tipo dashboard)
   ------------------------------------------------------------ */
.t360-stats-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

@media (min-width: 480px) {
    .t360-stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .t360-stats-row {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        margin-bottom: 30px;
    }
}

/* ------------------------------------------------------------
   Stat Card (tarjeta con color — resumen financiero)
   ------------------------------------------------------------ */
.t360-stat-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

@media (min-width: 480px) {
    .t360-stat-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .t360-stat-cards {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        margin-bottom: 30px;
    }
}

.t360-stat-card {
    color: white;
    padding: 20px;
    border-radius: var(--t360-radius);
    box-shadow: var(--t360-shadow);
}

@media (min-width: 1024px) {
    .t360-stat-card { padding: 30px; }
}

.t360-stat-card--income   { background: linear-gradient(135deg, #10b981, #059669); }
.t360-stat-card--expense  { background: linear-gradient(135deg, #ef4444, #dc2626); }
.t360-stat-card--positive { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.t360-stat-card--negative { background: linear-gradient(135deg, #f59e0b, #d97706); }
.t360-stat-card--treasury { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

.t360-stat-card__label {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.t360-stat-card__value {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1.1;
}

@media (min-width: 1024px) {
    .t360-stat-card__value { font-size: 2.5rem; }
}

.t360-stat-card__note {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* ------------------------------------------------------------
   Plain card (t360-card — dashboard resumen)
   ------------------------------------------------------------ */
.t360-card {
    background: var(--t360-bg-card);
    padding: 16px 18px;
    border-radius: var(--t360-radius);
    box-shadow: var(--t360-shadow);
    text-align: center;
    border: 1px solid var(--t360-border-color);
    transition: transform 0.2s ease;
}

@media (min-width: 768px) {
    .t360-card { padding: 24px; }
}

.t360-card:hover { transform: scale(1.02); }

.t360-card h3 {
    margin: 0 0 8px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--t360-text-muted);
}

.t360-card .money {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    color: var(--t360-text-main);
}

@media (min-width: 768px) {
    .t360-card .money { font-size: 1.875rem; }
}

.t360-card-income   { border-top: 4px solid var(--t360-success); }
.t360-card-expense  { border-top: 4px solid var(--t360-danger); }
.t360-card-overdue  { border-top: 4px solid var(--t360-warning); }
.t360-card-rejected { border-top: 4px solid var(--t360-warning); }

/* ------------------------------------------------------------
   Tabs
   ------------------------------------------------------------ */
.t360-tabs-mobile {
    display: block;
    margin-bottom: 16px;
}

.t360-mobile-select {
    width: 100%;
    padding: 14px 40px 14px 16px;
    font-size: 16px;
    border: 2px solid var(--t360-primary);
    border-radius: var(--t360-radius-sm);
    background-color: white;
    color: var(--t360-text-main);
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%232563eb' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    min-height: 44px;
}

.t360-mobile-select:focus {
    outline: none;
    border-color: var(--t360-primary-hover);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.t360-tabs {
    display: none;
    background-color: #f1f5f9;
    padding: 5px;
    border-radius: 10px;
    margin-bottom: 25px;
    gap: 3px;
    border: 1px solid var(--t360-border-color);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
    .t360-tabs        { display: flex; }
    .t360-tabs-mobile { display: none; }
}

.t360-tab-btn {
    flex: 1;
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 9px 14px;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--t360-text-muted);
    border-radius: 7px;
    white-space: nowrap;
    letter-spacing: 0.01em;
    min-height: 36px;
}

.t360-tab-btn:hover {
    color: var(--t360-text-main);
    background-color: rgba(255, 255, 255, 0.7);
}

.t360-tab-btn.active {
    background-color: white;
    color: var(--t360-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
}

/* ------------------------------------------------------------
   Tables
   ------------------------------------------------------------ */
.t360-table-container {
    background: white;
    border-radius: var(--t360-radius);
    border: 1px solid var(--t360-border-color);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--t360-shadow-sm);
}

.t360-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}

.t360-table th {
    background-color: #f8fafc;
    color: var(--t360-text-muted);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--t360-border-color);
    white-space: nowrap;
}

.t360-table td {
    padding: 12px;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--t360-border-color);
    vertical-align: middle;
}

@media (min-width: 768px) {
    .t360-table th { padding: 12px 16px; }
    .t360-table td { padding: 16px; font-size: 0.875rem; }
}

.t360-table tr:last-child td { border-bottom: none; }
.t360-table tr:hover         { background-color: #f8fafc; }

/* Mobile: card layout */
@media (max-width: 639px) {
    .t360-table-container { overflow-x: visible; }

    .t360-table,
    .t360-table thead,
    .t360-table tbody,
    .t360-table tr,
    .t360-table td { display: block; width: 100%; }

    .t360-table { min-width: unset; }
    .t360-table thead { display: none; }

    .t360-table tr {
        margin-bottom: 12px;
        border: 1px solid var(--t360-border-color);
        border-radius: var(--t360-radius);
        background: white;
        padding: 4px 0;
    }

    .t360-table td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        text-align: right;
        padding: 10px 14px;
        border: none;
        border-bottom: 1px solid #f1f5f9;
        gap: 8px;
        min-height: 40px;
    }

    .t360-table td:last-child { border-bottom: none; }

    .t360-table td::before {
        content: attr(data-label);
        font-weight: 600;
        text-align: left;
        color: var(--t360-text-muted);
        font-size: 0.75rem;
        flex-shrink: 0;
        min-width: 90px;
        padding-top: 2px;
    }

    #Transparencia .t360-table td {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    #Transparencia .t360-table td::before {
        min-width: auto;
        margin-bottom: 2px;
    }

    .t360-status {
        white-space: normal;
        text-align: center;
        min-width: unset;
        line-height: 1.3;
    }
}

/* ------------------------------------------------------------
   Status Badges
   ------------------------------------------------------------ */
.t360-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    min-width: 90px;
    white-space: nowrap;
    line-height: 1;
}

.t360-status.pending          { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.t360-status.paid             { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.t360-status.rejected         { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.t360-status.approval_pending { background: #e0f2fe; color: #075985; border: 1px solid #bae6fd; }

/* ------------------------------------------------------------
   Modal
   ------------------------------------------------------------ */
.t360-modal {
    display: none !important;
    position: fixed !important;
    inset: 0;
    z-index: 99999999 !important;
    width: 100vw !important;
    height: 100vh !important;
    overflow: hidden;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
}

.t360-modal.is-active {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
}

@media (min-width: 640px) {
    .t360-modal.is-active {
        align-items: center !important;
        padding: 20px !important;
    }
}

.t360-modal-content {
    background-color: #ffffff;
    padding: 0;
    width: 100%;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: t360ModalSlide 0.25s ease-out;
    border: 1px solid var(--t360-border-color);
    position: relative !important;
    border-radius: 16px 16px 0 0;
}

@media (min-width: 640px) {
    .t360-modal-content {
        border-radius: 16px;
        width: 95%;
        max-width: 1200px;
        max-height: 90vh;
    }
}

#modal-messaging-admin .t360-modal-content,
#modal-messaging .t360-modal-content {
    max-width: 1100px;
}

.t360-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--t360-border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background-color: #f8fafc;
    border-radius: 16px 16px 0 0;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .t360-modal-header { padding: 20px 24px; }
}

.t360-modal-body {
    padding: 16px;
    overflow-y: auto;
    background-color: #f8fafc;
    border-radius: 0 0 16px 16px;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 640px) {
    .t360-modal-body { padding: 30px; }
}

.t360-close {
    color: var(--t360-text-main) !important;
    background-color: #f8fafc !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    line-height: 1 !important;
    width: 36px !important;
    height: 36px !important;
    min-height: unset !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid var(--t360-border-color) !important;
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    z-index: 999999999 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    user-select: none !important;
    flex-shrink: 0 !important;
}

.t360-close:hover {
    background-color: var(--t360-danger) !important;
    color: white !important;
    transform: rotate(90deg) scale(1.1) !important;
    border-color: var(--t360-danger) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4) !important;
}

@keyframes t360ModalSlide {
    from { transform: translateY(30px);  opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

@media (min-width: 640px) {
    @keyframes t360ModalSlide {
        from { transform: translateY(-20px); opacity: 0; }
        to   { transform: translateY(0);     opacity: 1; }
    }
}

/* ------------------------------------------------------------
   Modal Header Inner Layout
   ------------------------------------------------------------ */
.t360-modal-header__group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.t360-modal-header__icon { font-size: 24px; line-height: 1; }

.t360-modal-header__title {
    margin: 0;
    font-size: 1.1rem;
}

.t360-modal-header__subtitle {
    color: var(--t360-text-muted);
    font-weight: normal;
    font-size: 0.85rem;
    display: block;
}

/* ------------------------------------------------------------
   Forms
   ------------------------------------------------------------ */
.t360-form-box {
    background: white;
    padding: 16px;
    border-radius: var(--t360-radius);
    border: 1px solid var(--t360-border-color);
    box-shadow: var(--t360-shadow-sm);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .t360-form-box { padding: 24px; }
}

.t360-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--t360-text-main);
}

.t360-form-group input,
.t360-form-group select,
.t360-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--t360-border-color);
    border-radius: var(--t360-radius-sm);
    font-size: 0.875rem;
    transition: all 0.2s;
    background-color: #f8fafc;
    box-sizing: border-box;
    min-height: 44px;
    font-family: var(--t360-font);
}

.t360-form-group input:focus,
.t360-form-group select:focus,
.t360-form-group textarea:focus {
    outline: none;
    border-color: var(--t360-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background-color: white;
}

.t360-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 480px) {
    .t360-form-grid-2 { grid-template-columns: 1fr 1fr; gap: 16px; }
}

.t360-form-info-box {
    background: #f8fafc;
    padding: 14px;
    border-radius: var(--t360-radius-sm);
    margin-bottom: 20px;
}

.t360-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 4px;
}

.t360-form-field-label {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 5px;
}

.t360-form-field-label--bold {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1e293b;
}

.t360-form-input-readonly {
    width: 100%;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
}

.t360-form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    resize: vertical;
    font-family: inherit;
}

/* Mini upload form dentro de tabla */
.t360-upload-row {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
}

.t360-upload-textarea {
    width: 100%;
    margin-bottom: 5px;
    font-size: 0.8rem;
    padding: 6px;
    border: 1px solid var(--t360-border-color);
    border-radius: var(--t360-radius-sm);
}

.t360-upload-filename {
    font-size: 0.7rem;
    color: #666;
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Expense detail box (modal consulta gastos) */
.t360-expense-detail-box {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    padding: 14px;
    border-radius: var(--t360-radius-sm);
    margin-bottom: 20px;
}

.t360-expense-detail-box__title {
    margin: 0 0 10px;
    color: #92400e;
    font-size: 0.9rem;
}

.t360-expense-detail-box__body {
    font-size: 0.9rem;
    color: #78350f;
    line-height: 1.6;
}

/* ------------------------------------------------------------
   Sections
   ------------------------------------------------------------ */
.t360-section {
    margin-top: 40px;
    border-top: 2px solid var(--t360-border-color);
    padding-top: 24px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .t360-section { margin-top: 50px; padding-top: 30px; margin-bottom: 35px; }
}

.t360-section__title {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 1.05rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .t360-section__title { font-size: 1.2rem; }
}

.t360-section__desc {
    color: var(--t360-text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* ------------------------------------------------------------
   Mobile Actions Menu
   ------------------------------------------------------------ */
.t360-desktop-actions { display: flex !important; }

.t360-mobile-actions-menu {
    display: none;
    position: relative;
}

.t360-menu-trigger {
    background: var(--t360-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--t360-shadow-sm);
    min-height: unset;
}

.t360-menu-trigger:hover { background: var(--t360-primary-hover); }

.t360-menu-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 44px;
    background: white;
    border: 1px solid var(--t360-border-color);
    border-radius: var(--t360-radius-sm);
    box-shadow: var(--t360-shadow-lg);
    min-width: 200px;
    z-index: 1000;
}

.t360-menu-dropdown.show { display: block; }

.t360-menu-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    transition: background 0.2s;
}

.t360-menu-item:last-child    { border-bottom: none; }
.t360-menu-item:hover         { background: #f8fafc; }
.t360-menu-item.danger:hover  { background: #fee2e2; color: var(--t360-danger); }

@media (max-width: 599px) {
    .t360-desktop-actions { display: none !important; }

    .t360-mobile-actions-menu {
        display: flex !important;
        justify-content: center !important;
    }

    .t360-menu-dropdown {
        position: fixed !important;
        right: 10px !important;
        left: auto !important;
    }
}

/* ------------------------------------------------------------
   WhatsApp Icon
   ------------------------------------------------------------ */
.t360-wa-icon {
    background: #22c55e !important;
    display: inline-flex !important;
    padding: 6px !important;
    min-height: unset !important;
}

.t360-wa-icon:hover {
    background: #16a34a !important;
    transform: scale(1.1);
}

/* ------------------------------------------------------------
   Page Footer
   ------------------------------------------------------------ */
.t360-page-footer {
    text-align: center;
    margin-top: 40px;
    padding: 16px 20px;
    color: #94a3b8;
    font-size: 0.75rem;
    border-top: 1px solid var(--t360-border-color);
}

/* ------------------------------------------------------------
   Table Utilities
   ------------------------------------------------------------ */
.t360-sort-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 5px;
}

.t360-table-empty {
    text-align: center;
    padding: 30px;
    color: #64748b;
}

.t360-rejection-note {
    color: #dc2626;
    display: block;
    font-size: 0.7rem;
    margin-top: 4px;
}

.t360-td--amount-negative {
    font-weight: 600;
    color: #b91c1c;
}

.t360-td--muted-note {
    color: #64748b;
    font-size: 0.75rem;
}

.t360-owner-note {
    color: #64748b;
    font-size: 0.8em;
    margin-top: 5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}
