.time-entry-error {
    padding: 15px;
    margin: 10px 0;
    border-left: 4px solid #dc3232;
    background: #fff;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.updated {
    padding: 15px;
    margin: 10px 0;
    border-left: 4px solid #46b450;
    background: #fff;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.button-small {
    padding: 2px 8px;
    font-size: 12px;
    line-height: 1.5;
}

.time-entries-view .button {
    text-decoration: none;
}

.report-filters {
    margin: 20px 0;
    padding: 15px;
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.report-filters select,
.report-filters input[type="date"] {
    margin-right: 10px;
}

.report-results {
    margin-top: 20px;
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.report-results table {
    width: 100%;
    border-collapse: collapse;
}

.report-results th,
.report-results td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.report-results th {
    background: #f5f5f5;
}

.custom-date-range {
    display: inline-block;
    margin-right: 10px;
}

.workpulse-reports {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.report-filters {
    margin-bottom: 20px;
}

.report-filters select,
.report-filters input[type="date"] {
    padding: 8px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.report-table th,
.report-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.report-table th {
    background: #f5f5f5;
    font-weight: bold;
}

.report-table tr:hover {
    background: #f9f9f9;
}

.loading {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #666;
}

.custom-date-range input {
    margin-right: 10px;
}

.filter-row {
    margin-bottom: 20px;
}

.filter-checkboxes {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 250px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
}

.filter-group h4 {
    margin: 0 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
}

.checkbox-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.checkbox-list label {
    display: block;
    padding: 3px 0;
}

.toggle-all {
    font-size: 12px;
    text-decoration: none;
    color: #0073aa;
}

.toggle-all:hover {
    color: #00a0d2;
}

.report-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.summary-box h3 {
    margin: 0 0 10px;
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
}

.summary-box div {
    font-size: 24px;
    font-weight: bold;
    color: #0073aa;
}

.multiselect {
    width: 100%;
    position: relative;
}

.selectBox {
    position: relative;
    cursor: pointer;
}

.selectBox select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.overSelect {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

.checkboxes {
    display: none;
    border: 1px solid #ddd;
    background-color: white;
    max-height: 300px;
    overflow-y: auto;
    position: absolute;
    width: 100%;
    z-index: 100;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.checkboxes label {
    display: block;
    padding: 8px;
    margin: 0;
}

.checkboxes label:hover {
    background-color: #f6f6f6;
}

.toggle-all {
    display: block;
    padding: 8px;
    text-align: center;
    border-top: 1px solid #ddd;
    background: #f9f9f9;
    text-decoration: none;
}

.filter-dropdowns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.multiselect .toggle-all {
    display: block;
    padding: 8px;
    text-align: center;
    border-top: 1px solid #ddd;
    background: #f9f9f9;
}

.report-table td[data-negative="true"] {
    color: red;
}

.report-table td[data-positive="true"] {
    color: green;
}

.report-table .hours-cell {
    text-align: right;
}

.report-table .currency-cell {
    text-align: right;
    font-family: monospace;
}

/* Admin styles */
.wp-list-table .column-actions {
    width: 120px;
}

.wp-list-table .button-small {
    margin-right: 5px;
}

.wp-list-table td {
    vertical-align: middle;
}

.form-table input[type="number"] {
    width: 150px;
}

.notice {
    margin: 20px 0;
    padding: 10px;
    border-left: 4px solid #00a0d2;
    background: #fff;
}

.notice-warning {
    border-color: #ffb900;
}

.error {
    border-color: #dc3232;
}

.button-link-delete {
    color: #dc3232;
    border-color: #dc3232;
}

.button-link-delete:hover {
    color: #fff;
    background: #dc3232;
}

.button-link-delete:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.button-link-delete .dashicons {
    vertical-align: middle;
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-right: 2px;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 70%;
    max-width: 800px;
    border-radius: 4px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #000;
}

.submit-button {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    text-align: right;
}

.submit-button .button {
    margin-left: 10px;
}

.modal .form-table th {
    width: 40%;
}

.workpulse-punch-form {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.active-punch {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.project-name {
    font-size: 1.2em;
    font-weight: bold;
    margin: 10px 0;
}

.punch-time {
    color: #666;
    margin-bottom: 15px;
}

.punch-in-form, .punch-out-form {
    margin-bottom: 30px;
}

.punch-records {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.punch-records th, .punch-records td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.punch-records th {
    background: #f5f5f5;
}

.workpulse-attendance-form {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.active-attendance {
    background: #f0f9ff;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #0073aa;
}

.attendance-info {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
}

.time-info {
    font-size: 1.1em;
}

.attendance-records {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.attendance-records th,
.attendance-records td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.attendance-records th {
    background: #f5f5f5;
    font-weight: bold;
}

.attendance-history h3 {
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.attendance-timer {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.timer-display {
    font-size: 48px;
    font-family: monospace;
    color: #333;
}

.attendance-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.punch-button {
    padding: 12px 24px !important;
    font-size: 16px !important;
    height: auto !important;
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.punch-button .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.punch-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.status-active {
    background: #ffebee;
    color: #d32f2f;
}

.status-completed {
    background: #e8f5e9;
    color: #388e3c;
}

/* Dashboard Layout */
.workpulse-dashboard {
    max-width: 1400px;
    margin: 20px auto;
    padding: 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.user-info h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.current-date {
    color: #666;
    margin: 5px 0;
}

.quick-stats {
    display: flex;
    gap: 20px;
}

.stat-box {
    background: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-label {
    display: block;
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.dashboard-widget {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.widget-header {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.widget-content {
    padding: 20px;
}

/* Time Tracker Widget */
.time-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.project-dropdown {
    min-width: 200px;
}

#task-description {
    flex-grow: 1;
    padding: 8px 12px;
}

.timer-display {
    font-family: monospace;
    font-size: 20px;
    padding: 8px 15px;
    background: #f8f9fa;
    border-radius: 4px;
    min-width: 100px;
    text-align: center;
}

.start-timer-btn {
    padding: 8px 15px;
    border-radius: 4px;
    background: #0073aa;
    color: #fff;
    border: none;
    cursor: pointer;
}

.start-timer-btn:hover {
    background: #006291;
}

/* Recent Entries Table */
.recent-entries-table {
    width: 100%;
    border-collapse: collapse;
}

.recent-entries-table th,
.recent-entries-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.recent-entries-table th {
    font-weight: 600;
    color: #666;
}

/* Charts */
.chart-widget {
    grid-column: span 2;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-widget {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        text-align: center;
    }
    
    .quick-stats {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .time-input-group {
        flex-direction: column;
    }
    
    .project-dropdown,
    #task-description {
        width: 100%;
    }
}

/* Add these to your existing CSS */
.report-table td.no-data {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

.report-table td.loading {
    text-align: center;
    padding: 20px;
}

.hours-cell {
    font-family: monospace;
    text-align: right;
}

.currency-cell {
    font-family: monospace;
    text-align: right;
}

/* Report Filters */
.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 600;
    color: #666;
}

.filter-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.filter-group select[multiple] {
    height: 120px;
}

.custom-date-range {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.custom-date-range input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#apply-filters {
    align-self: flex-end;
    margin-top: auto;
    height: 40px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .filter-row {
        grid-template-columns: 1fr;
    }

    #apply-filters {
        width: 100%;
    }
}

.time-entries-view .description {
    color: #666;
    font-style: italic;
}

.time-entries-view .button-small {
    margin-right: 5px;
}

.time-entries-view .button-small:last-child {
    margin-right: 0;
}

/* Time Entries Summary */
.time-entries-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.time-entries-summary .summary-box {
    padding: 15px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 4px;
}

.time-entries-summary .summary-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.time-entries-summary .summary-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.time-entries-summary .text-warning {
    color: #f0ad4e;
}

.time-entries-summary .text-success {
    color: #5cb85c;
}

.time-entries-summary .text-info {
    color: #5bc0de;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .time-entries-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .time-entries-summary {
        grid-template-columns: 1fr;
    }
}

/* Inline Summary */
.inline-summary {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    padding: 10px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.inline-summary .summary-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    border-right: 1px solid #e5e5e5;
}

.inline-summary .summary-item:last-child {
    border-right: none;
}

.inline-summary .summary-label {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}

.inline-summary .summary-value {
    font-size: 16px;
    font-weight: 600;
    margin-left: auto;
}

/* Summary Colors */
.inline-summary .summary-value.billable {
    color: #2ecc71; /* Green */
}

.inline-summary .summary-value.non-billable {
    color: #f1c40f; /* Yellow */
}

.inline-summary .summary-value.missing {
    color: #e74c3c; /* Red */
}

/* Responsive Design */
@media (max-width: 768px) {
    .inline-summary {
        flex-wrap: wrap;
    }
    
    .inline-summary .summary-item {
        flex: 1 1 calc(50% - 15px);
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
    }
    
    .inline-summary .summary-item:nth-last-child(-n+2) {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .inline-summary .summary-item {
        flex: 1 1 100%;
    }
    
    .inline-summary .summary-item:last-child {
        border-bottom: none;
    }
}

.workpulse-reports-restricted {
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
}

.workpulse-reports-restricted .notice {
    margin-bottom: 20px;
}

.workpulse-reports-restricted .button {
    padding: 10px 20px;
    height: auto;
    font-size: 16px;
}

/* Team Members Table Styles */
.wp-list-table .text-success {
    color: #2ecc71;
    font-weight: 600;
}

.wp-list-table .text-warning {
    color: #f1c40f;
    font-weight: 600;
}

.wp-list-table .text-danger {
    color: #e74c3c;
    font-weight: 600;
}

.wp-list-table .hours-status {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

/* Responsive adjustments */
@media screen and (max-width: 782px) {
    .wp-list-table td.column-hours,
    .wp-list-table td.column-salary,
    .wp-list-table td.column-deduction {
        display: table-cell !important;
    }
}

/* Member Form Styles */
.form-table input[type="number"] {
    width: 200px;
}

.form-table select {
    min-width: 300px;
}

.submit .button {
    margin-right: 10px;
}

/* Month selector styles */
.month-filter {
    margin-left: 10px !important;
    min-width: 150px;
    padding: 4px 8px;
    height: 30px;
    border-radius: 4px;
}

/* History indicator */
.historical-data {
    font-size: 12px;
    color: #666;
    font-style: italic;
    margin-top: 4px;
}

.workpulse-form-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.workpulse-form {
    max-width: 600px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.workpulse-list {
    margin-top: 30px;
}

.edit-form {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 10px 0;
    max-width: 400px;
}

.edit-form .form-group {
    margin-bottom: 15px;
}

.edit-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.edit-form input[type="text"],
.edit-form input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.edit-form .button-group {
    margin-top: 20px;
    text-align: right;
}

.edit-form .button {
    margin-left: 10px;
}

.edit-form .button-primary {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
}

.edit-form .button-primary:hover {
    background: #006291;
    border-color: #006291;
}

.button-small {
    margin: 0 5px;
}

.workpulse-error {
    padding: 10px;
    margin: 10px 0;
    background: #fff;
    border-left: 4px solid #dc3232;
} 