/* =============================================
   Agendamento Studio - Admin CSS
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.agst-wrap {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 1200px;
}

/* Header */
.agst-admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding: 20px 25px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 12px;
    color: #fff;
}

.agst-admin-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.agst-subtitle {
    margin: 5px 0 0;
    opacity: 0.85;
    font-size: 14px;
}

.agst-admin-header .agst-btn {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 8px;
    transition: all 0.2s;
}

.agst-admin-header .agst-btn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

/* Stats */
.agst-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 25px;
}

.agst-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.agst-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.agst-stat-icon {
    font-size: 28px;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agst-stat-today .agst-stat-icon {
    background: #ede9fe;
}

.agst-stat-week .agst-stat-icon {
    background: #dbeafe;
}

.agst-stat-month .agst-stat-icon {
    background: #d1fae5;
}

.agst-stat-clients .agst-stat-icon {
    background: #fef3c7;
}

.agst-stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.agst-stat-label {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

/* Cards */
.agst-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.agst-card h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-top: 0;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3f4f6;
}

/* Two columns layout */
.agst-two-columns {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 20px;
    align-items: start;
}

@media (max-width: 960px) {
    .agst-two-columns {
        grid-template-columns: 1fr;
    }
}

/* Forms */
.agst-form-group {
    margin-bottom: 16px;
}

.agst-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.agst-form-group input[type="text"],
.agst-form-group input[type="email"],
.agst-form-group input[type="tel"],
.agst-form-group input[type="number"],
.agst-form-group input[type="date"],
.agst-form-group input[type="time"],
.agst-form-group input[type="search"],
.agst-form-group textarea,
.agst-form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.agst-form-group input:focus,
.agst-form-group textarea:focus,
.agst-form-group select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

.agst-form-group input[type="color"] {
    width: 60px;
    height: 40px;
    padding: 4px;
    border-radius: 8px;
    cursor: pointer;
}

.agst-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.agst-checkbox label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-weight: 500 !important;
    cursor: pointer;
}

.agst-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.agst-btn {
    padding: 10px 24px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.2s !important;
}

button.agst-btn,
a.agst-btn {
    background: #6366f1 !important;
    border-color: #6366f1 !important;
    color: #fff !important;
}

button.agst-btn:hover,
a.agst-btn:hover {
    background: #4f46e5 !important;
    border-color: #4f46e5 !important;
}

/* Table */
.agst-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.agst-table thead th {
    background: #f9fafb;
    text-align: left;
    padding: 12px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e5e7eb;
}

.agst-table tbody td {
    padding: 12px 14px;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.agst-table tbody tr:hover {
    background: #f9fafb;
}

/* Badges and Status */
.agst-service-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.agst-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.agst-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.agst-status-confirmed {
    background: #d1fae5;
    color: #065f46;
}

.agst-status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.agst-status-completed {
    background: #dbeafe;
    color: #1e40af;
}

.agst-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.agst-badge-active {
    background: #d1fae5;
    color: #065f46;
}

.agst-badge-inactive {
    background: #f3f4f6;
    color: #6b7280;
}

.agst-color-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700&display=swap');

.agst-admin-wrap {
    max-width: 1200px;
    margin: 20px auto;
    font-family: 'Outfit', sans-serif;
    color: #2c3338;
}

/* Day Schedule Cards */
.agst-schedule-settings {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.agst-day-schedule-card {
    background: #fbfbfb;
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.agst-day-schedule-card.active {
    border-color: #ff3366;
    background: #fff;
    box-shadow: 0 8px 15px rgba(255, 51, 102, 0.05);
}

.agst-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.agst-day-status {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    background: #eee;
}

.active .agst-day-status {
    background: #ffeef2;
    color: #ff3366;
}

/* iPhone Calendar Redesign */
.agst-iphone-calendar-container {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.agst-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.agst-cal-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.agst-cal-nav h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
}

.agst-cal-btn {
    text-decoration: none;
    font-size: 1.5rem;
    color: #ff3366;
    font-weight: 300;
}

.agst-iphone-grid {
    border-top: 1px solid #efefef;
}

.agst-cal-day-labels {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    padding: 15px 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #999;
}

.agst-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #efefef;
    border-bottom: 1px solid #efefef;
}

.agst-cal-day {
    background: #fff;
    min-height: 80px;
    padding: 8px;
    position: relative;
    transition: background 0.2s;
}

.agst-cal-day:hover {
    background: #fdfdfd;
}

.agst-cal-date {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
}

.today .agst-cal-date {
    background: #ff3366;
    color: #fff;
    border-radius: 50%;
}

/* WhatsApp Link */
.agst-whatsapp-link {
    color: #25D366;
    text-decoration: none;
    margin-left: 10px;
    transition: transform 0.2s;
    display: inline-block;
    vertical-align: middle;
}

.agst-whatsapp-link:hover {
    transform: scale(1.2);
}

.agst-whatsapp-link .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Actions */
.agst-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.agst-action-btn {
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.agst-action-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.agst-action-delete:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

/* Calendar Admin */
.agst-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.agst-calendar-header h2 {
    border: none;
    margin: 0;
    padding: 0;
}

.agst-cal-nav {
    display: inline-block;
    padding: 8px 16px;
    background: #f3f4f6;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s;
}

.agst-cal-nav:hover {
    background: #6366f1;
    color: #fff;
}

.agst-admin-calendar {
    border-radius: 8px;
    overflow: hidden;
}

.agst-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
}

.agst-cal-weekdays div {
    padding: 12px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
}

.agst-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border: 1px solid #e5e7eb;
}

.agst-cal-day {
    min-height: 100px;
    padding: 8px;
    border-right: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
}

.agst-cal-empty {
    background: #fafafa;
}

.agst-cal-day-num {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.agst-cal-today {
    background: #ede9fe;
}

.agst-cal-today .agst-cal-day-num {
    background: #6366f1;
    color: #fff;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.agst-cal-event {
    display: block;
    padding: 3px 6px;
    margin-bottom: 3px;
    border-radius: 4px;
    font-size: 11px;
    background: #f0f0ff;
    border-left: 3px solid #6366f1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    cursor: default;
}

.agst-cal-event.agst-status-cancelled {
    display: none;
}

.agst-cal-event-time {
    font-weight: 600;
    color: #4f46e5;
    margin-right: 4px;
}

.agst-cal-event-name {
    color: #374151;
}

/* Quick Actions */
.agst-dashboard-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    align-items: start;
}

@media (max-width: 768px) {
    .agst-dashboard-content {
        grid-template-columns: 1fr;
    }
}

.agst-quick-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.agst-quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
}

.agst-quick-link:hover {
    background: #ede9fe;
    color: #4f46e5;
    transform: translateX(4px);
}

.agst-quick-link span {
    font-size: 18px;
}

.agst-empty {
    text-align: center;
    color: #9ca3af;
    padding: 30px;
    font-size: 14px;
}

/* Search form */
.agst-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.agst-list-header h2 {
    border: none;
    margin: 0;
    padding: 0;
}

.agst-search-form {
    display: flex;
    gap: 8px;
}

.agst-search-form input[type="search"] {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
}

/* Settings specific */
.agst-days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
}

.agst-day-check {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f9fafb;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500 !important;
    font-size: 13px !important;
    transition: background 0.2s;
}

.agst-day-check:hover {
    background: #ede9fe;
}

.agst-day-check input:checked+* {
    color: #4f46e5;
}

.agst-info-box {
    background: #ede9fe;
    border-radius: 8px;
    padding: 16px 20px;
}

.agst-info-box p {
    margin: 0 0 8px;
    font-size: 14px;
    color: #4f46e5;
}

.agst-shortcode-display {
    display: inline-block;
    padding: 8px 16px;
    background: #4f46e5;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* WordPress notices override */
.agst-wrap .notice {
    border-radius: 8px;
    margin: 0 0 15px;
}

/* Image Previews and Thumbs */
.agst-image-preview {
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agst-image-preview img,
.agst-image-preview p {
    max-width: 150px;
    max-height: 100px;
    margin: 0;
}

.agst-image-preview img {
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.agst-table-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    background: #f3f4f6;
}

.agst-table-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agst-table-thumb-empty {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: #f3f4f6;
    border: 1px dashed #d1d5db;
}

.agst-now-indicator {
    position: absolute;
    left: 80px;
    /* gutter width */
    right: 30px;
    /* margin right */
    height: 2px;
    background: #ef4444;
    z-index: 100;
    pointer-events: none;
}

.agst-now-indicator::before {
    content: '';
    position: absolute;
    left: -6px;
    top: -4px;
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
}

/* ============================================= 
   Upcoming List 
   ============================================= */
.agst-upcoming-list-card {
    margin-bottom: 25px;
    border-left: 4px solid #6366f1;
    border-radius: 16px;
}

.agst-upcoming-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.agst-upcoming-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.agst-upcoming-item:hover {
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.agst-upcoming-time {
    font-weight: 700;
    color: #6366f1;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.agst-upcoming-client {
    font-weight: 600;
    color: #1e293b;
    font-size: 15px;
}

.agst-upcoming-service {
    font-size: 13px;
    color: #64748b;
}

/* ============================================= 
   Daily View / Timeline 
   ============================================= */
.agst-day-view-card {
    padding: 0;
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    background: #fff;
    border-radius: 20px;
}

.agst-day-view-header {
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
}

.agst-day-view-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    border: none;
    padding: 0;
}

.agst-daily-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.agst-daily-nav .button,
.agst-view-toggle {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #64748b !important;
    border-radius: 12px !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
    transition: all 0.2s;
    box-shadow: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.agst-daily-nav .button:hover,
.agst-view-toggle:hover {
    background: #f1f5f9 !important;
    color: #1e293b !important;
    border-color: #cbd5e1 !important;
}

.agst-timeline-container {
    display: flex;
    height: 780px;
    /* 13 hours * 60px */
    overflow-y: auto;
    position: relative;
    background: #fff;
    padding: 20px 0;
}

/* Custom Scrollbar */
.agst-timeline-container::-webkit-scrollbar {
    width: 6px;
}

.agst-timeline-container::-webkit-scrollbar-track {
    background: #f8fafc;
}

.agst-timeline-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.agst-time-gutter {
    width: 80px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding-top: 10px;
}

.agst-time-label {
    height: 60px;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-align: right;
    padding-right: 20px;
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.agst-timeline-grid {
    flex-grow: 1;
    position: relative;
    border-left: 1px solid #f1f5f9;
    margin-right: 30px;
    background-image:
        linear-gradient(rgba(241, 245, 249, 1) 1px, transparent 1px);
    background-size: 100% 60px;
}

.agst-timeline-event {
    position: absolute;
    left: 10px;
    right: 10px;
    border-radius: 12px;
    padding: 6px 14px;
    font-size: 13px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 36px;
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Alterado de center para flex-start */
}

.agst-timeline-event:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    z-index: 20;
}

.agst-timeline-event::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: rgba(0, 0, 0, 0.15);
}

.agst-timeline-event .event-name {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 0px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.agst-timeline-event .event-service {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
    line-height: 1.1; /* Linha mais compacta */
}

/* Day Clickable in Monthly Calendar */
.agst-cal-day {
    cursor: pointer;
    transition: all 0.2s;
}

.agst-cal-day:hover {
    background: #f1f5f9 !important;
    transform: scale(1.02);
    z-index: 5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Event Actions in Timeline */
.agst-event-content {
    flex: 1;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.agst-event-actions {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 30;
}

.agst-timeline-event:hover .agst-event-actions {
    opacity: 1;
}

.agst-event-action {
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    text-decoration: none !important;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.agst-event-action span {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.agst-event-action:hover {
    background: rgba(255, 255, 255, 0.45);
    transform: scale(1.1);
}

.agst-event-action.delete:hover {
    background: #ef4444;
    border-color: #ef4444;
}

/* Delete Button in Form */
.button.button-link-delete {
    background: transparent !important;
    border: 1px solid #fca5a5 !important;
    color: #dc2626 !important;
    transition: all 0.2s;
    margin-left: 10px;
    text-decoration: none !important;
    padding: 4px 12px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    line-height: inherit !important;
    height: auto !important;
}

.button.button-link-delete:hover {
    background: #fee2e2 !important;
    border-color: #ef4444 !important;
    color: #b91c1c !important;
}

/* Responsive fixes for mobile devices */
@media (max-width: 600px) {
    .agst-wrap {
        padding: 10px !important;
    }
    .agst-card {
        padding: 16px !important;
    }
    .agst-form-row {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    .agst-method-payment-item {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .agst-method-amount-container {
        width: 100% !important;
        margin-top: 5px;
    }
    .agst-iphone-calendar-container {
        padding: 12px !important;
    }
    .agst-cal-day {
        min-height: 60px !important;
    }
    .agst-cal-event {
        font-size: 10px !important;
    }

    /* Responsive Table to Cards */
    .agst-table, .agst-table thead, .agst-table tbody, .agst-table th, .agst-table td, .agst-table tr {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
    }
    .agst-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    .agst-table tr {
        margin-bottom: 20px !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 16px !important;
        padding: 12px !important;
        background: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    }
    .agst-table td {
        border: none !important;
        position: relative !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        text-align: left !important;
        min-height: 45px;
        display: block !important;
        padding-top: 32px !important;
        padding-bottom: 12px !important;
        font-size: 14px !important;
        border-bottom: 1px solid #f1f5f9 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .agst-table td:last-child {
        border-bottom: none !important;
    }
    .agst-table td:before {
        content: attr(data-label);
        position: absolute;
        top: 10px;
        left: 15px;
        width: 100%;
        padding-right: 0;
        white-space: nowrap;
        text-align: left;
        font-weight: 800;
        color: #94a3b8;
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.8px;
    }
    .agst-table td.agst-actions {
        padding-left: 15px !important;
        justify-content: center !important;
        border-top: 1px dashed #e2e8f0 !important;
        margin-top: 5px !important;
        padding-top: 15px !important;
        padding-bottom: 10px !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 15px;
    }
    .agst-table td.agst-actions:before {
        display: none !important;
    }
    .agst-action-btn {
        width: 46px !important;
        height: 46px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    /* Layout specific in clients list */
    .agst-two-columns {
        display: flex !important;
        flex-direction: column !important;
    }
    .agst-form-card {
        order: 1; /* Keep form top or bottom as per user preference, usually top for editing */
    }
    .agst-list-card {
        order: 2;
    }
}