/* Section */
.tnz-section {
  clear: both;
  margin: 0px;
  padding: 0px;
}
/* Column */
.tnz-col {
  display: block;
  float:left;
  margin: 1% 0 1% 1.6%;
}
.tnz-col:first-child { margin-left: 0 !important; }
.task-not-found{
    display: none;
}
/* Row */
.tnz-row:before,
.tnz-row:after { content:""; display:table; }
.tnz-row:after { clear:both;}
.tnz-row { zoom:1; /* For IE 6/7 */ }

/* Grid */
.grid_1_of_12{ width: 6.867% }
.grid_2_of_12{ width: 15.333% }
.grid_3_of_12{ width: 23.8% }
.grid_4_of_12{ width: 32.267% }
.grid_5_of_12{ width: 40.733% }
.grid_6_of_12{ width: 49.2% }
.grid_7_of_12{ width: 57.667% }
.grid_8_of_12{ width: 66.133% }
.grid_9_of_12{ width: 74.6% }
.grid_10_of_12{ width: 83.067% }
.grid_11_of_12{ width: 91.533% }
.grid_12_of_12{ width: 100% }

/* Full Width below 768 pixels */
@media only screen and (max-width: 768px) {
  .tnz-col {  margin: 1% 0 1% 0%; }
  [class*='grid_'] { width: 100%; }
  
  /* Improved mobile spacing for task rows */
  #listOfRepeater .tnz-section {
      padding: 20px;
  }
  
  #listOfRepeater .tnz-col {
      margin-bottom: 20px;
  }
  
  #listOfRepeater .tnz-row .tnz-col:last-child {
      margin-bottom: 0;
  }
  
  /* Stack all fields on mobile */
  #listOfRepeater .tnz-row {
      display: flex;
      flex-direction: column;
  }
  
  #listOfRepeater .tnz-col {
      width: 100% !important;
      margin-left: 0 !important;
      margin-right: 0 !important;
  }
}

/* TNZ Project Management Form Styles */
.px-tnz-pm {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    overflow: hidden;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.px-tnz-pm select{
	width: 100%;
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: all 0.2s ease;
    outline: none;
    height: 51px;
    box-sizing: border-box;
}

.px-tnz-pm select:focus {
    border-color: #2196f3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.px-tnz-pm textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    height: 51px;
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.px-tnz-pm textarea:focus {
    border-color: #2196f3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.px-tnz-pm input[type="date"],
.px-tnz-pm input[type="number"] {
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    outline: none;
    height: 51px;
    box-sizing: border-box;
}

.px-tnz-pm input[type="date"]:focus,
.px-tnz-pm input[type="number"]:focus {
    border-color: #2196f3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

/* Date and Hours Container - Stack vertically */
.date-hours-container {
    display: flex;
    flex-direction: row;
    gap: 15px;
}

.date-field,
.hours-field {
    width: 100%;
}

.px-tnz-pm input[type="date"],
.px-tnz-pm input[type="number"] {
    width: 100%;
    max-width: 200px;
}

select#category,
select#projects,
select#tasks,
#entrySection{
	display: none;
}

.required{
	color: #e74c3c;
    font-weight: 600;
}

/* Form Section Headers */
.px-tnz-pm .tnz-section:first-child {
    background: #f8f9fa;
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
}


#listOfRepeater {
    background: #fafbfc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Individual Task Row Styling */
#listOfRepeater .tnz-section {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 25px;
    margin-bottom: 20px;
    
    transition: all 0.2s ease;
}


#listOfRepeater .tnz-section:last-child {
    margin-bottom: 0;
}

/* Better column spacing */
#listOfRepeater .tnz-col {
    margin-bottom: 20px;
}

#listOfRepeater .tnz-row .tnz-col:last-child {
    margin-bottom: 0;
}

/* Field Labels */
#listOfRepeater .tnz-col label,
#listOfRepeater .tnz-col > strong {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
}



#listOfRepeater {
    counter-reset: task-counter;
}

/* Submit Button Styling */
#btnSubmit {
    background: #2196f3;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none !important;
}

#btnSubmit:hover {
    background: #1976d2;
    transform: translateY(-1px);
    box-shadow: none !important;
}

#btnSubmit:active {
    transform: translateY(0);
    box-shadow: none !important;
}

/* Task Not Found Message */
.task-not-found {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 15px 20px;
    margin-top: 20px;
    text-align: center;
}

.task-not-found h6 {
    color: #856404;
    margin: 0;
    font-size: 14px;
}

/* Manager Records Filter Styles */
.tnz-filters {
    background: #f8f9fa !important;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.tnz-filters form {
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
}

.tnz-filters label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.tnz-filters select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: all 0.2s ease;
    outline: none;
}

.tnz-filters select:focus {
    border-color: #2196f3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.tnz-filters button {
    background: #2196f3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.tnz-filters button:hover {
    background: #1976d2;
    transform: translateY(-1px);
}

.tnz-filters a {
    background: #6c757d;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.tnz-filters a:hover {
    background: #5a6268;
    color: white;
    transform: translateY(-1px);
}

/* Responsive filters */
@media (max-width: 768px) {
    .tnz-filters form > div {
        flex-direction: column;
        gap: 10px;
    }
    
    .tnz-filters form > div > div {
        width: 100% !important;
        min-width: auto !important;
        flex: none !important;
    }
    
    .tnz-filters form > div:last-child {
        justify-content: center;
        margin-top: 10px;
    }
    
    .tnz-filters form > div:last-child button,
    .tnz-filters form > div:last-child a {
        width: 48%;
        text-align: center;
    }
}

body.tnz-userid-45 #pm-project-filters select option{
    display: none !important;
}
body.tnz-userid-45 #pm-project-filters select option[value="19"]{
    display: inline-block !important;
}
.wpDataTablesPopover{
	display: none !important;
}

/* Admin Records Table Styles */
.tnz-admin-container {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tnz-admin-container h2 {
    color: #2c3e50;
    background: #f8f9fa;
    margin: 0;
    padding: 20px 25px;
    font-size: 24px;
    font-weight: 600;
    border-bottom: 1px solid #e9ecef;
}

.tnz-admin-container > p {
    padding: 0 25px 15px;
    margin: 15px 0 0;
    color: #6c757d;
    font-size: 14px;
}

.tnz-table-container {
    overflow-x: auto;
    background: #fff;
    border-radius: 0;
}

.tnz-admin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 13px;
    min-width: 1200px;
    background: #fff;
}

.tnz-admin-table thead {
    background: #ffffff;
    border-bottom: 2px solid #e9ecef;
}

.tnz-admin-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-right: 1px solid #e9ecef;
    white-space: nowrap;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 10;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tnz-admin-table th:last-child {
    border-right: none;
}

.tnz-admin-table td {
    padding: 12px;
    border-bottom: 1px solid #f1f3f4;
    border-right: 1px solid #f1f3f4;
    vertical-align: middle;
    max-width: 200px;
    word-wrap: break-word;
    line-height: 1.4;
}

.tnz-admin-table td:last-child {
    border-right: none;
}

.tnz-admin-table tbody tr {
    transition: background-color 0.15s ease;
}

.tnz-admin-table tbody tr:hover {
    background-color: #f8f9fa;
}

.tnz-admin-table tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

.tnz-admin-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

/* Totals row styling */
.tnz-admin-table thead tr:first-child {
    background-color: #f8f9fa;
    font-weight: bold;
}

.tnz-admin-table thead tr:first-child td {
    padding: 8px 12px;
    border-bottom: 1px solid #dee2e6;
    font-size: 14px;
    background-color: #f8f9fa;
}

.tnz-admin-table thead tr:first-child td[style*="border-bottom: 2px solid"] {
    font-weight: 700;
    font-size: 15px;
    background-color: #ffffff;
    border-radius: 4px;
    margin: 2px;
    position: relative;
}

.tnz-admin-table thead tr:first-child td[style*="3498db"] {
    background: linear-gradient(135deg, #ecf7ff 0%, #d6efff 100%);
}

.tnz-admin-table thead tr:first-child td[style*="27ae60"] {
    background: linear-gradient(135deg, #edfff0 0%, #d4f5d8 100%);
}

/* Editable Field Styles */
.editable-field {
    position: relative;
    min-width: 120px;
}

.editable-field .field-value {
    display: inline-block;
    min-height: 22px;
    padding: 6px 8px;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    width: calc(100% - 35px);
    background: #f8f9fa;
    transition: all 0.2s ease;
}

.editable-field .field-value:hover {
    background-color: #e3f2fd;
    border-color: #2196f3;
    color: #1565c0;
}

.editable-field .field-input {
    width: calc(100% - 35px);
    padding: 6px 8px;
    border: 2px solid #2196f3;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s ease;
}

.editable-field .field-input:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

.editable-field .edit-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    cursor: pointer;
    font-size: 13px;
    padding: 4px 6px;
    margin-left: 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    color: #555;
    box-shadow: none !important;
}

.editable-field .edit-btn:hover {
    background-color: #2196f3;
    border-color: #2196f3;
    color: white;
    transform: translateY(-1px);
}

.editable-field .edit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
}

/* Description Cell */
.description-cell {
    max-width: 250px;
}

.description-cell .toggle-description {
    background: #2196f3;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s ease;
    font-weight: 500;
    box-shadow: none !important;
}

.description-cell .toggle-description:hover {
    background: #1976d2;
    transform: translateY(-1px);
}

.description-cell .full-description {
    word-wrap: break-word;
}

/* User Info Styling */
.tnz-admin-table td strong {
    color: #2c3e50;
    font-weight: 600;
}

.tnz-admin-table td small {
    color: #6c757d;
    display: block;
    font-size: 11px;
    margin-top: 2px;
}

/* Pagination Styles */
.tnz-pagination {
    margin: 0;
    text-align: center;
    padding: 20px 25px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.tnz-pagination .page-link {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 3px;
    text-decoration: none;
    color: #495057;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
    min-width: 44px;
    text-align: center;
}

.tnz-pagination .page-link:hover {
    background-color: #2196f3;
    color: white;
    border-color: #2196f3;
    transform: translateY(-1px);
    box-shadow: none !important;
}

.tnz-pagination .page-link.current {
    background-color: #2196f3;
    color: white;
    border-color: #2196f3;
    cursor: default;
    box-shadow: none !important;
}

.tnz-pagination .page-link.disabled {
    color: #6c757d;
    background: #f8f9fa;
    border-color: #dee2e6;
    cursor: not-allowed;
    opacity: 0.6;
}

.tnz-pagination .page-link.disabled:hover {
    transform: none;
    box-shadow: none !important;
    background: #f8f9fa;
    color: #6c757d;
    border-color: #dee2e6;
}

.tnz-pagination .page-ellipsis {
    display: inline-block;
    padding: 10px 8px;
    margin: 0 2px;
    color: #6c757d;
    font-weight: 500;
}

.tnz-pagination .page-info {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 10px;
    color: #6c757d;
    font-weight: 500;
    font-size: 14px;
    vertical-align: middle;
}

/* Status Indicators */
.status-paid {
    background: #d4edda;
    color: #155724;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-submitted {
    background: #fff3cd;
    color: #856404;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: #f8d7da;
    color: #721c24;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Delete Button Styles */
.delete-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #dc3545;
    font-size: 16px;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    box-shadow: none !important;
}

.delete-btn:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
    transform: translateY(-1px);
}

.delete-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.no-action {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    display: block;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .tnz-table-container {
        overflow-x: scroll;
    }
    
    .tnz-admin-table {
        min-width: 1000px;
    }
}

@media (max-width: 768px) {
    .tnz-admin-container {
        margin: 10px 0;
    }
    
    .tnz-admin-table th,
    .tnz-admin-table td {
        padding: 8px 6px;
        font-size: 12px;
    }
    
    .editable-field .field-input {
        font-size: 12px;
    }
    
    .description-cell {
        max-width: 150px;
    }
}

/* Loading States */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.tnz-message {
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 4px;
    font-weight: 500;
}

.tnz-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.tnz-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Edit Record Modal Styles */
.tnz-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.tnz-modal-content {
    background-color: #fff;
    margin: 2% auto;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tnz-modal-header {
    padding: 20px 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tnz-modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
}

.tnz-modal-close {
    font-size: 28px;
    font-weight: bold;
    color: #6c757d;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.tnz-modal-close:hover {
    color: #dc3545;
}

.tnz-modal-body {
    padding: 25px;
}

.tnz-modal-footer {
    padding: 20px 25px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 8px 8px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Form Styles */
.tnz-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.tnz-form-group {
    flex: 1;
    min-width: 0;
}

.tnz-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.tnz-form-group input,
.tnz-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.tnz-form-group input:focus,
.tnz-form-group textarea:focus {
    border-color: #2196f3;
    box-shadow: none !important;
    outline: 2px solid #2196f3;
    outline-offset: 2px;
}

.tnz-form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.tnz-admin-fields {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

.tnz-admin-fields h4 {
    margin: 0 0 15px;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

/* Button Styles */
.tnz-btn-primary {
    background: #2196f3;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none !important;
}

.tnz-btn-primary:hover {
    background: #1976d2;
    transform: translateY(-1px);
    box-shadow: none !important;
}

.tnz-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none !important;
}

.tnz-btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none !important;
}

.tnz-btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: none !important;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .tnz-modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }
    
    .tnz-form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .tnz-modal-header,
    .tnz-modal-body,
    .tnz-modal-footer {
        padding: 15px 20px;
    }
    
    .tnz-modal-footer {
        flex-direction: column;
    }
    
    .tnz-btn-primary,
    .tnz-btn-secondary {
        width: 100%;
    }
}

/* Table Action Buttons */
.edit-record-btn,
.delete-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: none !important;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.edit-record-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    box-shadow: none !important;
}

.delete-btn:hover {
    background: #f5c6cb;
    border-color: #f1b0b7;
    box-shadow: none !important;
}

.edit-record-btn:active,
.delete-btn:active {
    transform: translateY(1px);
    box-shadow: none !important;
}

/* Global button reset */
button {
    box-shadow: none !important;
}

button:focus {
    box-shadow: none !important;
    outline: 2px solid #2196f3;
    outline-offset: 2px;
}

/* Cascading Filter Loading States */
select:disabled {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.8;
}

select:disabled option {
    color: #6c757d !important;
}

/* Filter dropdown improvements */
.tnz-filters select {
    transition: all 0.2s ease;
}

.tnz-filters select:focus {
    border-color: #2196f3 !important;
    box-shadow: none !important;
    outline: 2px solid #2196f3;
    outline-offset: 2px;
}

/* Loading animation for select boxes */
select.loading {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%236c757d' d='M12 2A10 10 0 1 0 22 12A10 10 0 0 0 12 2Zm0 18a8 8 0 1 1 8-8A8 8 0 0 1 12 20Z' opacity='.5'/%3E%3Cpath fill='%236c757d' d='M20 12h2A10 10 0 0 0 12 2V4A8 8 0 0 1 20 12Z'%3E%3CanimateTransform attributeName='transform' dur='1s' from='0 12 12' repeatCount='indefinite' to='360 12 12' type='rotate'/%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

/* Repeater Button Styles */
.tnz-repeater-actions {
    margin-top: 15px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.tnz-add-button-container {
    text-align: center;
    margin: 20px 0;
    padding: 15px 0;
}

.tnz-btn-add,
.tnz-btn-remove {
    background: #28a745;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: none !important;
}

.tnz-btn-add:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: none !important;
}

.tnz-btn-remove {
    background: #dc3545;
}

.tnz-btn-remove:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: none !important;
}

.btn-icon {
    font-weight: bold;
    font-size: 14px;
    line-height: 1;
}

/* Task field with delete button layout */
.task-field-with-delete {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.delete-icon-btn {
    background: #dc3545 !important;
    color: white !important;
    border: none !important;
    padding: 4px 6px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 28px !important;
    height: 28px !important;
    flex-shrink: 0 !important;
    margin-top: 20px !important; /* Align with label */
    box-shadow: none !important;
}

.delete-icon-btn:hover {
    background: #c82333 !important;
    transform: translateY(-1px) !important;
    box-shadow: none !important;
}

.delete-icon-btn .btn-icon {
    font-size: 12px !important;
    line-height: 1 !important;
}

.task-field-content {
    flex: 1;
}

/* Responsive repeater buttons */
@media (max-width: 768px) {
    .tnz-repeater-actions {
        justify-content: center;
        margin-top: 20px;
    }
    
    .tnz-btn-add,
    .tnz-btn-remove {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .delete-icon-btn {
        min-width: 32px !important;
        height: 32px !important;
        padding: 6px 8px !important;
    }
    
    .task-field-with-delete {
        gap: 10px;
    }
}

/* Email Notification Toggle Styles */
.tnz-email-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 8px;
}

.tnz-email-enabled {
    background: #d4edda;
    color: #155724;
}

.tnz-email-disabled {
    background: #f8d7da;
    color: #721c24;
}

.tnz-toggle-email {
    font-size: 12px !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    min-width: 60px;
    text-align: center;
}

.tnz-toggle-email:hover {
    transform: translateY(-1px) !important;
    box-shadow: none !important;
}

.tnz-toggle-email:disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Admin notice styles */
.notice {
    margin: 15px 0 !important;
    padding: 12px !important;
    border-left: 4px solid !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.notice-success {
    background: #d4edda !important;
    border-left-color: #28a745 !important;
    color: #155724 !important;
}

.notice-error {
    background: #f8d7da !important;
    border-left-color: #dc3545 !important;
    color: #721c24 !important;
}

.notice p {
    margin: 0 !important;
    font-weight: 500 !important;
}

.notice .notice-dismiss {
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    border: none !important;
    color: inherit !important;
    opacity: 0.7 !important;
    transition: opacity 0.2s ease !important;
}

.notice .notice-dismiss:hover {
    opacity: 1 !important;
}

/* Sortable Column Styles */
.tnz-admin-table th.sortable {
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: background-color 0.2s ease;
}

.tnz-admin-table th.sortable:hover {
    background-color: #f8f9fa;
}

.tnz-admin-table th.sortable .sort-indicator {
    margin-left: 5px;
    font-weight: bold;
    color: #007cba;
}

.tnz-admin-table th.sortable:after {
    content: '↕';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #000;
}

.tnz-admin-table th.sortable:hover:after {
    opacity: 0.8;
}