.wrap.ums-frontend-page {
    margin: 0 !important;
    padding: 10px 20px !important;
}

.ums-page-title {
    color: #e67e22;
    font-size: 24px;
    margin: 10px 0 15px !important;
    padding: 0 !important;
    line-height: 1.3;
}

.ums-frontend-page {
    max-width: 1200px;
    padding: 60px 8px 8px 8px; /* Reduced from 80px to 60px */
    margin: 0 auto; /* Changed from 20px to 0 */
}

.ums-layout {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-top: 0;
}

.ums-column {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 300px;
}

.ums-column-right {
    max-width: 400px;
}

.ums-block {
    margin-bottom: 0; /* Remove vertical gap */
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.ums-block h2 {
    font-size: 16px;
    margin: 0;
    padding: 8px 12px;
    border-bottom: 1px solid #e2e4e7;
    background: #f8f9fa;
    border-radius: 4px 4px 0 0;
}

.ums-form-container {
    padding: 12px;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 13px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 8px 32px 8px 12px; /* Added right padding for toggle button */
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 36px;
    font-size: 14px;
}

.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    z-index: 2;
}

.toggle-password .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.company-input-container {
    display: flex;
    gap: 8px;
}

.company-input-container select {
    flex-grow: 1;
}

.arbitrators-container {
    max-height: 120px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 3px;
    background: #f9f9f9;
}

.arbitrator-checkbox {
    margin-bottom: 4px;
}

.arbitrator-checkbox:last-child {
    margin-bottom: 0;
}

.arbitrator-checkbox label {
    display: inline-block;
    margin-left: 4px;
    font-weight: normal;
    font-size: 12px;
}

.arbitrator-checkbox .mobile {
    color: #666;
    font-size: 11px;
    margin-left: 6px;
}

.readonly-field {
    background-color: #f8f9fa !important;
    cursor: not-allowed;
    color: #666;
}

.form-error {
    color: #dc3232;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

/* User List Styles */
.ums-users-container {
    padding: 8px;
}

.company-section {
    margin-bottom: 12px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    padding: 12px;
}

.company-section h3 {
    font-size: 14px;
    margin: 0 0 8px;
    padding: 0 0 6px;
    border-bottom: 1px solid #eee;
}

.users-grid {
    display: grid;
    gap: 4px;
}

.user-row {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    background: #f8f9fa;
    border-radius: 3px;
    border-left: 3px solid #0073aa;
    margin-bottom: 6px;
}

.user-name {
    flex: 1;
    font-size: 13px;
}

.user-role {
    margin: 0 8px;
    padding: 2px 6px;
    background: #e7e7e7;
    border-radius: 3px;
    font-size: 11px;
    color: #666;
}

.user-actions {
    display: flex;
    gap: 4px;
}

.user-actions button {
    padding: 4px;
    background: none;
    border: none;
    cursor: pointer;
    color: #0073aa;
}

.user-actions button:hover {
    color: #00a0d2;
}

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

.ums-modal-content {
    position: relative;
    background-color: #fff;
    margin: 5vh auto;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    overflow-y: auto;
}

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

.ums-modal-close:hover {
    color: #000;
}

/* Ensure modal is centered and at top */
.ums-modal.show {
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
    padding-top: 50px;
}

/* Form Actions */
.form-actions {
    margin-top: 20px;
    display: flex;
    gap: 8px;
}

/* Page Title */
.entry-title, 
h1.wp-heading-inline {
    margin: 0 0 15px !important; /* Reduced from default margins */
    padding: 0 !important;
    font-size: 24px;
}

/* Responsive Styles */
@media screen and (max-width: 782px) {
    .ums-layout {
        flex-direction: column;
    }
    
    .ums-column-right {
        flex: none;
        width: 100%;
    }
}
