/* Midshift Register Check Styles */
.ace-midshift-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.ace-midshift-header {
    text-align: center;
    margin-bottom: 30px;
}

.ace-midshift-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: #1e293b;
}

.ace-midshift-subtitle {
    color: #64748b;
    font-size: 15px;
    margin: 0;
}

.ace-midshift-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ace-midshift-card h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ace-midshift-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.ace-midshift-field {
    display: flex;
    flex-direction: column;
}

.ace-midshift-field label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.ace-midshift-field input[type="number"] {
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    transition: all 0.2s;
    width: 100%;
}

.ace-midshift-field input[type="number"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.ace-midshift-hint {
    margin: 15px 0 0 0;
    font-size: 13px;
    color: #64748b;
    padding: 10px 15px;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
}

.ace-midshift-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.ace-midshift-summary h3 {
    color: white;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

.summary-value {
    font-size: 20px;
    font-weight: 700;
}

.summary-highlight {
    background: rgba(255,255,255,0.15);
    margin: 8px -10px;
    padding: 12px 10px;
    border-radius: 8px;
    border-bottom: none;
}

.summary-highlight .summary-value {
    font-size: 24px;
}

.summary-deposit {
    background: rgba(255,255,255,0.1);
    margin: 8px -10px;
    padding: 12px 10px;
    border-radius: 8px;
}

.ace-midshift-card textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.2s;
}

.ace-midshift-card textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.ace-midshift-actions {
    text-align: center;
    margin-top: 25px;
}

.ace-midshift-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.ace-midshift-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.ace-midshift-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

.ace-midshift-btn-primary:active {
    transform: translateY(0);
}

.ace-midshift-success {
    text-align: center;
    padding: 60px 30px;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    font-weight: bold;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.ace-midshift-success h3 {
    font-size: 24px;
    color: #1e293b;
    margin: 0 0 10px 0;
}

.ace-midshift-success p {
    color: #64748b;
    font-size: 15px;
    margin: 0 0 30px 0;
}

.ace-midshift-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 20px;
    color: #991b1b;
    text-align: center;
}

/* Status Colors */
.status-over {
    color: #dc2626 !important;
}

.status-short {
    color: #ea580c !important;
}

.status-exact {
    color: #10b981 !important;
}

/* Loading State */
.ace-midshift-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

.ace-midshift-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .ace-midshift-wrap {
        padding: 15px;
    }
    
    .ace-midshift-header h2 {
        font-size: 24px;
    }
    
    .ace-midshift-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .ace-midshift-card {
        padding: 20px 15px;
    }
    
    .summary-value {
        font-size: 18px;
    }
    
    .summary-highlight .summary-value {
        font-size: 20px;
    }
}

@media screen and (max-width: 480px) {
    .ace-midshift-grid {
        grid-template-columns: 1fr;
    }
}
